1var Lr=Object.defineProperty;var a=(n,e)=>Lr(n,"name",{value:e,configurable:!0});import{P as c,W as Zt}from"./client-bundle.BxJJB_ds.js";import{n as m,al as Xt,fr as y,u as h,fI as Fr,fy as xt,eO as Oe,ba as er,m as R,aF as Re,cn as Nr,fJ as At,au as dt,aA as Tt,fz as qr,j as Be,fC as C,b3 as Yt,a6 as Dt,fK as bt,p as tr,fL as Ur,fM as kr,bb as ht,f3 as jr,fN as zr,k as Gr,cL as $t,fl as u,a7 as I,fO as ke,fP as wt,fB as Qt,U as rr,fQ as g,bT as Wr,bU as Hr,fR as or,fS as Kr,b_ as Vt,aN as sr,aM as Yr,aq as Qr,fT as Ot,ar as Vr,fU as ze,fV as M,em as Jr,aC as Zr,av as Xr,fW as eo,a_ as to,dJ as ro,fX as oo,cq as je,fE as so,aH as io,fY as f,fZ as yt,f_ as Pt}from"./client-bundle.htQzhxg8.js";import{C as l,m as no}from"./client-bundle.XVbm-KBR.js";import{V as p}from"./client-bundle.Bwnu-XVO.js";import{P as ao,B as co}from"./client-bundle.BCB0B-gk.js";import{S as uo}from"./client-bundle.CaWiedZl.js";import ir from"./client-bundle.DdMPivj1.js";import{S as w}from"./client-bundle.DWc8A4w6.js";import{d as Mt,T as P,e as lo,h as De}from"./client-bundle.DLByH8uv.js";import{a as Et}from"./client-bundle.CmPxABx7.js";import"./client-bundle.kUmjhezw.js";import{R as Lt}from"./client-bundle.BH9gg8MJ.js";import{S as nr}from"./client-bundle.B11wgGTe.js";import{T as mo}from"./client-bundle.dGBrTSY7.js";import{C as po,i as ho}from"./client-bundle.TI131aj7.js";import{_ as fo}from"./client-bundle.CHf81guQ.js";import Ft from"./client-bundle.D43BXny7.js";import{l as ar}from"./client-bundle.B5fIhjfb.js";import{a as vo}from"./client-bundle.cdud7Mn9.js";import{L as _o}from"./client-bundle.BPPEvLpq.js";import{U as cr}from"./client-bundle.jgGKU4Hb.js";import{S as go}from"./client-bundle.jecStZ9V.js";import{D as Co}from"./client-bundle.DrzCIMue.js";import{B as yo}from"./client-bundle.lNfRprKG.js";import{N as Po}from"./client-bundle.hLTVo-zM.js";import{S as bo}from"./client-bundle.BO6usx11.js";import{_ as $o}from"./client-bundle.Dz6k47AJ.js";import"./client-bundle.DnJxGJ4T.js";import"./client-bundle.Bsbwk8zn.js";import"./client-bundle._izUXx5g.js";import"./client-bundle.D0UlY1fq.js";import"./client-bundle.Bn7J11Xw.js";import"./client-bundle.CYgD30nS.js";import"./client-bundle.Cj9orOJ4.js";import"./client-bundle.BFyg3NbL.js";import"./client-bundle.Jpp6dePv.js";import"./client-bundle.-zogajTh.js";import"./client-bundle.BPaz5izT.js";import"./client-bundle.CfvRnJ0h.js";import"./client-bundle.DkYt4mow.js";import"./client-bundle.BAY3GtYR.js";import"./client-bundle.CfyBYOeV.js";import"./client-bundle.BGkTtaWy.js";import"./client-bundle.BoytYTyt.js";import"./client-bundle.D7Ag__zM.js";import"./client-bundle.BuNz-D8V.js";import"./client-bundle.D0D77vJ4.js";import"./client-bundle.BrXC9va0.js";import"./client-bundle.DUerLRfD.js";import"./client-bundle.BoGphBKn.js";import"./client-bundle.Dvz11n5E.js";import"./client-bundle._l6C7-_a.js";import"./client-bundle.CzGvBoLL.js";import"./client-bundle.zul6K3nY.js";import"./client-bundle.BD2754DE.js";import"./client-bundle.LCuN40Sv.js";import"./client-bundle.CQZZwpe8.js";import"./client-bundle.CB39ogAt.js";import"./client-bundle.C_X9_q0F.js";import"./client-bundle.DLnMekJU.js";import"./client-bundle.DW1HtBvU.js";import"./client-bundle.1sP3-nG1.js";import"./client-bundle.D9_IMilV.js";import"./client-bundle.CjTo69fi.js";import"./client-bundle.BCtzlr6A.js";import"./client-bundle.B4tXDgRg.js";import"./client-bundle.v_WzZQiO.js";import"./client-bundle.CF5VUUhC.js";import"./client-bundle.kitBAWYz.js";import"./client-bundle.CgqMNP3Z.js";import"./client-bundle.Dw3n7qxe.js";import"./client-bundle.DNrBJPuO.js";import"./client-bundle.Cko9Hm0I.js";import"./client-bundle.BGKP75aP.js";import"./client-bundle.CYHF1Rhr.js";var wo=Object.defineProperty,Io=Object.getOwnPropertyDescriptor,ur=a((n,e,t,r)=>{for(var o=r>1?void 0:r?Io(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&wo(e,t,o),o},"__decorateClass$E"),E;let Ge=(E=class extends p{},a(E,"CoverImage"),E);ur([c({type:Object,required:!0})],Ge.prototype,"coverImage",2);Ge=ur([l],Ge);var So=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("section",{staticClass:"cover-image-wrapper"},[t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.$addWebpQuery(e.coverImage.url),expression:"$addWebpQuery(coverImage.url)"}],staticClass:"cover-image",attrs:{alt:e.coverImage.alt}})])},"render"),Ro=[],Bo=m(Ge,So,Ro,!1,null,"089b0509");const xo=Bo.exports;var Ao=Object.defineProperty,To=Object.getOwnPropertyDescriptor,ft=a((n,e,t,r)=>{for(var o=r>1?void 0:r?To(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&Ao(e,t,o),o},"__decorateClass$D"),L;let be=(L=class extends p{get topicId(){return this.topic.id}get topicName(){return this.topic.name}get isProKnowhow(){return this.topic.id===y.ProKnowhow}get isCustomerMode(){return h.isCustomerMode}
1get categoryRoute(){return this.isProCenterTopic&&!this.isCustomerMode?this.proCenterHomeRoute:this.soomgoLifeHomeRoute}get soomgoLifeHomeRoute(){return{name:"soomgo-life-home",query:{from:"breadcrumb"}}}get proCenterHomeRoute(){return{name:"pro-center-home",query:{from:"breadcrumb"}}}get categoryTopicRoute(){return this.isProKnowhow?this.proKnowhowRoute:this.isProCenterTopic&&!this.isCustomerMode?this.proCenterTopicRoute:this.soomgoLifeTopicRoute}get soomgoLifeTopicRoute(){return{name:"soomgo-life-topic",params:{topicId:Fr.includes(this.topicId)?y.All:this.topicId},query:{from:"breadcrumb"}}}get proCenterTopicRoute(){return{name:"pro-center-topic",params:{topicId:this.topicId},query:{from:"breadcrumb"}}}get proKnowhowRoute(){return{name:"pro-knowhow"}}get communityCategory(){return xt(this.$route)}get isProCenterTopic(){return this.communityCategory===Oe.ProCenter}get categoryName(){return this.isProCenterTopic?"ê³ ìì¼í°":"ì¨ê³ ìí"}get categoryHref(){return this.$router.resolve(this.categoryRoute).href}get categoryTopicHref(){return this.$router.resolve(this.categoryTopicRoute).href}get breadcrumbs(){const e=[{label:"í",href:"/",type:"anchor"},{label:this.categoryName,href:this.categoryHref,type:"router"},{label:this.topicName,href:this.categoryTopicHref,type:"router"}];return this.title&&e.push({label:this.title}),e}metaInfo(){const e=this.schemaJson;return{script:[{vmid:e["@type"],type:"application/ld+json",json:e}]}}get schemaJson(){return{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:this.breadcrumbs.map((e,t)=>{const r={"@type":"ListItem",position:t+1,name:e.label};return e.href&&(r.item=this.$getBaseUrl(e.href.split("?")[0])),r})}}},a(L,"PostBreadcrumbs"),L);ft([c({type:Object,required:!0})],be.prototype,"topic",2);ft([c({type:String,default:""})],be.prototype,"title",2);ft([Xt],be.prototype,"metaInfo",1);be=ft([l({components:{PrismaBreadcrumb:ao}})],be);var Do=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("section",{staticClass:"post-category-subject"},[t("PrismaBreadcrumb",{attrs:{breadcrumbs:e.breadcrumbs}})],1)},"render"),Oo=[],Mo=m(be,Do,Oo,!1,null,"50c24405");const lr=Mo.exports;var Eo=Object.defineProperty,Lo=Object.getOwnPropertyDescriptor,vt=a((n,e,t,r)=>{for(var o=r>1?void 0:r?Lo(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&Eo(e,t,o),o},"__decorateClass$C"),F;let $e=(F=class extends p{get isMobile(){return this.$ua.isMobile}},a(F,"PostTitle"),F);vt([c({type:String,required:!0})],$e.prototype,"title",2);vt([c({type:String})],$e.prototype,"serviceName",2);vt([c({type:String})],$e.prototype,"address",2);$e=vt([l],$e);var Fo=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{class:["post-header-title-wrapper",{"has-service":!!e.serviceName}]},[e.serviceName?t("p",{staticClass:"post-service-name"},[e._v(e._s(e.serviceName))]):e._e(),t("Typography",{staticClass:"post-header-title",attrs:{as:"h1",variant:e.isMobile?"headline20":"headline24"}},[e._v(" "+e._s(e.title)+" ")]),e.address?t("p",{staticClass:"post-address-info"},[e._v(e._s(e.address))]):e._e()],1)},"render"),No=[],qo=m($e,Fo,No,!1,null,"17c48d10");const Uo=qo.exports;var ko=Object.defineProperty,jo=Object.getOwnPropertyDescriptor,B=a((n,e,t,r)=>{for(var o=r>1?void 0:r?jo(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&ko(e,t,o),o},"__decorateClass$B"),N;let b=(N=class extends p{constructor(){super(...arguments),this.showFixedProfile=!1,this.communityScrapInfo=null}get anonymous(){return Et}get userName(){var e;return(e=this.userInfo)==null?void 0:e.name}get isProvider(){var e;return(e=this.userInfo)==null?void 0:e.isProvider}get userProfileImage(){var e;return(e=this.userInfo)==null?void 0:e.profileImageUrl}get isWriter(){var e;return h.me.id===((e=this.userInfo)==null?void 0:e.id)}get isGuestUserType(){return h.currentUserType===er.GUEST}get isProKnowhow(){return this.topic.id===y.ProKnowhow}get showCreatedAt(){return R.dateFromNowPostFormat(this.createdAt)}get socialShareButtonModal(){return Re.modal.socialShareButtonModal}get currentLink(){return this.$getBaseUrl(this.$route.path)}get mediaOptions(){return Nr(this.currentLink,this.title)}get isProfileClickStop(){return this.userInfo&&At===this.userInfo.id||!this.userInfo||!this.isProvider}get profileRouter(){return{name:"profile",params:{userId:this.userInfo.id.toString()},query:{from:dt.Community}}}get providerSquare(){return this.topic.id===y.ProviderSquare}
1get isAmbassador(){var e,t;return(t=(e=this.userInfo)==null?void 0:e.providerInfo)==null?void 0:t.isAmbassador}get iconColor(){return Tt}deletePost(){this.$emit("delete-post")}openShareModal(){this.$emit("open-share-modal")}goEdit(){this.isGuestUserType||this.$emit("edit-post")}openReportModal(){this.$emit("open-report-modal")}toggleFixedProfile([e]){this.isLoading||(this.showFixedProfile=e.intersectionRatio<1)}},a(N,"UserProfileBar"),N);B([c({type:Object,required:!0})],b.prototype,"userInfo",2);B([c({type:Object,required:!0})],b.prototype,"topic",2);B([c({type:Number,required:!0})],b.prototype,"viewCount",2);B([c({type:String,required:!0})],b.prototype,"title",2);B([c({type:String,required:!0})],b.prototype,"createdAt",2);B([c({type:Boolean,required:!1})],b.prototype,"isAdminPost",2);B([c({type:Boolean,default:!1})],b.prototype,"isLoading",2);b=B([l({components:{SvgIcon:w,ObserverContainer:ir,Portal:Mt,SocialShareButtonsModal:uo,PostBreadcrumbs:lr}})],b);const Jt="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20.77%2015.174c.37%200%20.675.276.723.634l.007.099v5.86c0%20.371-.275.678-.632.726l-.099.007H3.231a.732.732%200%200%201-.724-.633l-.007-.1v-5.86a.732.732%200%200%201%201.455-.1l.007.1v5.128h16.076v-5.128c0-.37.275-.677.632-.726l.1-.007zM12.412%201.628l.09.072%206.377%206.05a.734.734%200%200%201%20.028%201.036.73.73%200%200%201-.949.098l-.084-.069-5.145-4.881v11.973a.732.732%200%200%201-1.454.1l-.007-.1V3.933L6.125%208.815a.73.73%200%200%201-.953.045l-.08-.074a.734.734%200%200%201-.045-.955l.073-.08%206.378-6.05.046-.039a.734.734%200%200%201%20.014-.01l-.06.048a.73.73%200%200%201%20.213-.14c.005%200%20.009-.002.013-.004a.724.724%200%200%201%20.69.072z'%20fill='%232D2D2D'%20fill-rule='evenodd'/%3e%3c/svg%3e";var zo=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"user-profile-bar-container"},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.isAmbassador,expression:"isAmbassador"}],staticClass:"ambassador-badge"},[t("SvgIcon",{attrs:{width:14,height:14,icon:"icons/contents/ambassador_filled.svg",prisma:"",color:e.iconColor,fill:""}}),e._v(" ëª
ìê³ ì ")],1),t("ObserverContainer",{attrs:{options:{threshold:1}},on:{trigger:e.toggleFixedProfile}},[t("div",{staticClass:"user-profile-wrapper"},[e.isProfileClickStop?t("div",{staticClass:"user-profile-area"},[t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:{src:e.$addWebpQuery(e.userProfileImage),loading:e.anonymous,error:e.anonymous},expression:"{ src: $addWebpQuery(userProfileImage), loading: anonymous, error: anonymous }"}],staticClass:"profile-image",attrs:{alt:e.userName}}),t("div",{staticClass:"profile-post-info"},[t("Typography",{staticClass:"user-name",attrs:{variant:"body14:medium"}},[e._v(e._s(e.userName))]),t("Typography",{staticClass:"post-created-at",attrs:{variant:"body12:regular"}},[e._v(e._s(e.showCreatedAt)+" · ì¡°í "+e._s(e._f("viewerNumber")(e.viewCount)))])],1)]):t("router-link",{staticClass:"user-profile-area",attrs:{to:e.profileRouter}},[t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:{src:e.$addWebpQuery(e.userProfileImage),loading:e.anonymous,error:e.anonymous},expression:"{ src: $addWebpQuery(userProfileImage), loading: anonymous, error: anonymous }"}],staticClass:"profile-image"}),t("div",{staticClass:"profile-post-info"},[t("Typography",{staticClass:"user-name",attrs:{variant:"body14:medium"}},[e._v(e._s(e.userName))]),t("Typography",{staticClass:"post-created-at",attrs:{variant:"body12:regular"}},[e._v(e._s(e.showCreatedAt)+" · ì¡°í "+e._s(e._f("viewerNumber")(e.viewCount)))])],1)]),t("div",{staticClass:"post-actions"},[e.providerSquare?e._e():t("img",{staticClass:"icon",attrs:{src:Jt,alt:"ê³µì í기"},on:{click:e.openShareModal}}),t("no-ssr",[e.isWriter?t("b-dropdown",{attrs:{right:""}},[e.isProKnowhow?e._e():t("b-dropdown-item",{on:{click:e.goEdit}},[e._v("ìì í기")]),t("b-dropdown-item",{on:{click:e.deletePost}},[e._v("ìì í기")])],1):e.isAdminPost?e._e():t("b-dropdown",{attrs:{right:""}},[t("b-dropdown-item",{on:{click:e.openReportModal}},[e._v("ê²ìê¸ ì ê³ í기")])],1)],1)],1)],1)]),e.socialShareButtonModal&&!e.providerSquare?t("SocialShareButtonsModal",{attrs:{"media-options":e.mediaOptions,"community-scrap-info":e.communityScrapInfo},on:{close:a(function(r){return e.$hideModal("socialShareButtonModal")},"close")}}
1):e._e(),t("Portal",{attrs:{to:"appStickyNav"}},[t("section",{class:["fixed",{show:e.showFixedProfile}]},[t("section",{staticClass:"fixed-wrapper"},[t("Typography",{staticClass:"fixed-title",attrs:{as:"h2",variant:"body16:medium"}},[e._v(" "+e._s(e.title)+" ")]),e.providerSquare?e._e():t("img",{staticClass:"icon",attrs:{src:Jt,alt:"ê³µì í기"},on:{click:e.openShareModal}}),t("no-ssr",[e.isWriter?t("b-dropdown",{attrs:{right:""}},[e.isProKnowhow?e._e():t("b-dropdown-item",{attrs:{target:"_blank"},on:{click:e.goEdit}},[e._v("ìì í기")]),t("b-dropdown-item",{on:{click:e.deletePost}},[e._v("ìì í기")])],1):e.isAdminPost?e._e():t("b-dropdown",{attrs:{right:""}},[t("b-dropdown-item",{on:{click:e.openReportModal}},[e._v("ê²ìê¸ ì ê³ í기")])],1)],1)],1)])])],1)},"render"),Go=[],Wo=m(b,zo,Go,!1,null,"674017bd");const Ho=Wo.exports;var Ko=Object.defineProperty,Yo=Object.getOwnPropertyDescriptor,_t=a((n,e,t,r)=>{for(var o=r>1?void 0:r?Yo(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&Ko(e,t,o),o},"__decorateClass$A"),q;let we=(q=class extends p{constructor(){super(...arguments),this.communityScrapInfo=null}get topic(){var e;return(e=this.communityPost)==null?void 0:e.topic}get title(){var e;return(e=this.communityPost)==null?void 0:e.title}get userInfo(){var e;return(e=this.communityPost)==null?void 0:e.user}get isGuestUserType(){return h.currentUserType===er.GUEST}get currentUserRole(){return h.currentUserRole}get viewCount(){var e;return(e=this.communityPost)==null?void 0:e.viewCount}get createdAt(){var e;return(e=this.communityPost)==null?void 0:e.createdAt}get serviceName(){var e,t,r;return(r=(t=(e=this.communityPost)==null?void 0:e.serviceInfo)==null?void 0:t.service)==null?void 0:r.name}get address(){var e,t;return(e=this.communityPost)!=null&&e.addressInfo?qr((t=this.communityPost)==null?void 0:t.addressInfo):""}get coverImage(){var e;return(e=this.communityPost)==null?void 0:e.coverImage}get isCoverImageShown(){return(this.isAdminPost||this.isProKnowhow)&&this.coverImage}get isProKnowhow(){return this.communityPost.topic.id===y.ProKnowhow}onDeletePost(){this.$emit("delete-post")}onMoveEditPage(){if(!this.isGuestUserType)return Be.user_modification_click(this.currentUserRole),this.$router.push({name:"post-edit",params:{postId:this.communityPost.id}})}openShareModal(){var i,d,v;P.click_content_share_button({content_id:this.communityPost.id});const e=(i=this.communityPost.contentBlocks.find(_=>_.type===C.Text))==null?void 0:i.data,t=(d=this.communityPost.contentBlocks.find(_=>_.type===C.Images))==null?void 0:d.data,r=((v=t==null?void 0:t[0])==null?void 0:v.url)||Yt,o=200;let s=100;r!==Yt&&(s=200),this.communityScrapInfo={title:this.communityPost.title,postId:this.communityPost.id,imageUrl:r,de
1scription:e,imageWidth:o,imageHeight:s},this.$showModal({name:"socialShareButtonModal"})}openReportModal(){this.$emit("open-report-modal")}},a(q,"PostHeader"),q);_t([c({type:Object,required:!0})],we.prototype,"communityPost",2);_t([c({type:Boolean,required:!0})],we.prototype,"isAdminPost",2);_t([c({type:Boolean,default:!1})],we.prototype,"isLoading",2);we=_t([l({components:{CoverImage:xo,PostBreadcrumbs:lr,PostTitle:Uo,UserProfileBar:Ho}})],we);var Qo=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"post-header"},[e.isCoverImageShown?t("CoverImage",{attrs:{"cover-image":e.coverImage}}):e._e(),t("PostBreadcrumbs",{attrs:{topic:e.topic,title:e.title}}),t("PostTitle",{attrs:{title:e.title,"service-name":e.serviceName,address:e.address}}),t("UserProfileBar",{attrs:{"user-info":e.userInfo,topic:e.topic,"view-count":e.viewCount,title:e.title,"created-at":e.createdAt,"is-admin-post":e.isAdminPost,"is-loading":e.isLoading},on:{"delete-post":e.onDeletePost,"edit-post":e.onMoveEditPage,"open-share-modal":e.openShareModal,"open-report-modal":e.openReportModal}})],1)},"render"),Vo=[],Jo=m(we,Qo,Vo,!1,null,"8886d8e6");const Zo=Jo.exports;var Xo=Object.defineProperty,es=Object.getOwnPropertyDescriptor,mr=a((n,e,t,r)=>{for(var o=r>1?void 0:r?es(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&Xo(e,t,o),o},"__decorateClass$z"),U;let We=(U=class extends p{},a(U,"MarkdownContents"),U);mr([c({type:String,required:!0})],We.prototype,"content",2);We=mr([l],We);var ts=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("p",{directives:[{name:"markdown",rawName:"v-markdown",value:e.content,expression:"content"}]})},"render"),rs=[],os=m(We,ts,rs,!1,null,"5c3f2dd1");const ss=os.exports;var is=Object.defineProperty,ns=Object.getOwnPropertyDescriptor,pr=a((n,e,t,r)=>{for(var o=r>1?void 0:r?ns(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&is(e,t,o),o},"__decorateClass$y"),k;let He=(k=class extends p{get images(){return this.imageList}get isFiveMoreThanImage(){return this.imageList.length>5}isHidden(e){return e>4}getThumbnail(e){return Dt.getThumbnail({url:e,size:"sm"})}destroyLightGallery(){const e=$(this.$el).find("div.body-image-container");e.data("lightGallery")&&e.data("lightGallery").destroy(!0)}initLightGallery(){const e={selector:'[data-type="lightGallery"]',download:!1,exThumbImage:"data-exthumbimage"};this.$nextTick(()=>{this.destroyLightGallery(),$(this.$el).lightGallery(e)})}mounted(){this.initLightGallery()}beforeDestroy(){this.destroyLightGallery()}},a(k,"PostDetailImageContainer"),k);pr([c({type:Array,required:!0})],He.prototype,"imageList",2);He=pr([l],He);var as=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"body-image-container"},[t("ul",{staticClass:"grid-image-wrapper"},e._l(e.images,function(r,o){return t("li",{key:o,class:["grid-image-list",{hidden:e.isHidden(o)}],attrs:{"data-type":"lightGallery","data-exthumbimage":e.getThumbnail(r.url),"data-sub-html-src":e.getThumbnail(r.url),"data-src":e.$addWebpQuery(r.url),"data-sub-html":" "}},[e.isFiveMoreThanImage?t("Typography",{staticClass:"more",attrs:{variant:"headline20"}},[e._v("+"+e._s(e.imageList.length-5))]):e._e(),t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.$addWebpQuery(r.url),expression:"$addWebpQuery(image.url)"}],staticClass:"image",attrs:{alt:r.alt}})],1)}),0)])},"render"),cs=[],us=m(He,as,cs,!1,null,"ce7e09e0");const dr=us.exports;var ls=Object.defineProperty,ms=Object.getOwnPropertyDescriptor,Ne=a((n,e,t,r)=>{for(var o=r>1?void 0:r?ms(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&ls(e,t,o),o},"__decorateClass$x"),j;let x=(j=class extends p{get commentTotalCount(){return this.commentCount?bt(this.commentCount):""}get likeTotalCount(){return this.likeCount?bt(this.likeCount):""}get likeColor(){return this.isLiked?"purple":"secondary"}get likeIconName(){return this.isLiked?"thumb_up_filled":"thumb_up_outlined"}changeIsLiked(){this.$emit("on-change-is-liked",!this.isLiked)}},a(j,"PostReactionState"),j);Ne([c({type:Number,required:!0})],x.prototype,"likeCount",2);Ne([c({type:Number,required:!0})],x.prototype,"commentCount",2);Ne([c({type:Boolean,default:!1})],x.prototype,"isLiked",2);Ne([c({type:Boolean,default:!1})],x.prototype,"isCommentsAllowed",2);x=Ne([l],x);var ps=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"post-react-state"},[t("div",{class:["post-react-item","like-btn",{selected:e.isLiked}],attrs:{"data-testid":"soomgo-life-like-button"},on:{click:e.changeIsLiked}},[t("PrismaIcon",{attrs:{category:"toggle",name:e.likeIconName,size:16,color:e.likeColor}}),t("span",[e._v(" ì¢ìì "),e.likeTotalCount?t("span",{staticClass:"action-count"}
1,[e._v(e._s(e.likeTotalCount))]):e._e()])],1),e.isCommentsAllowed?t("div",{staticClass:"post-react-item"},[t("PrismaIcon",{attrs:{category:"communication",name:"chat_outlined",size:16,color:"secondary"}}),t("span",[e._v(" ëê¸ "),e.commentTotalCount?t("span",{staticClass:"action-count"},[e._v(e._s(e.commentTotalCount))]):e._e()])],1):e._e()])},"render"),ds=[],hs=m(x,ps,ds,!1,null,"02f22278");const Nt=hs.exports;var fs=Object.defineProperty,vs=Object.getOwnPropertyDescriptor,qt=a((n,e,t,r)=>{for(var o=r>1?void 0:r?vs(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&fs(e,t,o),o},"__decorateClass$w"),z;let Me=(z=class extends p{constructor(){super(...arguments),this.servicePrice=null}get serviceSlug(){const{route:e}=this.$router.resolve(this.url);return e.params.serviceSlug}get serviceName(){var e;return(e=this.servicePrice)==null?void 0:e.title}get avgPrice(){var e;return(e=this.servicePrice)==null?void 0:e.avgPrice}get serviceImage(){return this.servicePrice?this.$getStaticUrl(this.servicePrice.image):""}async fetchServicePrice(){try{if(!this.serviceSlug)return;const{response:e}=await Ur.getPricesDetail(this.serviceSlug);this.servicePrice=e}catch{this.servicePrice=null}}priceFormat(e){return kr(e||0).reduce((t,[r,o])=>`${t} ${r}${o}`,"")}onClickContents(){this.$router.push({name:"send-request",params:{serviceSlug:this.serviceSlug},query:{from:ht.Community}})}serverPrefetch(){return this.fetchServicePrice()}mounted(){this.fetchServicePrice()}},a(z,"SoomgoContentsHire"),z);qt([c({type:String,required:!0})],Me.prototype,"url",2);qt([c({type:String,default:""})],Me.prototype,"description",2);Me=qt([l({components:{Button:tr}})],Me);var _s=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,e.servicePrice?t("div",{staticClass:"soomgo-contents-hire"},[t("div",{staticClass:"service-contents-container"},[t("div",{staticClass:"service-image-wrapper"},[t("img",{attrs:{src:e.serviceImage,alt:"ìë¹ì¤ ì´ë¯¸ì§"}})]),t("div",{staticClass:"service-info"},[t("div",[t("Typography",{attrs:{as:"p",variant:"headline18"}},[e._v(e._s(e.serviceName))]),t("Typography",{attrs:{as:"p",variant:"body14:medium"}},[e._v(" íê· ê²¬ì ì "),t("Typography",{attrs:{variant:"body14:medium",color:"purple"}},[e._v(e._s(e.priceFormat(e.avgPrice))+"ì")]),e._v("ì´ìì ")],1),t("Typography",{staticClass:"service-description",attrs:{as:"p",variant:"body16:regular",color:"secondary"}},[e._v(" "+e._s(e.description)+" ")])],1),t("div",{staticClass:"d-none d-md-block action-wrapper"},[t("Button",{attrs:{size:"large",block:""},on:{click:e.onClickContents}},[e._v("ë¬´ë£ ê²¬ì ë°ê¸°")])],1)])]),t("div",{staticClass:"d-md-none action-wrapper"},[t("Button",{attrs:{size:"large",block:""},on:{click:e.onClickContents}},[e._v("ë¬´ë£ ê²¬ì ë°ê¸°")])],1)]):e._e()},"render"),gs=[],Cs=m(Me,_s,gs,!1,null,"f27b907e");const ys=Cs.exports;var Ps=Object.defineProperty,bs=Object.getOwnPropertyDescriptor,hr=a((n,e,t,r)=>{for(var o=r>1?void 0:r?bs(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&Ps(e,t,o),o},"__decorateClass$v"),G;let Ke=(G=class extends p{constructor(){super(...arguments),this.profile=null,this.isServiceSelectModalOpen=!1}get isRequestFormModalOpen(){var e;return((e=this.modalStates.requestForm)==null?void 0:e.providerName)===this.providerName?(this.isServiceSelectModalOpen=!1,!0):!1}get anonymous(){return Et}get providerId(){const{route:e}=this.$router.resolve(this.url);return e.params.userId?Number(e.params.userId):-1}get targetProviderId(){var e;return(e=this.profile)==null?void 0:e.providerId}get profileImage(){var e;return(e=this.profile)==null?void 0:e.profileImgUrl.url}get serviceName(){var e;return(e=this.profile)==null?void 0:e.mainService.name}get providerName(){var e;return(e=this.profile)==null?void 0:e.nickName}get reviewTotalRating(){return this.profile?jr(this.profile.reviewTotalRating):""}get reviewCount(){return this.profile?R.numberFormat(this.profile.reviewCount):0}get hireCount(){return this.profile&&this.profile.hireCount>0?R.numberFormat(this.profile.hireCount):0}get career(){var e;return((e=this.profile)==null?void 0:e.additional.career)??0}get address(){return this.profile?zr(this.profile.basic.addr1):""}get modalStates(){return Re.modal}get requestFormModalLocation(){return ht.Community}get userName(){return h.me.first_name}get providerServices(){var e;return((e=this.profile)==null?void 0:e.services)??[]}async fetchProProfile(){if(!(!this.providerId||isNaN(this.providerId)))try{const{response:e}=await Gr.getProfile(this.providerId);this.profile=e}catch{this.profile=null}}onClickButton(e){if(e.stopPropagation(),this.providerId===h.me.id)return this.$prismaToast.pop({type:"message",text:"ëìê²ë 견ì ì ìì²í ì ììµëë¤.",state:"default"});if(this.profile.services.length===1){const t=this.profile.services[0];return this.$showModal({name:"requestForm",params:{slug:t.slug,providerName:this.providerName,targetRequestInfo:{providerId:this.profile.providerId,serviceId:t.id,from:this.requestFormModalLocation}}})}this.isServiceSelectModalOpen=!0}onClickContents(){this.$router.push(this.url)}serverPrefetch(){return this.fetchProProfile()}mounted(){this.fetchProProfile()}},a(G,"SoomgoContentsProfile"),G);hr([c({type:String,required:!0})],Ke.prototype,"url",2);Ke=hr([l({components:{Button:tr,RequestFormModal:Lt,ServiceSelectModal:nr}})],Ke);var $s=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,e.profile?t("div",{staticClass:"soomgo-contents-profile",on:{click:e.onClickContents}},[t("div",{staticClass:"profile-container"},[t("div",{staticClass:"profile-image"},[t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:{src:e.profileImage,loading:e.anonymous,error:e.anonymous},expression:`{ 2 src: profileImage, 3 loading: anonymous, 4 error: anonymous, 5 }`}],attrs:{alt:"íë¡í ì´ë¯¸ì§"}})]),t("div",{staticClass:"profile-info"},[t("div",[t("Typography",{attrs:{as:"p",variant:"body14:regular",color:"secondary"}},[e._v(e._s(e.serviceName))]),t("Typography",{attrs:{as:"p",variant:"headline18"}},[e._v(e._s(e.providerName))])],1),t("div",[t("div",{staticClass:"split-texts"},[e.reviewTotalRating?t("div",{staticClass:"word-container"},[t("PrismaIcon",{attrs:{color:"warning",name:"star_filled",size:16}}),t("Typography",{attrs:{variant:"body14:semibold"}},[e._v(e._s(e.reviewTotalRating))]),t("Typography",{attrs:{variant:"body14:regular",color:"secondary"}}
5,[e._v("("+e._s(e.reviewCount)+")")])],1):e._e(),e.reviewTotalRating&&e.hireCount?t("Typography",{attrs:{variant:"body14:regular",color:"secondary"}},[e._v("·")]):e._e(),e.hireCount?t("div",{staticClass:"word-container"},[t("Typography",{attrs:{variant:"body14:regular",color:"secondary"}},[e._v("ê³ ì©")]),t("Typography",{attrs:{variant:"body14:regular",color:"secondary"}},[e._v(e._s(e.hireCount))])],1):e._e()],1),t("div",{staticClass:"split-texts"},[e.career>0?[t("div",{staticClass:"word-container"},[t("Typography",{attrs:{variant:"body14:regular",color:"secondary"}},[e._v("ê²½ë ¥")]),t("Typography",{attrs:{variant:"body14:regular",color:"secondary"}},[e._v(e._s(e.career)+"ë
")])],1),t("Typography",{attrs:{variant:"body14:regular",color:"secondary"}},[e._v("·")])]:e._e(),t("Typography",{attrs:{variant:"body14:regular",color:"secondary"}},[e._v(e._s(e.address))])],2)])])]),t("div",{staticClass:"action-wrapper"},[t("Button",{attrs:{size:"large",block:""},on:{"!click":a(function(r){return e.onClickButton.apply(null,arguments)},"!click")}},[e._v("ê³ ììê² ê²¬ì ìì²í기")])],1),t("no-ssr",[e.isServiceSelectModalOpen?t("ServiceSelectModal",{attrs:{"user-name":e.providerName,services:e.providerServices,"mobile-fullscreen":!0,from:e.requestFormModalLocation},on:{close:a(function(r){e.isServiceSelectModalOpen=!1},"close")}}):e._e(),e.isRequestFormModalOpen?t("RequestFormModal",{attrs:{"service-slug":e.modalStates.requestForm.slug,"target-provider-id":e.targetProviderId,"mobile-fullscreen":!0,from:e.requestFormModalLocation,"is-soomgo-life":""},on:{close:a(function(r){return e.$hideModal("requestForm")},"close")}}):e._e()],1)],1):e._e()},"render"),ws=[],Is=m(Ke,$s,ws,!1,null,"692ee08f");const Ss=Is.exports;var Rs=Object.defineProperty,Bs=Object.getOwnPropertyDescriptor,Ut=a((n,e,t,r)=>{for(var o=r>1?void 0:r?Bs(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&Rs(e,t,o),o},"__decorateClass$u");const xs=/^https:\/\/([a-zA-Z0-9-]+\.)?soomgo\.com\/profile\/users\/.*/,As=/^https:\/\/([a-zA-Z0-9-]+\.)?soomgo\.com\/hire\/.*/;var W;let Ee=(W=class extends p{get subpath(){return this.url.replace(/^https:\/\/([a-zA-Z0-9-]+\.)?soomgo\.com/,"")}get isProProfile(){return xs.test(this.url)}get isServiceHire(){return As.test(this.url)}},a(W,"SoomgoContents"),W);Ut([c({type:String,required:!0})],Ee.prototype,"url",2);Ut([c({type:String,default:""})],Ee.prototype,"description",2);Ee=Ut([l({components:{SoomgoContentsHire:ys,SoomgoContentsProfile:Ss}})],Ee);var Ts=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"soomgo-contents"},[e.isProProfile?t("SoomgoContentsProfile",{attrs:{url:e.subpath}}):e.isServiceHire?t("SoomgoContentsHire",{attrs:{url:e.subpath,description:e.description}}):e._e()],1)},"render"),Ds=[],Os=m(Ee,Ts,Ds,!1,null,"6a2759e7");const Ms=Os.exports;var Es=Object.defineProperty,Ls=Object.getOwnPropertyDescriptor,fr=a((n,e,t,r)=>{for(var o=r>1?void 0:r?Ls(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&Es(e,t,o),o},"__decorateClass$t"),H;let Ye=(H=class extends p{},a(H,"Contents"),H);fr([c({type:String,required:!0})],Ye.prototype,"content",2);Ye=fr([l],Ye);var Fs=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("p",{staticClass:"content"},[t("span",{directives:[{name:"linkify",rawName:"v-linkify",value:e.content,expression:"content"}]})])},"render"),Ns=[],qs=m(Ye,Fs,Ns,!1,null,"ce19bbdf");const Us=qs.exports;var ks=Object.defineProperty,js=Object.getOwnPropertyDescriptor,vr=a((n,e,t,r)=>{for(var o=r>1?void 0:r?js(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&ks(e,t,o),o},"__decorateClass$s"),K;let Qe=(K=class extends p{get isMobile(){return this.$ua.isMobile}get isScrollable(){var e;return((e=this.media)==null?void 0:e.length)>(this.isMobile?1:2)}get isYoutubeEmbedded(){return this.media.length===1&&this.media[0].type===C.Youtube}get youtubeSrc(){return this.media[0].type!==C.Youtube?"":this.media[0].data}makeKey(e){return`${e.type}_${e.type===C.Youtube?e.data:e.data.id}`}getDataSrc(e){return e.type===C.Youtube?$t.getYoutubeLandingUrl(e.data):e.data.url}
5thumbnail(e){return e.type===C.Youtube?$t.getYoutubeThumbnailURL(e.data):e.data.url}initLightGallery(){const e={selector:'[data-type="lightGallery"]',download:!1,loadYoutubeThumbnail:!0,youtubeThumbSize:"default",loadVimeoThumbnail:!0,vimeoThumbSize:"thumbnail_medium"};this.$nextTick(()=>{this.destroyLightGallery(),$(this.$el).lightGallery(e)})}destroyLightGallery(){const e=$(this.$el).find("div.medium-list");e.data("lightGallery")&&e.data("lightGallery").destroy(!0)}mounted(){this.initLightGallery()}beforeDestroy(){this.destroyLightGallery()}},a(K,"Media"),K);vr([c({type:Array,required:!0})],Qe.prototype,"media",2);Qe=vr([l],Qe);var zs=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("ul",{staticClass:"medium-list",class:{scroll:e.isScrollable}},[e.isYoutubeEmbedded?e._l(e.media,function(r){return t("li",{key:e.makeKey(r),staticClass:"medium-wrapper youtube"},[t("video",{attrs:{src:e.youtubeSrc,playsinline:""}})])}):e._l(e.media,function(r){return t("li",{key:e.makeKey(r),staticClass:"medium-wrapper",class:{youtube:r.type==="youtube"},attrs:{"data-type":"lightGallery","data-src":e.$addWebpQuery(e.getDataSrc(r)),"data-sub-html":" "}},[t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.$addWebpQuery(e.thumbnail(r)),expression:"$addWebpQuery(thumbnail(medium))"}],staticClass:"medium",attrs:{alt:"첨ë¶íì¼ ì´ë¯¸ì§"}})])})],2)},"render"),Gs=[],Ws=m(Qe,zs,Gs,!1,null,"ca60c139");const Hs=Ws.exports;var Ks=Object.defineProperty,Ys=Object.getOwnPropertyDescriptor,_r=a((n,e,t,r)=>{for(var o=r>1?void 0:r?Ys(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&Ks(e,t,o),o},"__decorateClass$r"),Y;let Ve=(Y=class extends p{},a(Y,"Subheading"),Y);_r([c({type:String,required:!0})],Ve.prototype,"subheading",2);Ve=_r([l],Ve);var Qs=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("p",{staticClass:"subheading"},[e._v(e._s(e.subheading))])},"render"),Vs=[],Js=m(Ve,Qs,Vs,!1,null,"00fed7cb");const Zs=Js.exports;var Xs=Object.defineProperty,ei=Object.getOwnPropertyDescriptor,gr=a((n,e,t,r)=>{for(var o=r>1?void 0:r?ei(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&Xs(e,t,o),o},"__decorateClass$q"),Q;let Je=(Q=class extends p{get src(){return $t.getYoutubeEmbedUrl(this.youtube.data)}},a(Q,"YoutubeEmbedded"),Q);gr([c({type:Object,required:!0})],Je.prototype,"youtube",2);Je=gr([l],Je);var ti=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"youtube-embedded"},[t("iframe",{attrs:{src:e.src,scrolling:"no",frameborder:"0"}})])},"render"),ri=[],oi=m(Je,ti,ri,!1,null,"5fc8fe5b");const si=oi.exports;var ii=Object.defineProperty,ni=Object.getOwnPropertyDescriptor,Cr=a((n,e,t,r)=>{for(var o=r>1?void 0:r?ni(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&ii(e,t,o),o},"__decorateClass$p"),V;let Ze=(V=class extends p{get communityPostId(){return this.communityPost.id}get contentBlocks(){var e;return(e=this.communityPost)==null?void 0:e.contentBlocks}isYoutubeEmbedded(e){var t,r;return((t=e.data)==null?void 0:t.length)===1&&((r=e.data)==null?void 0:r[0].type)===C.Youtube}},a(V,"AdminPostContents"),V);Cr([c({type:Object,required:!0})],Ze.prototype,"communityPost",2);Ze=Cr([l({components:{PostReactionState:Nt,PostDetailImageContainer:dr,Contents:Us,Media:Hs,Subheading:Zs,YoutubeEmbedded:si,MarkdownContents:ss,SoomgoContents:Ms}})],Ze);var ai=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"body-container"},[t("div",{staticClass:"body-contents"},e._l(e.contentBlocks,function(r,o){return t("div",{key:`${r.type}_${o}`,staticClass:"contents-block"},[r.type==="text"?t("Contents",{attrs:{content:r.data}}):r.type==="markdown1"?t("MarkdownContents",{attrs:{content:r.data}}):e.isYoutubeEmbedded(r)?t("YoutubeEmbedded",{attrs:{youtube:r.data[0]}}):r.type==="media"?t("Media",{attrs:{media:r.data}}):r.type==="subheading"?t("Subheading",{attrs:{subheading:r.data}}):r.type==="soomgo_contents"?t("SoomgoContents",{attrs:{url:r.data.url,description:r.data.description}}
5):e._e()],1)}),0)])},"render"),ci=[],ui=m(Ze,ai,ci,!1,null,"a6150242");const li=ui.exports;var mi=Object.defineProperty,pi=Object.getOwnPropertyDescriptor,yr=a((n,e,t,r)=>{for(var o=r>1?void 0:r?pi(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&mi(e,t,o),o},"__decorateClass$o"),J;let Xe=(J=class extends p{get communityPostId(){return this.communityPost.id}get contentBlocks(){return this.communityPost.contentBlocks}get contents(){var e;return(e=this.contentBlocks.find(t=>t.type===C.Text))==null?void 0:e.data}get tagList(){return this.communityPost.tags}get hasTagList(){return this.tagList.length>0}get imageList(){var e;return((e=this.contentBlocks.find(t=>t.type===C.Images))==null?void 0:e.data)||[]}get hasImageList(){return this.imageList.length>0}get currentUserRole(){return h.currentUserRole}searchTag(e){Be.user_tag_click_on_body(this.currentUserRole,e),this.$router.push({name:"soomgo-life-search",params:{keyword:`#${e}`},query:{from:"post-detail",postId:this.communityPost.id}})}},a(J,"PostContents"),J);yr([c({type:Object,required:!0})],Xe.prototype,"communityPost",2);Xe=yr([l({components:{PostReactionState:Nt,PostDetailImageContainer:dr}})],Xe);var di=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"body-container"},[t("div",{staticClass:"body-contents"},[t("Typography",{staticClass:"text",attrs:{as:"p",variant:"body16:regular"}},[t("span",{directives:[{name:"linkify",rawName:"v-linkify",value:e.contents,expression:"contents"}]})])],1),e.hasImageList?t("PostDetailImageContainer",{attrs:{"image-list":e.imageList}}):e._e(),e.hasTagList?t("ul",{staticClass:"body-tag-list"},e._l(e.tagList,function(r){return t("li",{key:r.id,staticClass:"tag-box",on:{click:a(function(o){return e.searchTag(r.name)},"click")}},[t("Typography",{staticClass:"tag-text",attrs:{variant:"body14:regular"}},[e._v(" "+e._s(r.name)+" ")])],1)}),0):e._e()],1)},"render"),hi=[],fi=m(Xe,di,hi,!1,null,"c729cbcf");const vi=fi.exports;var _i=Object.defineProperty,gi=Object.getOwnPropertyDescriptor,gt=a((n,e,t,r)=>{for(var o=r>1?void 0:r?gi(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&_i(e,t,o),o},"__decorateClass$n"),Z;let Ie=(Z=class extends p{get isAdmin(){return At===this.commentInfo.user.id}get isUserPenalty(){return u.isBanUser}get isCommentWriter(){return h.me.id===this.commentInfo.user.id}get likeCount(){return this.commentInfo.likeCount?bt(this.commentInfo.likeCount):""}get communityPost(){var e;return(e=u)==null?void 0:e.communityPost}get computedCommentCreatedAt(){return R.dateFromNowPostFormat(this.commentInfo.createdAt)}get likeColor(){return this.commentInfo.isLiked?"purple":"secondary"}get likeIconName(){return this.commentInfo.isLiked?"thumb_up_filled":"thumb_up_outlined"}closeBestCommentsTooltip(){u.setIsBestCommentsTooltipDisplayed(!0),I.set(ke,!0)}onClickLikeButton(){this.$emit("change-is-liked"),this.closeBestCommentsTooltip()}onClickTooltipClose(){this.closeBestCommentsTooltip()}onDisplayedBestCommentsTooltip([e]){e.isIntersecting&&!I.get(ke)&&I.set(ke,!0)}},a(Z,"PostCommentActions"),Z);gt([c({type:Object,required:!0})],Ie.prototype,"commentInfo",2);gt([c({type:Number,default:null})],Ie.prototype,"commentIndex",2);gt([c({type:Boolean,default:!1})],Ie.prototype,"hasBestCommentsTooltip",2);Ie=gt([l({components:{SvgIcon:w,ObserverContainer:ir}})],Ie);var Ci=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"post-comment-actions"},[t("Typography",{staticClass:"comment-more-action",attrs:{as:"div",variant:"body12:regular"}},[t("span",{staticClass:"comment-create-at"},[e._v(e._s(e.computedCommentCreatedAt))]),e.isCommentWriter||!e.isAdmin?t("no-ssr",[e.isCommentWriter?t("b-dropdown",{attrs:{right:""}},[t("b-dropdown-item",{attrs:{target:"_blank"},on:{click:a(function(r){return e.$emit("change-edit-mode")},"click")}},[e._v("ìì í기")]),t("b-dropdown-item",{on:{click:a(function(r){return e.$emit("remove-comment")},"click")}},[e._v("ìì í기")])],1):t("b-dropdown",{attrs:{right:""}},[t("b-dropdown-item",{on:{click:a(function(r){return e.$emit("open-report-modal")},"click")}}
5,[e._v("ëê¸ ì ê³ í기")])],1)],1):e._e()],1),t("div",{staticClass:"comment-action-container"},[t("b-button",{staticClass:"comment-action",attrs:{variant:"none"},on:{click:a(function(r){return e.$emit("reply-comment")},"click")}},[t("PrismaIcon",{attrs:{category:"communication",name:"chat_outlined",size:16,color:"secondary"}}),e._v(" ëê¸ë¬ê¸° ")],1),t("b-button",{staticClass:"comment-action",class:{actioned:e.commentInfo.isLiked},attrs:{variant:"none"},on:{click:e.onClickLikeButton}},[t("PrismaIcon",{attrs:{category:"toggle",name:e.likeIconName,size:16,color:e.likeColor}}),e._v(" ëìì´ ë¼ì "+e._s(e.likeCount)+" ")],1),t("no-ssr",[e.hasBestCommentsTooltip?t("ObserverContainer",{attrs:{options:{threshold:1}},on:{trigger:e.onDisplayedBestCommentsTooltip}},[t("div",{staticClass:"best-comments-tooltip"},[t("span",[e._v("ëµë³ì´ ì ì©íë¤ë©´ ëìì´ ë¼ì를"),t("br"),e._v("ëë¬ ê³ ë§ìì ííí´ë³´ì¸ì")]),t("b-button",{staticClass:"tooltip-close",attrs:{variant:"none"},on:{click:e.onClickTooltipClose}},[t("PrismaIcon",{attrs:{name:"cancel_outlined",size:16,color:"white"}})],1)],1)]):e._e()],1)],1)],1)},"render"),yi=[],Pi=m(Ie,Ci,yi,!1,null,"771e0771");const bi=Pi.exports;var $i=Object.defineProperty,wi=Object.getOwnPropertyDescriptor,Pr=a((n,e,t,r)=>{for(var o=r>1?void 0:r?wi(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&$i(e,t,o),o},"__decorateClass$m"),X;let et=(X=class extends p{get isBestComment(){return this.commentInfo.isBest}get formatMentionInfos(){var e,t;return(t=(e=this.commentInfo)==null?void 0:e.mentionInfos)==null?void 0:t.map(r=>({format:`[@SG:${r.id}]`,...r}))}get userNameTag(){var e,t,r;return(r=(t=(e=this.commentInfo)==null?void 0:e.content)==null?void 0:t.match(/(\[@SG:\d+\])/gi))==null?void 0:r[0]}get mentionedUserName(){var e;return this.formatMentionInfos?(e=this.userNameTag)==null?void 0:e.replace(/(\[@SG:\d+\])/gi,t=>{var r;return(r=this.formatMentionInfos.find(o=>o.format===t))==null?void 0:r.name}):""}get contents(){return this.commentInfo.content?this.commentInfo.content.replace(/(\[@SG:\d+\])/gi,""):""}},a(X,"PostCommentContents"),X);Pr([c({type:Object,required:!0})],et.prototype,"commentInfo",2);et=Pr([l({components:{BestCommentBadge:co}})],et);var Ii=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"post-comment-contents"},[e.mentionedUserName?t("p",{staticClass:"mentioned-user"},[e._v(" "+e._s(e.mentionedUserName)+" ")]):e._e(),t("Typography",{staticClass:"text comment-text",attrs:{as:"p",variant:"body14:regular"}},[e.isBestComment?t("BestCommentBadge"):e._e(),t("span",{directives:[{name:"linkify",rawName:"v-linkify",value:e.contents,expression:"contents"}]})],1)],1)},"render"),Si=[],Ri=m(et,Ii,Si,!1,null,"15b7e569");const Bi=Ri.exports;var xi=Object.defineProperty,Ai=Object.getOwnPropertyDescriptor,qe=a((n,e,t,r)=>{for(var o=r>1?void 0:r?Ai(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&xi(e,t,o),o},"__decorateClass$l"),ee;let A=(ee=class extends p{get anonymous(){return Et}get user(){return this.commentInfo.user}get userProfileImage(){var e;return this.getThumbnail((e=this.user)==null?void 0:e.profileImageUrl,32,32)}get isAdmin(){return At===this.user.id}get isProvider(){return!this.isAdmin&&this.user.isProvider&&this.providerInfo}get communityPost(){var e;return(e=u)==null?void 0:e.communityPost}get isPostWriter(){return this.communityPost.user.id===this.user.id}get currentUserRole(){return h.currentUserRole}get isPublished(){return this.commentInfo.status===wt.Published&&!this.commentInfo.isReported}get hiddenMessage(){return this.commentInfo.status===wt.Hidden||this.commentInfo.isReported?"ê´ë¦¬ìì ìí´ ì¨ê²¨ì§ ëê¸ì
ëë¤.":"ìì±ìê° ìì í ëê¸ì
ëë¤."}get isUserPenalty(){return u.isBanUser}get providerInfo(){return this.user.providerInfo}get subServices(){var e;return(e=this.providerInfo)==null?void 0:e.services}get mainServiceName(){var e,t,r,o;return((t=(e=this.providerInfo)==null?void 0:e.mainService)==null?void 0:t.name)||((o=(r=this.subServices)==null?void 0:r[0])==null?void 0:o.name)}get ownOtherServiceCount(){var t;const e=((t=this.subServices)==null?void 0:t.length)-1;return e>0?`+ ${e}ê° ìë¹ì¤`:""}get services(){return[this.mainServiceName,this.ownOtherServiceCount,"ê³ ì"].filter(e=>e)}
5get isProviderSquare(){return this.communityPost.topic.id===y.ProviderSquare}get isShowComments(){return this.commentInfo.content||this.commentInfo.isBest}get isAmbassador(){var e;return(e=this.providerInfo)==null?void 0:e.isAmbassador}get iconColor(){return Tt}goToProfile(){!this.user||!this.isProvider||this.$router.push({name:"profile",params:{userId:this.user.id.toString()},query:{from:dt.Community}})}getThumbnail(e,t,r){return Dt.getThumbnail({url:e,size:"sm",width:110,height:110})}openRequest(e){e.stopPropagation(),this.$emit("open-service-select-modal",this.commentInfo)}initLightGallery(){const e={selector:'[data-type="lightGallery"]',download:!1,exThumbImage:"data-exthumbimage"};this.$nextTick(()=>{this.destroyLightGallery(),$(this.$el).lightGallery(e)})}destroyLightGallery(){const e=$(this.$el).find("div.attached-image-wrapper");e.data("lightGallery")&&e.data("lightGallery").destroy(!0)}onRemoveComment(){this.$emit("remove-comment",this.commentInfo.id)}openReportModal(){if(this.isUserPenalty)return this.$showModal({name:"showUserBanModal"});Be.user_report_click(this.currentUserRole,"reply"),this.$emit("open-report-modal",this.commentInfo.id)}onReplyComment(){this.$emit("reply-comment",{parentCommentId:this.parentCommentId,comment:this.commentInfo})}onChangeIsLikedComment(){this.$emit("change-is-liked",{commentId:this.commentInfo.id,isLiked:!this.commentInfo.isLiked})}onChangeEditMode(){var e,t;this.$emit("change-edit-mode",{commentId:this.commentInfo.id,parentCommentId:this.parentCommentId,comment:{postId:(e=this.communityPost)==null?void 0:e.id,content:this.commentInfo.content,parentCommentId:this.parentCommentId,mentionUserIds:(t=this.commentInfo.mentionInfos)==null?void 0:t.map(r=>r.id),attachments:this.commentInfo.attachments.map(r=>({fileId:r.id,url:r.url,type:r.type}))}})}mounted(){this.initLightGallery()}beforeDestroy(){this.destroyLightGallery()}},a(ee,"PostComment"),ee);qe([c({type:Object,required:!0})],A.prototype,"commentInfo",2);qe([c({type:String,default:null})],A.prototype,"parentCommentId",2);qe([c({type:Boolean,default:!1})],A.prototype,"isReplyComment",2);qe([c({type:Boolean,default:!1})],A.prototype,"hasBestCommentsTooltip",2);A=qe([l({components:{Portal:Mt,SvgIcon:w,PostCommentActions:bi,PostCommentContents:Bi}})],A);var Ti=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,e.isPublished?t("div",{class:["post-comment-wrapper",{reply:e.isReplyComment}]},[t("div",{class:["profile-image",{provider:e.isProvider}]},[t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:{src:e.userProfileImage,loading:e.anonymous,error:e.anonymous},expression:"{ src: userProfileImage, loading: anonymous, error: anonymous }"}],staticClass:"image",attrs:{alt:e.user.name},on:{click:e.goToProfile}})]),t("div",{staticClass:"comment-information"},[t("div",{class:["user-info",{admin:e.isAdmin,provider:e.isProvider}],on:{click:e.goToProfile}},[t("div",{staticClass:"user-info-wrapper",class:{"pro-user":e.isProvider}},[t("div",{staticClass:"user"},[t("Typography",{staticClass:"user-name",attrs:{variant:"body14:semibold"}},[e._v(e._s(e.user.name))]),e.isAmbassador?t("SvgIcon",{staticClass:"ambassador-badge",attrs:{width:14,height:14,icon:"icons/contents/ambassador_filled.svg",prisma:"",color:e.iconColor,fill:""}}):e._e(),e.isPostWriter?t("Typography",{staticClass:"badge",attrs:{variant:"body12:medium",color:"secondary"}},[e._v("ìì±ì")]):e._e()],1),e.isProvider&&e.providerInfo?t("div",{staticClass:"pro-user-services"},e._l(e.services,function(r,o){return t("Typography",{key:o,class:["service",{"main-service":o===0}],attrs:{variant:"body12:regular",color:"tertiary"}},[e._v(e._s(r))])}),1):e._e()]),e.isProvider&&!e.isProviderSquare?t("Typography",{staticClass:"send-request-button",attrs:{as:"button",variant:"body12:medium"},on:{click:e.openRequest}},[e._v("견ì ìì²")]):e._e()],1),e.isShowComments?t("PostCommentContents",{attrs:{"comment-info":e.commentInfo}}):e._e(),e.commentInfo.attachments&&e.commentInfo.attachments.length>0?t("ul",{staticClass:"attached-image-wrapper"},e._l(e.commentInfo.attachments,function(r,o){return t("li",{key:o,staticClass:"attached-image-item",attrs:{"data-type":"lightGallery","data-exthumbimage":e.getThumbnail(r.url,110,110),"data-sub-html-src":e.getThumbnail(r.url,110,110),"data-src":e.$addWebpQuery(r.url),"data-sub-html":" "}},[t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.$addWebpQuery(r.url),expression:"$addWebpQuery(image.url)"}],staticClass:"image",attrs:{alt:r.alt}})])}
5),0):e._e(),t("PostCommentActions",{attrs:{"comment-info":e.commentInfo,"has-best-comments-tooltip":e.hasBestCommentsTooltip},on:{"open-report-modal":e.openReportModal,"reply-comment":e.onReplyComment,"change-edit-mode":e.onChangeEditMode,"remove-comment":e.onRemoveComment,"change-is-liked":e.onChangeIsLikedComment}})],1)]):t("div",{staticClass:"hidden-comment-wrapper"},[t("Typography",{staticClass:"reason-description",attrs:{as:"p",variant:"body14:regular"}},[e._v(" "+e._s(e.hiddenMessage)+" ")])],1)},"render"),Di=[],Oi=m(A,Ti,Di,!1,null,"0b6ef1da");const br=Oi.exports;var Mi=Object.defineProperty,Ei=Object.getOwnPropertyDescriptor,D=a((n,e,t,r)=>{for(var o=r>1?void 0:r?Ei(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&Mi(e,t,o),o},"__decorateClass$k"),te;let S=(te=class extends p{constructor(){super(...arguments),this.allowedExt=Qt,this.maxFileSize=10,this.maxLines=4,this.replyUserRegex=/(\[@SG:\d+\] )|(\[@SG:\d+\])/gi}get isProviderMode(){return h.isProviderMode}get attachments(){var e;return(e=this.commentPayload)==null?void 0:e.attachments}set attachments(e){this.$emit("change-comment",{commentPayload:{...this.commentPayload,attachments:e},type:this.inputType})}get content(){var e,t;return((t=(e=this.commentPayload)==null?void 0:e.content)==null?void 0:t.replace(this.replyUserRegex,""))||""}set content(e){this.$emit("change-comment",{commentPayload:{...this.commentPayload,content:[this.userNameTag,e].filter(
5Boolean).join(" ")},type:this.inputType})}get isContent(){return!!this.content}get isAttachments(){var e;return((e=this.attachments)==null?void 0:e.length)>0}get isValid(){return this.isAttachments||this.content}get fileElementId(){return this.isEditInputType?`file-edit-input-${this.commentModel.id}`:this.isCreateInputType?"file-input":"file-sub-input"}get formatMentionInfos(){var e,t;return(t=(e=this.commentModel)==null?void 0:e.mentionInfos)==null?void 0:t.map(r=>({format:`[@SG:${r.id}]`,...r}))}get userNameTag(){var e,t;return this.isReplyComment?(t=(e=this.commentPayload)==null?void 0:e.content.match(/(\[@SG:\d+\])/gi))==null?void 0:t[0]:""}get replyUserName(){var e;return this.formatMentionInfos?(e=this.userNameTag)==null?void 0:e.replace(/(\[@SG:\d+\])/gi,t=>{var r;return(r=this.formatMentionInfos.find(o=>o.format===t))==null?void 0:r.name}):""}get acceptExts(){return Qt.map(e=>"image/"+e).join(",")}get isFileAttachDisabled(){var e;return((e=this.attachments)==null?void 0:e.length)>0}get isGuest(){return h.currentUserRole===rr.guest}get isUserPenalty(){return u.isBanUser}get isCreateInputType(){return this.inputType===g.Create}get isEditInputType(){return this.inputType===g.Edit}get isCommunityUserBan(){return this.isUserPenalty&&this.isCreateInputType}get placeholder(){return this.isCommunityUserBan?"ê¸ì°ê¸°ê° ì í ëììµëë¤.":this.isProviderMode?"주ì! ê³ ì ê°ì¸ ì°ë½ì²ë ë¨ê¸¸ ì ìì´ì.":"ëê¸ì ë¨ê²¨ë³´ì¸ì."}initCommentElementSetting(){this.isCreateInputType||this.$nextTick(()=>{var e,t;if(this.isReplyComment&&this.inputType===g.ReplyCreate){(t=(e=this.$refs.textareaAutoSize)==null?void 0:e.$el)==null||t.focus();const o=this.$refs.commentInput.getBoundingClientRect();window.scrollTo({top:o.top+window.scrollY-window.innerHeight/2,behavior:"smooth"})}})}updateContent(e){const t=e.target;this.content=t.value}onRegisterComment(){var e;this.isValid&&this.$emit("register-comment",{commentId:[g.Create,g.ReplyCreate].includes(this.inputType)||(e=this.commentModel)==null?void 0:e.id,eventType:this.inputType})}deleteImage(e){this.attachments=this.attachments.filter((t,r)=>r!==e)}async openNeedLoginAlert(){if(!this.isGuest)return;const{value:e}=await this.$swal.fire({title:"ë¡ê·¸ì¸ íì",text:"ë¡ê·¸ì¸ í ìë¹ì¤ë¥¼ ì´ì©í ì ììµëë¤.",confirmButtonText:"ë¡ê·¸ì¸/íìê°ì
",cancelButtonText:"ì·¨ì"});return e&&this.$router.push({name:"login",query:{redirect:this.$route.path}}),!0}async uploadPhoto(e){const t=await this.openNeedLoginAlert();if(this.isFileAttachDisabled&&t)return;const r=e.target,o=Array.from(r.files);if(!await this.$validator.validate("uploadFile",o[0])){const i=this.errors.first("uploadFile");this.$emit("error",i);return}try{const i=await Promise.all(o.map(d=>Wr.uploadFile({topic:Hr.SOOMGOLIFE,file:d,fileName:d.name}).then(v=>{const _=v.response;return{fileId:_.fileId,url:_.fileUrl,alt:_.fileName}})));this.attachments=i.map(d=>({type:"image",fileId:d.fileId,url:d.url})),r.value=""}catch{this.$prismaToast.pop({type:"message",text:"ëìì ì
ë¡ëì ì¤í¨íììµëë¤. ì ì í ë¤ì ìëí´ì£¼ì¸ì.",state:"warning"})}}async checkFirstWriter(e){var r,o,s,i;if(this.isGuest&&((o=(r=this.$refs.textareaAutoSize)==null?void 0:r.$el)==null||o.blur()),await this.openNeedLoginAlert())return;if(this.isCommunityUserBan)return this.$showModal({name:"showUserBanModal"});if(!this.isReplyComment&&!I.get(or)&&h.isProviderMode){e.preventDefault(),(i=(s=this.$refs.textareaAutoSize)==null?void 0:s.$el)==null||i.blur(),this.$emit("open-best-comments-nudge-modal");return}I.get(Kr)==="active"&&e.preventDefault(),u.changeFirstWriteState("active")}mounted(){this.$validator.extend("fileSize",{getMessage:a(()=>`${this.maxFileSize}MB ì´íì íì¼ë§ 첨ë¶í ì ììµëë¤.`,"getMessage"),validate:a(e=>Vt.calcSizeByUnit(e.size,this.maxFileSize,"MB").size<this.maxFileSize,"validate")}),this.$validator.extend("fileExtension",{getMessage:a(()=>"첨ë¶í ì ìë íì¼ íì¥ìì
ëë¤.","getMessage"),validate:a(e=>{const t=Vt.getExtension(e).toLowerCase();return this.allowedExt.includes(t)},"validate")}),this.$validator.attach({name:"uploadFile",rules:"fileSize|fileExtension"})}},a(te,"PostCommentInput"),te);D([c({type:Object})],S.prototype,"commentPayload",2);D([c({type:Object,default:null})],S.prototype,"commentModel",2);D([c({type:Boolean,default:!1})],S.prototype,"isReplyComment",2);D([c({type:String,default:null})],S.prototype,"inputType",2);D([c({type:Object,default:null})],S.prototype,"currentClickedComment",2);D([Zt("currentClickedComment",{immediate:!0})],S.prototype,"initCommentElementSetting",1);S=D([l({components:{TextareaAutosize:mo}})],S);const Li="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m12.75%202.5%201.678%201.76h2.905c1.009%200%201.834.79%201.834%201.759v10.555c0%20.968-.825%201.76-1.834%201.76H2.667c-1.009%200-1.834-.792-1.834-1.76V6.02c0-.968.825-1.76%201.834-1.76h2.905L7.25%202.5h5.5zM10%208.155c-1.898%200-3.438%201.52-3.438%203.393%200%201.872%201.54%203.392%203.438%203.392%201.898%2
500%203.438-1.52%203.438-3.392%200-1.873-1.54-3.393-3.438-3.393z'%20fill='%23C5C5C5'%20fill-rule='evenodd'/%3e%3c/svg%3e",Fi="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m12.75%202.5%201.678%201.76h2.905c1.009%200%201.834.79%201.834%201.759v10.555c0%20.968-.825%201.76-1.834%201.76H2.667c-1.009%200-1.834-.792-1.834-1.76V6.02c0-.968.825-1.76%201.834-1.76h2.905L7.25%202.5h5.5zM10%208.155c-1.898%200-3.438%201.52-3.438%203.393%200%201.872%201.54%203.392%203.438%203.392%201.898%200%203.438-1.52%203.438-3.392%200-1.873-1.54-3.393-3.438-3.393z'%20fill='%232D2D2D'%20fill-rule='evenodd'/%3e%3c/svg%3e";var Ni=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{ref:"commentInput",staticClass:"comment-input-box",on:{click:e.checkFirstWriter}},[t("label",{staticClass:"attach-file-label",attrs:{for:e.fileElementId}},[e.isFileAttachDisabled?t("img",{staticClass:"attach-image-icon disabled",attrs:{src:Li,alt:"ì´ë¯¸ì§ 첨ë¶"}}):t("img",{staticClass:"attach-image-icon",attrs:{src:Fi,alt:"ì´ë¯¸ì§ 첨ë¶"}}),t("b-form-file",{directives:[{name:"validate",rawName:"v-validate",value:"fileSize|fileExtension",expression:"'fileSize|fileExtension'"}],staticClass:"file-input",attrs:{id:e.fileElementId,name:"uploadFile",accept:e.acceptExts,disabled:e.isFileAttachDisabled||e.isGuest},on:{change:e.uploadPhoto}})],1),t("div",{staticClass:"comment-body"},[e.replyUserName?t("Typography",{ref:"replyUserName",staticClass:"reply-user-name",attrs:{variant:"body14:regular"}},[e._v(e._s(e.replyUserName))]):e._e(),t("TextareaAutosize",{ref:"textareaAutoSize",staticClass:"sg-text-body2 sg-font-regular comment-input",attrs:{component:"b-form-textarea",name:"comment-input",placeholder:e.placeholder,value:e.content,rows:1,"max-height":88,maxlength:400,"is-init-value":e.isContent,disabled:e.isCommunityUserBan},nativeOn:{input:a(function(r){return e.updateContent.apply(null,arguments)},"input")}}),e.isAttachments?e._l(e.attachments,function(r,o){return t("div",{key:r.fileId,staticClass:"image-preview"},[t("img",{staticClass:"delete-badge",attrs:{src:fo},on:{click:a(function(s){return e.deleteImage(o)},"click")}}),t("img",{staticClass:"image",attrs:{src:e.$addWebpQuery(r.url),alt:"미리보기 ì´ë¯¸ì§"}})])}):e._e()],2),t("button",{staticClass:"write-button",on:{click:e.onRegisterComment}},[t("Typography",{class:["write-comment-submit",{active:e.isValid,"one-line":!e.isAttachments}],attrs:{variant:"body14:regular"}},[e._v(" ë±ë¡ ")])],1)])},"render"),qi=[],Ui=m(S,Ni,qi,!1,null,"f18b0683");const $r=Ui.exports;var ki=Object.defineProperty,ji=Object.getOwnPropertyDescriptor,Ue=a((n,e,t,r)=>{for(var o=r>1?void 0:r?ji(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&ki(e,t,o),o},"__decorateClass$j"),re;let T=(re=class extends p{get payloadForCreateReplyComment(){var e;return(e=u)==null?void 0:e.payloadForCreateReplyComment}get commentEditPayload(){var e;return(e=u)==null?void 0:e.commentEditPayload}get inputTypeEdit(){return g.Edit}get inputTypeReplyCreate(){return g.ReplyCreate}get isWriteCommendEdit(){var e,t,r;return((e=this.commentEditPayload)==null?void 0:e.content)||((r=(t=this.commentEditPayload)==null?void 0:t.attachments)==null?void 0:r.length)>0}get isWriteReplyComment(){var e,t,r;return((e=this.payloadForCreateReplyComment)==null?void 0:e.content.replace(/(\[@SG:\d+\])/gi,""))||((r=(t=this.payloadForCreateReplyComment)==null?void 0:t.attachments)==null?void 0:r.length)>0}get isReplyWrite(){var e;return((e=this.currentClickedComment)==null?void 0:e.parentCommentId)===this.comment.id}checkEditableComment(e){var t;return((t=this.commentEditInfo)==null?void 0:t.commentId)===e&&this.commentEditInfo.parentCommentId===this.comment.id}onChangeComment(e){this.$emit("change-comment",e)}onRegisterComment(e){this.$emit("register-comment",e)}onChangeIsLiked(e){this.$emit("change-is-liked",e)}async cancelAlert(){if(this.isWriteCommendEdit||this.isWriteReplyComment){const{value:e}=await this.$swal.fire({title:this.isWriteCommendEdit?"ëê¸ ìì ì·¨ì":"ëê¸ ìì± ì·¨ì",text:this.isWriteCommendEdit?"ë³ê²½ ë´ì©ì´ ì ì¥ëì§ ììµëë¤.":"ìì±ì¤ì¸ ë´ì©ì´ ì ì¥ëì§ ìê³ ì¬ë¼ì§ëë¤.",confirmButtonText:"íì¸",showCancelButton:!0});if(!e)return}return!0}async onChangeEditMode({commentId:e,parentCommentId:t,comment:r}){await this.cancelAlert()&&(this.payloadForCreateReplyComment&&this.$emit("change-reply-write-mode",null),this.$emit("change-write-mode",{commentId:e,parentCommentId:t,comment:r}))}async onReplyComment({parentCommentId:e,comment:t}){var o,s;await this.cancelAlert()&&(u.setPayloadForCreateReplyComment(),this.commentEditPayload!==null&&this.$emit("change-write-mode",null),this.$emit("change-reply-write-mode",{parentCommentId:((o=this.currentClickedComment)==null?void 0:o.parentCommentId)===e&&((s=this.currentClickedComment)==null?void 0:s.commentId)===t.id?null:e,comment:t}))}onRemoveComment(e){this.$emit("remove-comment",e)}openReportModal(e){this.$emit("open-report-modal",e)}openServiceSelectModal(e){this.$emit("open-service-select-modal",e)}},a(re,"PostCommentsListItem"),re);Ue([c({type:Object,required:!0})],T.prototype,"comment",2);Ue([c({type:Object})],T.prototype,"commentEditInfo",2);Ue([c({type:Object})],T.prototype,"currentClickedComment",2);Ue([c({type:Boolean,default:!1})],T.prototype,"hasBestCommentsTooltip",2);T=Ue([l({components:{PostComment:br,PostCommentInput:$r}})],T);var zi=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("li",{staticClass:"post-comments-list-item"},[e.checkEditableComment(e.comment.id)?t("PostCommentInput",{attrs:{"comment-payload":e.commentEditPayload,"comment-model":e.comment,"input-type":e.inputTypeEdit}
5,on:{"register-comment":e.onRegisterComment,"change-comment":e.onChangeComment}}):t("PostComment",{attrs:{"comment-info":e.comment,"parent-comment-id":e.comment.id,"has-best-comments-tooltip":e.hasBestCommentsTooltip},on:{"open-report-modal":e.openReportModal,"open-service-select-modal":e.openServiceSelectModal,"change-comment":e.onChangeComment,"change-is-liked":e.onChangeIsLiked,"reply-comment":e.onReplyComment,"change-edit-mode":e.onChangeEditMode,"remove-comment":e.onRemoveComment}}),e.comment.replies&&e.comment.replies.length>0?[t("ul",{staticClass:"comment-reply-list"},e._l(e.comment.replies,function(r){return t("li",{key:r.id,staticClass:"comment-reply-list-item"},[e.checkEditableComment(r.id)?t("PostCommentInput",{attrs:{"comment-payload":e.commentEditPayload,"comment-model":r,"input-type":e.inputTypeEdit,"is-reply-comment":!0},on:{"register-comment":e.onRegisterComment,"change-comment":e.onChangeComment}}):t("PostComment",{attrs:{"comment-info":r,"parent-comment-id":e.comment.id,"is-reply-comment":!0},on:{"open-report-modal":e.openReportModal,"open-service-select-modal":e.openServiceSelectModal,"change-comment":e.onChangeComment,"change-is-liked":e.onChangeIsLiked,"reply-comment":e.onReplyComment,"change-edit-mode":e.onChangeEditMode,"remove-comment":e.onRemoveComment}})],1)}),0)]:e._e(),e.isReplyWrite?t("PostCommentInput",{attrs:{"comment-payload":e.payloadForCreateReplyComment,"comment-model":e.payloadForCreateReplyComment,"input-type":e.inputTypeReplyCreate,"is-reply-comment":!0,"current-clicked-comment":e.currentClickedComment}
5,on:{"register-comment":e.onRegisterComment,"change-comment":e.onChangeComment}}):e._e()],2)},"render"),Gi=[],Wi=m(T,zi,Gi,!1,null,"281a1b28");const Hi=Wi.exports;var Ki=Object.defineProperty,Yi=Object.getOwnPropertyDescriptor,Ct=a((n,e,t,r)=>{for(var o=r>1?void 0:r?Yi(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&Ki(e,t,o),o},"__decorateClass$i"),oe;let Se=(oe=class extends p{constructor(){super(...arguments),this.hasComments=!1}get isTooltipDisplayed(){return u.isBestCommentsTooltipDisplayed}hasBestCommentsTooltip(e){return e===0&&!h.isProviderMode&&!this.isTooltipDisplayed&&this.hasComments}onChangeWriteMode(e){this.$emit("on-change-comment-edit-info",e)}onChangeReplyWriteMode(e){if(!e)return this.$emit("on-change-clicked-comment",null);const{parentCommentId:t,comment:r}=e,o=[{id:r.user.id,name:r.user.name}];this.$emit("on-change-clicked-comment",{parentCommentId:t,commentId:r==null?void 0:r.id}),this.$emit("change-comment",{commentPayload:t?{parentCommentId:t,mentionInfos:o,mentionUserIds:o.map(s=>s.id),content:o.map(s=>`[@SG:${s.id}]`).join(" ")}:null,type:g.ReplyCreate})}onChangeComment(e){this.$emit("change-comment",e)}onChangeIsLiked(e){this.$emit("change-is-liked",e)}onRegisterComment(e){this.$emit("register-comment",e)}onRemoveComment(e){this.$emit("remove-comment",e)}openReportModal(e){this.$emit("open-report-modal",e)}openServiceSelectModal(e){this.$emit("open-service-select-modal",e)}beforeMount(){this.hasComments=this.comments.length>0,u.setIsBestCommentsTooltipDisplayed(I.get(ke))}},a(oe,"PostCommentsList"),oe);Ct([c({type:Array,required:!0})],Se.prototype,"comments",2);Ct([c({type:Object})],Se.prototype,"commentEditInfo",2);Ct([c({type:Object})],Se.prototype,"currentClickedComment",2);Se=Ct([l({components:{PostCommentsListItem:Hi}})],Se);var Qi=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("ul",{staticClass:"post-comments-list"},e._l(e.comments,function(r,o){return t("PostCommentsListItem",{key:r.id,attrs:{comment:r,"has-best-comments-tooltip":e.hasBestCommentsTooltip(o),"comment-edit-info":e.commentEditInfo,"current-clicked-comment":e.currentClickedComment},on:{"open-report-modal":e.openReportModal,"open-service-select-modal":e.openServiceSelectModal,"change-reply-write-mode":e.onChangeReplyWriteMode,"change-write-mode":e.onChangeWriteMode,"change-comment":e.onChangeComment,"change-is-liked":e.onChangeIsLiked,"register-comment":e.onReg
5isterComment,"remove-comment":e.onRemoveComment}})}),1)},"render"),Vi=[],Ji=m(Se,Qi,Vi,!1,null,"06d1cf6c");const Zi=Ji.exports;var Xi=Object.defineProperty,en=Object.getOwnPropertyDescriptor,wr=a((n,e,t,r)=>{for(var o=r>1?void 0:r?en(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&Xi(e,t,o),o},"__decorateClass$h"),se;let tt=(se=class extends p{get modalStates(){return Re.modal}get trackerLocation(){return ht}},a(se,"SoomgoLifeRequestModalWrapper"),se);wr([c({type:Object,required:!0})],tt.prototype,"proUserInfo",2);tt=wr([l({name:"SoomgoLifeRequestModalWrapper",components:{RequestFormModal:Lt,ServiceSelectModal:nr}})],tt);var tn=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[e.modalStates.serviceSelectModal?t("ServiceSelectModal",{attrs:{"user-name":e.proUserInfo.name,services:e.proUserInfo.providerInfo.services,"mobile-fullscreen":!0,from:e.trackerLocation.PointOutRequestFromCommunity},on:{close:a(function(r){return e.$hideModal("serviceSelectModal")},"close")}}):e._e(),e.modalStates.requestForm?t("RequestFormModal",{attrs:{"service-slug":e.modalStates.requestForm.slug,"target-provider-id":e.proUserInfo.providerInfo.id,"mobile-fullscreen":!0,from:e.trackerLocation.PointOutRequestFromCommunity,"is-soomgo-life":!!e.proUserInfo},on:{close:a(function(r){return e.$hideModal("requestForm")},"close")}}):e._e()],1)},"render"),rn=[],on=m(tt,tn,rn,!1,null,"7ff7876f");const sn=on.exports;var nn=Object.defineProperty,an=Object.getOwnPropertyDescriptor,Ir=a((n,e,t,r)=>{for(var o=r>1?void 0:r?an(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&nn(e,t,o),o},"__decorateClass$g");const cn=500;var ie;let rt=(ie=class extends p{constructor(){super(...arguments),this.isLoading=!1,this.isLiking=!1,this.isUpdating=!1,this.infiniteId=Date.now(),this.paginationSize=10,this.commentCreatePayload=null,this.commentEditInfo=null,this.currentClickedComment=null,this.proUserInfo=null,this.replyUserRegex=/(\[@SG:\d+\] )|(\[@SG:\d+\])/gi,this.phoneAuthResolver=null}get communityPostId(){var e;return(e=this.communityPost)==null?void 0:e.id}get isMyPost(){var e,t,r;return((t=(e=this.communityPost)==null?void 0:e.user)==null?void 0:t.id)===((r=this.me)==null?void 0:r.id)}get bestComments(){return u.bestComments??[]}get comments(){var e;return[...this.bestComments,...((e=u)==null?void 0:e.comments)??[]]}get hasComments(){var e;return((e=this.comments)==null?void 0:e.length)>0}get pagination(){var e;return(e=u)==null?void 0:e.commentListPagination}get payloadForCreateReplyComment(){var e;return(e=u)==null?void 0:e.payloadForCreateReplyComment}get commentEditPayload(){var e;return(e=u)==null?void 0:e.commentEditPayload}get currentUserRole(){return h.currentUserRole}get me(){return h.me}get needPhoneAuth(){return h.needPhoneAuth}get InputTypeCreate(){return g.Create}get isLikeDebouncer(){return ar(this.changeLikeState,cn)}get modalStates(){return Re.modal}async checkGuestUser(){if(this.currentUserRole!==rr.guest)return;const{value:e}=await this.$swal.fire({title:"ë¡ê·¸ì¸ íì",text:"ë¡ê·¸ì¸ í ìë¹ì¤ë¥¼ ì´ì©í ì ììµëë¤.",confirmButtonText:"ë¡ê·¸ì¸/íìê°ì
",cancelButtonText:"ì·¨ì"});return e&&this.$router.push({name:"login",query:{redirect:this.$route.path}}),!0}onChangeIsLiked(e){this.isLikeDebouncer(e)}async changeLikeState({commentId:e,isLiked:t}){await this.checkGuestUser()||this.isLiking||(this.isLiking=!0,P.click_content_comment_like_button({member_type:this.currentUserRole,reply_id:e}),await u.changeCommentReaction({commentId:e,isLiked:t,category:this.communityPost.category.id}),this.isLiking=!1)}onChangeCommentEditInfo(e){e?(this.commentEditInfo={commentId:e.commentId,parentCommentId:e.parentCommentId},u.setCommentEditPayload(e.comment)):(this.commentEditInfo=null,u.setCommentEditPayload(null))}async onChangeCurrentClickedComment(e){await this.checkGuestUser()||(this.currentClickedComment=e,u.changeFirstWriteState("active"))}onChangeCommentPayload({commentPayload:e,type:t}){switch(t){case g.Create:this.commentCreatePayload=e;break;case g.ReplyCreate:u.setPayloadForCreateReplyComment(e);break;case g.Edit:u.setCommentEditPayload(e);break}}findUserNameTag(e){var t;return(t=e.match(/(\[@SG:\d+\])/gi))==null?void 0:t[0].trim()}
5async editComment(e,t){let{content:r}=this.commentEditPayload;if(r){const o=this.findUserNameTag(r),s=r==null?void 0:r.replace(this.replyUserRegex,"").trim();r=[o,s].join(" ")}await u.modifyComment({commentId:e,comment:{...this.commentEditPayload,postId:t,category:this.communityPost.category.id}}),u.setCommentEditPayload(null),this.commentEditInfo=null}async createComment(e,t,r){var _,xe,Ae,Te,O,zt,Gt,Wt;let{content:o}=r;if(o){const Ht=this.findUserNameTag(o),Kt=o==null?void 0:o.replace(this.replyUserRegex,"").trim();o=Ht?[Ht,Kt].join(" "):Kt}await u.createComment({...r,content:o,postId:e,role:this.currentUserRole,mentionInfos:t?void 0:r.mentionInfos,category:this.communityPost.category.id});const{location_page_name:s,location_entry_method:i}=sr(this.$route),{serviceInfo:d,addressInfo:v}=this.communityPost;P.click_community_comment_register_button({member_type:this.currentUserRole,reply_type:t?"level2":"level1",photo:(_=r.attachments)!=null&&_.length?"w_photo":"wo_photo",post_id:e,is_image_uploaded:(xe=r.attachments)!=null&&xe.length?"true":"false",location_page_name:Array.isArray(s)?s[0]:s,location_entry_method:Array.isArray(i)?i[0]:i,service_category1_name:(Ae=d==null?void 0:d.category1)==null?void 0:Ae.name,service_category1_id:(Te=d==null?void 0:d.category1)!=null&&Te.id?String(d.category1.id):void 0,service_category2_name:(O=d==null?void 0:d.category2)==null?void 0:O.name,service_category2_id:(zt=d==null?void 0:d.category2)!=null&&zt.id?String(d.category2.id):void 0,service_name:(Gt=d==null?void 0:d.service)==null?void 0:Gt.name,service_id:(Wt=d==null?void 0:d.service)==null?void 0:Wt.id,region_category1_name:v==null?void 0:v.name1,region_category2_name:v==null?void 0:v.name2}),t?u.setPayloadForCreateReplyComment(null):this.commentCreatePayload=null}authenticatePhoneNumber(){return this.$bvModal.show(ho),new Promise(e=>this.phoneAuthResolver=e)}resolvePhoneAuth(e){var t;(t=this.phoneAuthResolver)==null||t.call(this,e),this.phoneAuthResolver=null}onCompleteAuthentication(){this.resolvePhoneAuth(!0)}onHidePhoneAuthModal(){this.resolvePhoneAuth(!1)}async onRegisterComment({commentId:e,eventType:t}){if(!this.isUpdating&&!(this.needPhoneAuth&&!await this.authenticatePhoneNumber())){this.isUpdating=!0;try{const r=this.communityPostId;if(t===g.Edit)this.editComment(e,r),this.$prismaToast.pop({type:"message",text:"ëê¸ì´ ìì ëììµëë¤.",state:"default"}),this.currentClickedComment=null;else{const o=t===g.ReplyCreate;o&&this.currentClickedComment&&(this.currentClickedComment=null);const s={...o?this.payloadForCreateReplyComment:this.commentCreatePayload};return await this.createComment(r,o,s),this.$prismaToast.pop({type:"message",text:"ëê¸ì´ ë±ë¡ëììµëë¤.",state:"default"})}}catch{this.$prismaToast.pop({type:"message",text:"ì¤ë¥ê° ë°ìíìµëë¤. ì ì í ë¤ì ìëí´ì£¼ì¸ì.",state:"default"})}finally{this.isUpdating=!1}}}async onRemoveComment(e){try{const{value:t}=await this.$swal.fire({title:"ëê¸ ìì ",text:"ëê¸ì ì ë§ ìì íìê² ìµëê¹?",confirmButtonText:"ìì í기",showCancelButton:!0});t&&(await u.removeComment(e,this.communityPost.category.id),this.$prismaToast.pop({type:"message",text:"ëê¸ì´ ìì ëììµëë¤.",state:"success"}))}catch{this.$prismaToast.pop({type:"message",text:"ì¤ë¥ê° ë°ìíìµëë¤. ì ì í ë¤ì ìëí´ì£¼ì¸ì.",state:"default"})}}openReportModal(e){this.$emit("open-report-modal",e)}openServiceSelectModal(e){this.proUserInfo=e.user,this.clickTargetRequest()}moveCashList(){this.$router.push({name:"mypage-cash-dashboard"})}clickTargetRequest(){if(this.proUserInfo.id===this.me.id)return this.$prismaToast.pop({type:"message",text:"ëìê²ë 견ì ì ìì²í ì ììµëë¤.",state:"default"});if(this.proUserInfo.providerInfo.services.length===1){const e=this.proUserInfo.providerInfo.services[0];return this.$showModal({name:"requestForm",params:{slug:e.slug,providerName:this.proUserInfo.name,targetRequestInfo:{providerId:this.proUserInfo.id,serviceId:e.id}}})}this.$showModal({name:"serviceSelectModal"})}notifyNoResults(e){const{complete:t}=e;t(),this.isLoading=!1}notifyNoMore(e){const{loaded:t}=e;t(),this.notifyNoResults(e)}async appendCommentList(e){var o,s;if(this.isLoading)return;const{loaded:t,error:r}=e;if(this.isLoading=!0,!((o=this.comments)!=null&&o.length)){this.notifyNoResults(e);return}if(!((s=this.pagination)!=null&&s.nextCursor)){this.notifyNoMore(e);return}try{const i={size:this.paginationSize};this.pagination.nextCursor&&(i.next_cursor=this.pagination.nextCursor);const{pagination:d}=await u.fetchComments({postId:this.communityPostId,query:i,category:this.communityPost.category.id,isAppend:!0});d.nextCursor||this.notifyNoResults(e),t()}catch(i){r(),Yr(i)}finally{this.isLoading=!1}}},a(ie,"PostCommentsContainer"),ie);Ir([c({type:Object,required:!0})],rt.prototype,"communityPost",2);rt=Ir([l({components:{LoadingIndicator:Ft,PostCommentsList:Zi,PostComment:br,PostCommentInput:$r,SoomgoLifeRequestModalWrapper:sn,CommunityPhoneAuthModal:po}})],rt);var un=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"post-comments-container"},[t("no-ssr",[t("PostCommentInput",{attrs:{"comment-payload":e.commentCreatePayload,"comment-model":null,"input-type":e.InputTypeCreate}
5,on:{"register-comment":e.onRegisterComment,"change-comment":e.onChangeCommentPayload,"open-best-comments-nudge-modal":a(function(r){return e.$emit("open-best-comments-nudge-modal")},"open-best-comments-nudge-modal")}})],1),e.hasComments?t("PostCommentsList",{attrs:{comments:e.comments,"comment-edit-info":e.commentEditInfo,"current-clicked-comment":e.currentClickedComment},on:{"on-change-comment-edit-info":e.onChangeCommentEditInfo,"on-change-clicked-comment":e.onChangeCurrentClickedComment,"open-report-modal":e.openReportModal,"open-service-select-modal":e.openServiceSelectModal,"register-comment":e.onRegisterComment,"change-comment":e.onChangeCommentPayload,"change-is-liked":e.onChangeIsLiked,"remove-comment":e.onRemoveComment}}):e._e(),t("no-ssr",[t("infinite-loading",{attrs:{identifier:e.infiniteId},on:{infinite:e.appendCommentList},scopedSlots:e._u([{key:"spinner",fn:a(function(){return[t("figure",{staticClass:"text-center"},[t("LoadingIndicator",{attrs:{center:""}})],1)]},"fn"),proxy:!0}])}),e.proUserInfo?t("SoomgoLifeRequestModalWrapper",{attrs:{"pro-user-info":e.proUserInfo}}):e._e(),t("CommunityPhoneAuthModal",{on:{"complete-authentication":e.onCompleteAuthentication,"hide-modal":e.onHidePhoneAuthModal}})],1)],1)},"render"),ln=[],mn=m(rt,un,ln,!1,null,"081f0e91");const pn=mn.exports;var dn=Object.defineProperty,hn=Object.getOwnPropertyDescriptor,Sr=a((n,e,t,r)=>{for(var o=r>1?void 0:r?hn(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&dn(e,t,o),o},"__decorateClass$f");const fn=300;var ne;let ot=(ne=class extends p{constructor(){super(...arguments),this.fromQuery=Qr,this.ctaButtonName=Ot,this.viewAllServicesHref="/categories?from=커뮤ëí°_others"}trackCtaClick(e){return P.click_community_content_cta_button({button_name:e,content_id:this.postId})}async onClickViewAllServices(){await Promise.race([this.trackCtaClick(this.ctaButtonName.ViewAllServices),Vr(fn)]),window.location.href=this.viewAllServicesHref}get isMobile(){return this.$ua.isMobile}get serviceList(){return ze.serviceList}get recommendService(){return this.serviceList.map(({name:e,slug:t})=>({title:e,slug:t}))}pathToRecommendRequest(e){return{name:"send-request",params:{serviceSlug:e},query:{from:this.fromQuery.CommunityBody}}}beforeMount(){ze.fetchServiceList(!1)}},a(ne,"RecommendRequest"),ne);Sr([c({type:String,required:!0})],ot.prototype,"postId",2);ot=Sr([l],ot);var vn=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("section",{staticClass:"recommend-request"},[t("div",{staticClass:"recommend-request-heading"},[t("Typography",{staticClass:"recommend-request-title",attrs:{as:"h2",variant:"headline16"}},[e._v(" 커뮤ëí° ì¸ê¸° ìë¹ì¤ TOP "+e._s(e.recommendService.length)),t("br"),e._v("ë°ë¡ 견ì ì ìì²í´ë³´ì¸ì! ")]),t("a",{attrs:{href:e.viewAllServicesHref},on:{click:a(function(r){return r.preventDefault(),e.onClickViewAllServices.apply(null,arguments)},"click")}},[t("Typography",{staticClass:"recommend-request-view-total",attrs:{variant:"body14:regular",color:"tertiary"}},[e._v(" ì 체보기 ")])],1)],1),t("div",{staticClass:"recommend-request-popular-service"},[t("ul",{staticClass:"recommend-request-list"},e._l(e.recommendService,function(r,o){return t("li",{key:o,staticClass:"recommend-request-item"},[t("router-link",{attrs:{to:e.pathToRecommendRequest(r.slug)},nativeOn:{click:a(function(s){return e.trackCtaClick(e.ctaButtonName.PopularService)},"click")}},[t("span",{staticClass:"recommend-request-chip-item gray-900"},[e._v(e._s(r.title))])])],1)}),0)])])},"render"),_n=[],gn=m(ot,vn,_n,!1,null,"b09367d8");const Cn=gn.exports;var yn=Object.defineProperty,Pn=Object.getOwnPropertyDescriptor,kt=a((n,e,t,r)=>{for(var o=r>1?void 0:r?Pn(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&yn(e,t,o),o},"__decorateClass$e"),ae;let Le=(ae=class extends p{getPreviewText(e){return vo(e)}replacePostSlug(e,t){return R.replaceSlug(e,t)}curationRouter(e,t){return{name:"post-detail",params:{postSlug:this.replacePostSlug(e,t),location:this.location}}}getThumbnail(e){return Dt.getThumbnail({url:e,width:128,height:128})}},a(ae,"CurationList"),ae);kt([c({type:Array,required:!0})],Le.prototype,"curationList",2);kt([c({type:String,default:null})],Le.prototype,"location",2);Le=kt([l],Le);var bn=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("ul",{staticClass:"curation-list",attrs:{"data-testid":"curation-list"}},[t("li",{staticClass:"curation-list-item",attrs:{"data-testid":"curation-item"}},e._l(e.curationList,function(r){return t("router-link",{key:r.id,staticClass:"curation-list-wrapper",attrs:{to:e.curationRouter(r.
5id,r.title)},nativeOn:{click:a(function(o){return e.$emit("click-item",r)},"click")}},[t("div",{staticClass:"curation-contents",class:{"has-thumbnail":r.coverImage}},[t("p",{staticClass:"topic-name"},[e._v(e._s(r.topic.name))]),t("p",{staticClass:"curation-title"},[e._v(e._s(r.title))]),t("p",{staticClass:"curation-content"},[e._v(e._s(e.getPreviewText(r.previewText)))]),t("div",{staticClass:"curation-reactions"},[t("span",{staticClass:"view-count"},[e._v(e._s(e._f("numberFormat")(r.viewCount)))]),r.commentCount>0?t("span",{staticClass:"comment-count"},[e._v(" "+e._s(e._f("lessThanHundred")(r.commentCount))+" ")]):e._e()])]),r.coverImage?t("div",{staticClass:"curation-topic-image"},[t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.getThumbnail(r.coverImage.url),expression:"getThumbnail(curation.coverImage.url)"}],staticClass:"topic-thumbnail-image",attrs:{alt:r.coverImage.alt}})]):e._e()])}),1)])},"render"),$n=[],wn=m(Le,bn,$n,!1,null,"8ae8fa14");const In=wn.exports;var Sn=Object.defineProperty,Rn=Object.getOwnPropertyDescriptor,Rr=a((n,e,t,r)=>{for(var o=r>1?void 0:r?Rn(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&Sn(e,t,o),o},"__decorateClass$d"),ce;let st=(ce=class extends p{trackCtaClick(){P.click_community_content_cta_button({button_name:Ot.CommunityPost,content_id:this.postId})}get curationList(){return ze.curationList.filter(e=>e.topic.id!==y.Notice).slice(0,3)}get isShowContents(){return!!this.curationList.length}get location(){return M.SoomgoLifePostDetail}beforeMount(){this.isShowContents||ze.fetchCurationList()}},a(ce,"PopularPost"),ce);Rr([c({type:String,required:!0})],st.prototype,"postId",2);st=Rr([l({components:{CurationList:In,LoadingIndicator:Ft,LineClamp:_o}})],st);var Bn=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("section",{staticClass:"popular-post"},[t("div",{staticClass:"popular-post-heading"},[t("Typography",{staticClass:"popular-post-title",attrs:{as:"h2",variant:"headline16"}},[e._v(" ì§ê¸ ê°ì¥ ë¨ê±°ì´ ð¥ 커뮤ëí° ê²ìê¸ ")])],1),e.isShowContents?t("div",{staticClass:"popular-post-list-container"},[t("CurationList",{attrs:{"curation-list":e.curationList,location:e.location},on:{"click-item":e.trackCtaClick}})],1):t("LoadingIndicator",{attrs:{center:!0}})],1)},"render"),xn=[],An=m(st,Bn,xn,!1,null,"1ace8ddd");const Tn=An.exports;var Dn=Object.defineProperty,On=Object.getOwnPropertyDescriptor,Br=a((n,e,t,r)=>{for(var o=r>1?void 0:r?On(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&Dn(e,t,o),o},"__decorateClass$c"),ue;let it=(ue=class extends p{get address(){var e;return(e=this.provider.address)==null?void 0:e.split(" ").slice(0,2).join(" ")}get career(){return`ê²½ë ¥ ${this.provider.career}ë
`}get reviewRate(){return this.provider.score.review_rate}get reviewComment(){var e;return(e=this.provider.recentReview)==null?void 0:e.contents}get profileRoute(){return{name:"profile",params:{userId:this.provider.user.id},query:{from:dt.CommunityBodyAd}}}get iconColor(){return Jr}},a(ue,"PopularProviderCard"),ue);Br([c({type:Object,required:!0})],it.prototype,"provider",2);it=Br([l({components:{SvgIcon:w,UserProfilePicture:cr}})],it);var Mn=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("section",{staticClass:"popular-provider-card"},[t("router-link",{attrs:{to:e.profileRoute}},[t("div",{staticClass:"profile-container"},[t("UserProfilePicture",{staticClass:"profile-image",attrs:{url:e.$getStaticUrl(e.provider.user.profileImage)}}),t("div",{staticClass:"profile-info"},[t("h3",{staticClass:"profile-title"},[e._v(e._s(e.provider.user.name))]),t("div",{staticClass:"profile-subtitle"},[t("span",[e._v(e._s(e.address))]),e._v(" · "),t("span",[e._v(e._s(e.career))])])])],1),t("div",{staticClass:"review-container"},[t("div",{staticClass:"pro-rate"},[t("SvgIcon",{attrs:{width:14,height:14,prisma:"",icon:"icons/actions/star_filled.svg",color:e.iconColor,fill:""}}),e._v(" "+e._s(e.reviewRate)+" ")],1),t("p",{staticClass:"review-comment"},[e._v("â"+e._s(e.reviewComment)+"â")])])])],1)},"render"),En=[],Ln=m(it,Mn,En,!1,null,"2ed05839");const Fn=Ln.exports;var Nn=Object.defineProperty,qn=Object.getOwnPropertyDescriptor,xr=a((n,e,t,r)=>{for(var o=r>1?void 0:r?qn(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&Nn(e,t,o),o},"__decorateClass$b"),le;let nt=(le=class extends p{constructor(){super(...arguments),this.slickKey=Date.now(),this.slickOptions={infinite:!1,slidesToShow:2,slidesToScroll:1,swipe:!0,autoplay:!1,arrows:!0},this.proList=[]}get title(){return this.service.service.name}get searchProRoute(){return{name:"search-pro-service-category-sort",params:{queryRouteService:this.service.service.slug,queryRouteCategory:`${this.service.category1.slug}--${this.service.category2.slug}`,queryRouteSort:Zr},query:{from:Xr.CommunityBodyAd}}}async beforeMount(){const{response:e}=await eo.getSearchProList({limit:"20",sort:to.ReviewRate,service_slug:this.service.service.slug});this.proList=e.results.filter(({score:t,recentReview:r})=>(t==null?void 0:t.review_rate)>=4&&r).slice(0,8)}},a(le,"PopularProvider"),le);xr([c({type:Object,required:!0})],nt.prototype,"service",2);nt=xr([l({components:{Slick:go,PopularProviderCard:Fn}})],nt);var Un=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,e.proList.length?t("section",{staticClass:"popular-provider"},[t("div",{staticClass:"popular-provider-heading"},[t("div",[t("Typography",{staticClass:"service-name",attrs:{component:"h2",variant:"headline16"}},[e._v("â"+e._s(e.title)+"â")]),t("Typography",{attrs:{as:"h2",variant:"headline16"}},[e._v("ì¸ê¸° ê³ ì ì¶ì²")])],1),t("router-link",{attrs:{to:e.searchProRoute}},[e._v("ì 체보기")])],1),t("Slick",{key:e.slickKey,staticClass:"d-none d-md-block",attrs:{options:e.slickOptions}},e._l(e.proList,function(r){return t("PopularProviderCard",{key:r.id,attrs:{provider:r}})}),1),t("div",{staticClass:"provider-list d-md-none"},e._l(e.proList,function(r){return t("PopularProviderCard",{key:r.id,attrs:{provider:r}})}
5),1)],1):e._e()},"render"),kn=[],jn=m(nt,Un,kn,!1,null,"5e6873f7");const zn=jn.exports;var Gn=Object.defineProperty,Wn=Object.getOwnPropertyDescriptor,Ar=a((n,e,t,r)=>{for(var o=r>1?void 0:r?Wn(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&Gn(e,t,o),o},"__decorateClass$a"),me;let at=(me=class extends p{trackCtaClick(){P.click_community_content_cta_button({button_name:Ot.AiRecommendedPost,content_id:this.targetPostId})}get realtedPosts(){return u.relatedPosts}get iconColor(){return ro}postDetailRoute(e,t){return{name:"post-detail",params:{postSlug:this.replacePostSlug(e,t)}}}replacePostSlug(e,t){return R.replaceSlug(e,t)}serverPrefetch(){return u.fetchRelatedPosts({postId:this.targetPostId})}mounted(){u.fetchRelatedPosts({postId:this.targetPostId})}},a(me,"RelatedPosts"),me);Ar([c({type:String,required:!0})],at.prototype,"targetPostId",2);at=Ar([l({components:{SvgIcon:w}})],at);var Hn=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("section",{directives:[{name:"show",rawName:"v-show",value:e.realtedPosts.length>2,expression:"realtedPosts.length > 2"}],staticClass:"related-posts"},[t("Typography",{attrs:{as:"h2",variant:"headline16"}},[t("span",{staticClass:"title-badge"},[e._v("Ai ì¶ì²")]),e._v("ì´ë° ê¸ë íì¸í´ ë³´ì¸ì! ")]),t("ul",e._l(e.realtedPosts,function({id:r,title:o}){return t("li",{key:r},[t("router-link",{staticClass:"post-link",attrs:{to:e.postDetailRoute(r,o)},nativeOn:{click:a(function(s){return e.trackCtaClick.apply(null,arguments)},"click")}},[t("span",{staticClass:"post-title"},[e._v(e._s(o))]),t("SvgIcon",{attrs:{width:16,height:16,fill:"",color:e.iconColor,prisma:"",icon:"icons/navigation/chevron_right_outlined.svg"}})],1)],1)}),0)],1)},"render"),Kn=[],Yn=m(at,Hn,Kn,!1,null,"fb0fb5a3");const Qn=Yn.exports;var Vn=Object.defineProperty,Jn=Object.getOwnPropertyDescriptor,Zn=a((n,e,t,r)=>{for(var o=r>1?void 0:r?Jn(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&Vn(e,t,o),o},"__decorateClass$9"),pe;let It=(pe=class extends p{get communityPost(){var e;return(e=u)==null?void 0:e.communityPost}get firstService(){return this.writer.providerInfo.services[0]}get mainService(){return this.writer.providerInfo.mainService}get service(){return this.mainService??this.firstService}get serviceName(){return this.service.name??""}get profileImg(){var e;return(e=this.writer)==null?void 0:e.profileImageUrl}get name(){var e;return((e=this.writer)==null?void 0:e.name)||"ìµëª
ì ê³ ì"}get writer(){return this.communityPost.user}get isWriter(){var e;return h.me.id===((e=this.writer)==null?void 0:e.id)}get modalStates(){return Re.modal}get requestFormModalLocation(){return ht.ProKnowhow}get profileRoute(){return{name:"profile",params:{userId:this.writer.id},query:{from:dt.Knowhow}}}get isAmbassador(){var e,t;return(t=(e=this.writer)==null?void 0:e.providerInfo)==null?void 0:t.isAmbassador}get iconColor(){return Tt}requestQuote(e){if(e.preventDefault(),this.isWriter){this.$prismaToast.pop({type:"message",text:"ëìê²ë 견ì ì ìì²í ì ììµëë¤.",state:"default"});return}this.$showModal({name:"requestForm",params:{providerName:this.writer.name}})}onClickWriterProfile(){P.user_knowhow_pro_name_click({from:"bottom"})}},a(pe,"WriterProfile"),pe);It=Zn([l({components:{SvgIcon:w,UserProfilePicture:cr,RequestFormModal:Lt}})],It);var Xn=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("section",[t("router-link",{staticClass:"profile-container",attrs:{"data-testid":"pro-knowhow-profile-section",to:e.profileRoute},nativeOn:{click:a(function(r){return e.onClickWriterProfile.apply(null,arguments)},"click")}},[e.isAmbassador?t("div",{staticClass:"ambassador-badge"},[t("SvgIcon",{attrs:{width:14,height:14,icon:"icons/contents/ambassador_filled.svg",prisma:"",color:e.iconColor,fill:""}}),e._v(" ëª
ìê³ ì ")],1):e._e(),t("div",{staticClass:"profile-info"},[t("UserProfilePicture",{staticClass:"profile-picture",attrs:{url:e.$getStaticUrl(e.profileImg),"is-square":""}}),t("section",{staticClass:"writer-info"},[t("p",{staticClass:"writer-name"},[e._v(e._s(e.name))]),t("span",{staticClass:"writer-service"},[e._v(e._s(e.serviceName))])]),t("b-button",{staticClass:"request-btn",attrs:{variant:"primary"},on:{click:a(function(r){return r.preventDefault(),e.requestQuote.apply(null,arguments)},"click")}},[e._v("견ì ìì²")])],1),t("p",{staticClass:"profile-desc"},[e._v(e._s(e.writer.providerInfo.intro))])]),e.writer&&e.modalStates.requestForm?t("RequestFormModal",{attrs:{"service-slug":e.service.slug,"target-prov
5ider-id":e.writer.providerInfo.id,"is-redirect":!1,from:e.requestFormModalLocation},on:{close:a(function(r){return e.$hideModal("requestForm")},"close")}}):e._e()],1)},"render"),ea=[],ta=m(It,Xn,ea,!1,null,"4c7a4fdc");const ra=ta.exports;var oa=Object.defineProperty,sa=Object.getOwnPropertyDescriptor,ia=a((n,e,t,r)=>{for(var o=r>1?void 0:r?sa(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&oa(e,t,o),o},"__decorateClass$8"),de;let St=(de=class extends p{get checkList(){return oo}},a(de,"BestCommentsNudgeModal"),de);St=ia([l({components:{SvgIcon:w,Portal:Mt,PortalTarget:lo,DraggableBottomSheet:Co}})],St);var na=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t("Portal",{attrs:{to:"best-comments-nudge"}},[t("div",{staticClass:"contents-container"},[t("div",{staticClass:"best-comments-nudge"},[t("h5",[e._v(" ë² ì¤í¸ ëê¸ë¡ ì ì ëë©´"),t("br"),e._v(" 1000ìºì를 ëë ¤ì ")]),t("SvgIcon",{attrs:{width:150,height:150,icon:"images/community/income.svg"}})],1),t("ul",{staticClass:"guide-check-list"},e._l(e.checkList,function(r){return t("li",{key:r},[t("SvgIcon",{attrs:{width:22,height:22,icon:"icons/toggle/check_outlined.svg",prisma:""}}),t("span",[e._v(e._s(r))])],1)}),0)]),t("div",{staticClass:"contents-footer"},[t("b-button",{staticClass:"btn-confirm",attrs:{variant:"outline-secondary"},on:{click:a(function(r){return e.$emit("close")},"click")}},[e._v("íì¸")])],1)]),e.$ua.isMobile?t("DraggableBottomSheet",{staticClass:"best-comments-nudge-modal",attrs:{"no-close-on-backdrop":""},on:{close:a(function(r){return e.$emit("close")},"close")}},[t("PortalTarget",{attrs:{name:"best-comments-nudge"}})],1):t("b-modal",{attrs:{"modal-class":"best-comments-nudge-modal",centered:"",visible:"","hide-header":"","hide-footer":"","no-close-on-backdrop":"","no-close-on-esc":""},on:{hide:a(function(r){return e.$emit("close")},"hide")}},[t("PortalTarget",{attrs:{name:"best-comments-nudge"}})],1)],1)},"render"),aa=[],ca=m(St,na,aa,!1,null,"88b148d8");const ua=ca.exports;var la=Object.defineProperty,ma=Object.getOwnPropertyDescriptor,pa=a((n,e,t,r)=>{for(var o=r>1?void 0:r?ma(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&la(e,t,o),o},"__decorateClass$7"),he;let Rt=(he=class extends p{onClickMoveProSignup(){this.$emit("click-move-pro-signup")}},a(he,"ProSignupNudgeModal"),he);Rt=pa([l({components:{SvgIcon:w,BottomSheet:yo}})],Rt);var da=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[e.$ua.isMobile?[t("BottomSheet",{on:{close:a(function(r){return e.$emit("close")},"close")}},[t("section",{staticClass:"pro-signup-nudge-container"},[t("SvgIcon",{staticClass:"nudge-image",attrs:{width:150,height:150,icon:"images/community/income.svg"}}),t("p",{staticClass:"nudge-text"},[e._v("ìì¦ ë¨ë ëë²ë ê¿íì´"),t("br"),e._v("ìê³ ì¶ë¤ë©´")]),t("b-button",{attrs:{variant:"primary"},on:{click:e.onClickMoveProSignup}},[e._v("ê°ì
íê³ ì´ì´ì 보기")]),t("b-button",{attrs:{variant:"none"},on:{click:a(function(r){return e.$emit("close")},"click")}},[e._v("ëì¤ìì")])],1)])]:[t("b-modal",{attrs:{"dialog-class":"pro-signup-nudge-modal",centered:"",visible:"","hide-header":"","hide-footer":""},on:{hide:a(function(r){return r.preventDefault(),e.$emit("close")},"hide")}},[t("section",{staticClass:"pro-signup-nudge-container"},[t("SvgIcon",{staticClass:"nudge-image",attrs:{width:150,height:150,icon:"images/community/income.svg"}}),t("p",{staticClass:"nudge-text"},[e._v("ìì¦ ë¨ë ëë²ë ê¿íì´"),t("br"),e._v("ìê³ ì¶ë¤ë©´")]),t("b-button",{attrs:{variant:"primary"},on:{click:e.onClickMoveProSignup}},[e._v("ê°ì
íê³ ì´ì´ì 보기")]),t("b-button",{attrs:{variant:"none"},on:{click:a(function(r){return e.$emit("close")},"click")}},[e._v("ëì¤ìì")])],1)])]],2)},"render"),ha=[],fa=m(Rt,da,ha,!1,null,"fbeb3dca");const va=fa.exports;var _a=Object.defineProperty,ga=Object.getOwnPropertyDescriptor,Tr=a((n,e,t,r)=>{for(var o=r>1?void 0:r?ga(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&_a(e,t,o),o},"__decorateClass$6"),fe;let ct=(fe=class extends p{constructor(){super(...arguments),this.isProSignupNudgeModalShown=!1}get iconSize(){return this.$ua.isMobile?150:100}onClickMoveProSignup(){P.click_join_as_a_pro({location:"pro-center-post"}),this.$router.push({name:"pro",query:{entry_point:"signup_cta"}})}beforeMount(){const e="displayed_pro_center_post_ids",t=I.get(e)??[];t.includes(this.postId)||t.length>=3||(t.length+1>=3&&(this.isProSignupNudgeModalShown=!0),I.set(e,[...t,this.postId])
5)}},a(fe,"ProSignupNudgeSection"),fe);Tr([c({type:String,required:!0})],ct.prototype,"postId",2);ct=Tr([l({components:{SvgIcon:w,ProSignupNudgeModal:va}})],ct);var Ca=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("section",{staticClass:"pro-center-nudge-section"},[t("SvgIcon",{attrs:{width:e.iconSize,height:e.iconSize,icon:"images/community/income.svg"}}),e._m(0),t("b-button",{attrs:{variant:"primary"},on:{click:e.onClickMoveProSignup}},[e._v("ì§ê¸ ê³ ìë¡ ê°ì
í기")]),t("no-ssr",[e.isProSignupNudgeModalShown?t("ProSignupNudgeModal",{on:{close:a(function(r){e.isProSignupNudgeModalShown=!1},"close"),"click-move-pro-signup":e.onClickMoveProSignup}}):e._e()],1)],1)},"render"),ya=[function(){var n=this,e=n._self._c;return n._self._setupProxy,e("span",{staticClass:"nudge-text"},[n._v(" ìì¦ ë¨ë ëë²ë ê¿íì´"),e("br"),n._v("ìê³ ì¶ë¤ë©´ ")])}],Pa=m(ct,Ca,ya,!1,null,"017148ac");const ba=Pa.exports;var $a=Object.defineProperty,wa=Object.getOwnPropertyDescriptor,Dr=a((n,e,t,r)=>{for(var o=r>1?void 0:r?wa(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&$a(e,t,o),o},"__decorateClass$5"),ve;let ut=(ve=class extends p{get coverImageUrl(){var e;return(e=this.post.coverImage)==null?void 0:e.url}get coverImageAlt(){var e;return(e=this.post.coverImage)==null?void 0:e.alt}getRoute(){return{name:"pro-center-detail",params:{postSlug:R.replaceSlug(this.post.id,this.post.title),location:M.ProCenterPostDetail}}}},a(ve,"ProCenterRecommendPostListItem"),ve);Dr([c({type:Object,required:!0})],ut.prototype,"post",2);ut=Dr([l],ut);var Ia=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("li",{staticClass:"pro-center-post"},[t("router-link",{attrs:{to:e.getRoute()}},[t("figure",[t("img",{attrs:{src:e.coverImageUrl,alt:e.coverImageAlt}}),t("figcaption",[e._v(e._s(e.post.title))])])])],1)},"render"),Sa=[],Ra=m(ut,Ia,Sa,!1,null,"795b4182");const Ba=Ra.exports;var xa=Object.defineProperty,Aa=Object.getOwnPropertyDescriptor,Or=a((n,e,t,r)=>{for(var o=r>1?void 0:r?Aa(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&xa(e,t,o),o},"__decorateClass$4"),_e;let lt=(_e=class extends p{get realtedPosts(){return u.relatedPosts}serverPrefetch(){return u.fetchRelatedPosts({postId:this.targetPostId,category:Oe.ProCenter})}async mounted(){await u.fetchRelatedPosts({postId:this.targetPostId,category:Oe.ProCenter})}},a(_e,"ProCenterRecommendPostList"),_e);Or([c({type:String,required:!0})],lt.prototype,"targetPostId",2);lt=Or([l({components:{ProCenterRecommendPostListItem:Ba}})],lt);var Ta=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"pro-center-recommend-post-list-container"},[t("section",{staticClass:"pro-center-recommend-post-list-section"},[t("h2",[e._v("ë¤ë¥¸ ì½í
ì¸ ë ì½ì´ë³´ì¸ì")]),t("ul",{staticClass:"pro-center-recommend-post-list"},e._l(e.realtedPosts,function(r){return t("ProCenterRecommendPostListItem",{key:r.id,attrs:{post:r}})}),1)])])},"render"),Da=[],Oa=m(lt,Ta,Da,!1,null,"38e74685");const Ma=Oa.exports;var Ea=Object.defineProperty,La=Object.getOwnPropertyDescriptor,Mr=a((n,e,t,r)=>{for(var o=r>1?void 0:r?La(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&Ea(e,t,o),o},"__decorateClass$3"),ge;let mt=(ge=class extends p{get proKnowhowPopularList(){return je.proKnowhowPopularList.filter(({id:t})=>t!==this.postId).slice(0,6)}get location(){return M.ProKnowhowPostDetail}getCoverImageUrl(e){var t;return(t=e.coverImage)==null?void 0:t.url}getUsername(e){var t;return((t=e.user)==null?void 0:t.name)||"ìµëª
ì ê³ ì"}replacePostSlug(e,t){return R.replaceSlug(e,t)}sendTracker(){Be.user_knowhow_recommended_content_click()}beforeMount(){je.proKnowhowPopularList.length||je.fetchProKnowhowPopularList()}},a(ge,"PopularList"),ge);Mr([c({type:String,required:!0})],mt.prototype,"postId",2);mt=Mr([l({components:{LoadingIndicator:Ft}})],mt);var Fa=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("section",{staticClass:"pro-knowhow-popular-background"},[t("section",{staticClass:"pro-knowhow-popular"},[t("h2",{staticClass:"title"},[e._v("ë§ì´ ë³´ë ë
¸íì°")]),t("ul",{staticClass:"pro-knowhow-popular-list"},e._l(e.proKnowhowPopularList,function(r,o){return t("li",{key:o,staticClass:"pro-knowhow-popular-list-item"},[t("section",{staticClass:"item-wrapper"},[t("router-link",{attrs:{to:{name:"pro-knowhow-detail",params:{postSlug:e.replacePostSlug(String(r.id),r.title),location:e.location}}},nativeOn:{click:a(function(s){return e.sendTracker.apply(null,arguments)},"click")}},[t("figure",{staticClass:"image-wrapper"},[t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.$addWebpQuery(e.getCoverImageUrl(r)),expression:"$addWebpQuery(getCoverImageUrl(post))"}],staticClass:"content-image"})]),t("h3",{staticClass:"content-title"},[e._v(e._s(r.title))]),t("p",{staticClass:"content-writer"}
5,[e._v(e._s(e.getUsername(r)))])])],1)])}),0)])])},"render"),Na=[],qa=m(mt,Fa,Na,!1,null,"fd5d2f1f");const Ua=qa.exports;var ka=Object.defineProperty,ja=Object.getOwnPropertyDescriptor,Er=a((n,e,t,r)=>{for(var o=r>1?void 0:r?ja(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&ka(e,t,o),o},"__decorateClass$2"),Ce;let pt=(Ce=class extends p{constructor(){super(...arguments),this.isBestCommentsNudgeModalShown=!1}get currentUserRole(){return h.currentUserRole}get communityCategory(){return xt(this.$route)}get isProCenterCategory(){return this.communityCategory===Oe.ProCenter}get isCurrentGuest(){return h.isGuest}get communityPost(){var e;return(e=u)==null?void 0:e.communityPost}get likeCount(){return this.communityPost.likeCount||0}get commentCount(){return this.communityPost.commentCount||0}get isLiked(){return this.communityPost.isLiked}get isLikeDebouncer(){return ar(this.changeLikeState,300)}get isUserPenalty(){return u.isBanUser}get isCommentsAllowed(){return this.communityPost.isCommentsAllowed}get isAdminPost(){return so.includes(this.communityPost.topic.id)}get isProKnowhow(){return this.communityPost.topic.id===y.ProKnowhow}get isProvider(){return h.isProviderMode}get isGuest(){return h.isGuest}get isShowPopularProvider(){return this.communityPost.topic.id===y.AskProvider&&!!this.communityPost.serviceInfo}get isShowRelatedPosts(){return u.isContainRelatedPosts}get isBestCommentsNudgeBannerShown(){return h.isProviderMode}get isProCenterNoNudge(){return this.isProCenterCategory&&this.isProvider&&!this.isCommentsAllowed}async openConfirmForProKnowhow(){return this.isProvider?this.$swal.fire({title:"ê²ìê¸ ìì ",html:"ìì ë ë´ì©ì 복구 í ì ììµëë¤.<br/>ì ë§ ìì íìê² ìµëê¹?",confirmButtonText:"ìì í기",cancelButtonText:"ì·¨ì"}):((await this.$swal.fire({title:"ê³ì ì í íì",html:"ê²ìê¸ ìì ë ê³ ìê³ì ìì í ì ìì´ì.<br/>ê³ ìë¡ ì ííìê² ìµëê¹?",confirmButtonText:"ê³ ìë¡ ì íí기",cancelButtonText:"ì·¨ì"})).value&&await this.$router.push({name:"mypage"}),{value:!1})}openConfirm(){return this.isProKnowhow?this.openConfirmForProKnowhow():this.$swal.fire({title:"ê²ìê¸ ìì ",text:"ê²ìê¸ì ì ë§ ìì íìê² ìµëê¹?",showCancelButton:!0})}resetList(){this.isProKnowhow?je.resetProKnowhow():u.resetCommunityList()}moveListPage(){this.$route.query.from==="community-user-activities"?location.replace(`/mypage/community/activities/${this.$route.query.tabName}`):this.isProKnowhow?this.$router.replace({name:"pro-knowhow"}):this.$router.replace({name:"soomgo-life-home"})}onChangeIsLiked(e){P.click_content_like_button({member_type:this.currentUserRole,title:this.communityPost.title}),this.isLikeDebouncer(e)}async changeLikeState(e){if(this.isCurrentGuest){const{value:t}=await this.$swal.fire({title:"ë¡ê·¸ì¸ íì",text:"ë¡ê·¸ì¸ í ìë¹ì¤ë¥¼ ì´ì©í ì ììµëë¤.",confirmButtonText:"ë¡ê·¸ì¸/íìê°ì
",cancelButtonText:"ì·¨ì"});t&&this.$router.push({name:"login",query:{redirect:this.$route.path}});return}u.changePostReaction({postId:this.communityPost.id,isLiked:e})}async openReportModal(e){if(this.isUserPenalty)return this.$showModal({name:"showUserBanModal"});if(Be.user_report_click(this.currentUserRole,"body"),this.isCurrentGuest){const{value:t}=await this.$swal.fire({title:"ë¡ê·¸ì¸ íì",text:"ë¡ê·¸ì¸ í ìë¹ì¤ë¥¼ ì´ì©í ì ììµëë¤.",confirmButtonText:"ë¡ê·¸ì¸/íìê°ì
",cancelButtonText:"ì·¨ì"});t&&this.$router.push({name:"login",query:{redirect:this.$route.path}});return}this.$emit("set-report-body",e),this.$showModal({name:"communityReportModal"})}saveDeletionInfoToSession(){sessionStorage.setItem("community_post_delete_to_mypage","true")}async onDeletePost(){var t,r;if((await this.openConfirm()).value)try{await u.removePost(this.communityPost.id);const o=this.$route.query.from==="community-user-activities";if(this.resetList(),o&&this.saveDeletionInfoToSession(),this.moveListPage(),o)return;this.$prismaToast.pop({type:"message",text:"ê²ìê¸ì´ ìì ëììµëë¤.",state:"default"})}catch(o){const s=De.isAxiosError(o)&&((r=(t=o.response)==null?void 0:t.data)==null?void 0:r.reason);this.$prismaToast.pop({type:"message",text:s||"ì¤ë¥ê° ë°ìíìµëë¤. ì ì í ë¤ì ìëí´ì£¼ì¸ì.",state:"default"})}}onClickBestCommentsNudgeBanner(){this.isBestCommentsNudgeModalShown=!0}onOpenBestCommentsNudgeModal(){this.isBestCommentsNudgeModalShown=!0,I.set(or,!0)}},a(Ce,"SoomgoLifePostBody"),Ce);Er([c({type:Boolean,default:!1})],pt.prototype,"isLoading",2);pt=Er([l({components:{SvgIcon:w,PostHeader:Zo,AdminPostContents:li,UserPostContents:v
5i,PostReactionState:Nt,PostCommentsContainer:pn,RecommendRequest:Cn,PopularPost:Tn,WriterProfile:ra,PopularList:Ua,PopularProvider:zn,RelatedPosts:Qn,BestCommentsNudgeModal:ua,ProSignupNudgeSection:ba,ProCenterRecommendPostList:Ma}})],pt);var za=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"soomgo-life-post-detail"},[t("PostHeader",{attrs:{"community-post":e.communityPost,"is-admin-post":e.isAdminPost,"is-loading":e.isLoading},on:{"open-report-modal":e.openReportModal,"delete-post":e.onDeletePost}}),t("hr",{staticClass:"hr-divider"}),e.isAdminPost||e.isProKnowhow?t("AdminPostContents",{attrs:{"community-post":e.communityPost}}):t("UserPostContents",{attrs:{"community-post":e.communityPost}}),t("PostReactionState",{attrs:{"like-count":e.likeCount,"comment-count":e.commentCount,"is-liked":e.isLiked,"is-comments-allowed":e.isCommentsAllowed},on:{"on-change-is-liked":e.onChangeIsLiked}}),t("hr",{staticClass:"hr-divider wide-divider",class:{"is-pro-center-no-nudge":e.isProCenterNoNudge}}),t("no-ssr",[e.isBestCommentsNudgeBannerShown&&e.isCommentsAllowed?t("b-button",{staticClass:"best-comment-nudge-banner",attrs:{variant:"none"},on:{click:e.onClickBestCommentsNudgeBanner}},[t("SvgIcon",{attrs:{icon:"icons/icon-navi-store.svg",width:20,height:20}}),t("span",{staticClass:"btn-text"},[e._v("ë² ì¤í¸ ëê¸ ì ì ì 1000ìºì ì 립")]),t("PrismaIcon",{attrs:{category:"alert",name:"information_circle_outlined",size:20,color:"secondary"}})],1):e._e()],1),e.isCommentsAllowed?t("PostCommentsContainer",{attrs:{"community-post":e.communityPost},on:{"open-report-modal":e.openReportModal,"open-best-comments-nudge-modal":e.onOpenBestCommentsNudgeModal}}):e._e(),e.isProCenterCategory?[t("no-ssr",[e.isGuest?t("div",[t("ProSignupNudgeSection",{attrs:{"post-id":e.communityPost.id}}),t("hr",{staticClass:"d-md-none hr-divider wide-divider tick-divider"})],1):e._e()]),t("ProCenterRecommendPostList",{attrs:{"target-post-id":e.communityPost.id}})]:e.isProKnowhow?[t("WriterProfile"),t("PopularList",{attrs:{"post-id":e.communityPost.id}})]:[e.isShowRelatedPosts?t("RelatedPosts",{attrs:{"target-post-id":e.communityPost.id}}):e._e(),e.isShowPopularProvider?t("PopularProvider",{attrs:{service:e.communityPost.serviceInfo}}):e._e(),t("RecommendRequest",{attrs:{"post-id":e.communityPost.id}}),t("PopularPost",{attrs:{"post-id":e.communityPost.id}})],t("no-ssr",[e.isBestCommentsNudgeModalShown?t("BestCommentsNudgeModal",{on:{close:a(function(r){e.isBestCommentsNudgeModalShown=!1},"close")}}):e._e()],1)],2)},"render"),Ga=[],Wa=m(pt,za,Ga,!1,null,"38fbfae8");const Ha=Wa.exports;var Ka=Object.defineProperty,Ya=Object.getOwnPropertyDescriptor,Qa=a((n,e,t,r)=>{for(var o=r>1?void 0:r?Ya(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&Ka(e,t,o),o},"__decorateClass$1"),ye;let Bt=(ye=class extends p{constructor(){super(...arguments),this.selectedReasonId=null}get communityReportReasonList(){return u.communityReportReasonList}get okDisabled(){return!this.selectedReasonId}onClose(){this.$hideModal("communityReportModal")}reporting(){var e;this.$emit("reporting",{reasonId:this.selectedReasonId,reason:(e=this.communityReportReasonList.find(t=>t.id===this.selectedReasonId))==null?void 0:e.text})}mounted(){u.fetchCommunityReportReasonList()}},a(ye,"CommunityReportModal"),ye);Bt=Qa([l({name:"CommunityReportModal"})],Bt);var Va=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("b-modal",{attrs:{"modal-class":"community-report-modal","dialog-class":"mobile-full-modal",scrollable:"",centered:"",visible:"","ok-only":"","no-fade":"","ok-disabled":e.okDisabled},on:{hide:e.onClose,cancel:e.onClose,ok:a(function(r){return r.preventDefault(),e.reporting.apply(null,arguments)},"ok")},scopedSlots:e._u([{key:"modal-title",fn:a(function(){return[e._v("ì ê³ í기")]},"fn"),proxy:!0},{key:"modal-ok",fn:a(function(){return[e._v("ì ê³ í기")]},"fn"),proxy:!0}])},[t("div",{staticClass:"community-report-modal-body"},[t("div",{staticClass:"information-box"},[t("Typography",{attrs:{as:"p",variant:"body14:regular"}},[e._v(" ì¤ë¨ ê²í í ê²ì¬ê° ì¤ë¨ë©ëë¤."),t("br"),e._v("ì ê³ ì ì±
ì ë¶í©ëì§ ìì ê²½ì° ë¤ì ê²ì¬ë ì ììµëë¤. ")])],1),t("div",{staticClass:"community-report-reason-contents"}
5,[t("b-form-group",{staticClass:"community-report-reason-radio-group"},e._l(e.communityReportReasonList,function(r){return t("b-form-radio",{key:r.id,staticClass:"community-report-reason",attrs:{value:r.id},model:{value:e.selectedReasonId,callback:a(function(o){e.selectedReasonId=o},"callback"),expression:"selectedReasonId"}},[e._v(" "+e._s(r.text)+" ")])}),1)],1)])])},"render"),Ja=[],Za=m(Bt,Va,Ja,!1,null,"4e085028");const Xa=Za.exports;var ec=Object.defineProperty,tc=Object.getOwnPropertyDescriptor,jt=a((n,e,t,r)=>{for(var o=r>1?void 0:r?tc(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&ec(e,t,o),o},"__decorateClass");l.registerHooks(["beforeRouteEnter"]);var Pe;let Fe=(Pe=class extends no(bo){constructor(){super(...arguments),this.maxSize=10,this.beforeFromDetail="",this.beforeFromPath="",this.beforeFromName="",this.reportBody=null,this.isLoading=!1,this.isInitialized=!1,this.isUnableUserInProSquare=!1}metaInfo(){var xe,Ae,Te;if(!this.communityPost||this.isInactivatePost)return{};const{title:e,contentBlocks:t}=this.communityPost,r=this.showPost?e:"",o=(xe=t.find(O=>O.type===C.Text))==null?void 0:xe.data,s=(Ae=t.find(O=>O.type===C.Images))==null?void 0:Ae.data,i=(Te=s==null?void 0:s[0])==null?void 0:Te.url,{titleMetas:d,descriptionMetas:v,imageMetas:_}=io({title:r,description:o,image:i});return{title:r,meta:[{vmid:"og:type",property:"og:type",content:"article"},...d,...v,..._]}}get communityPost(){var e;return(e=u)==null?void 0:e.communityPost}get isProviderSquareTopic(){var e,t;return((t=(e=this.communityPost)==null?void 0:e.topic)==null?void 0:t.id)===y.ProviderSquare}get showPost(){return this.communityPost&&!this.isReportedPost&&!this.isInactivatePost&&!this.isUnableUserInProSquare}get isInactivatePost(){return this.communityPost&&Object.keys(this.communityPost).length===2}get communityComments(){var e;return(e=u)==null?void 0:e.comments}get showCommunityReportModal(){var e;return!!((e=Re.modal)!=null&&e.communityReportModal)}get currentUserRole(){return h.currentUserRole}
5get isReportedPost(){var e;return(e=this.communityPost)==null?void 0:e.isReported}get isProviderMode(){return h.isProviderMode}get isGuest(){return h.isGuest}get isPureCustomer(){return h.isPureCustomer}get communityHome(){return{name:this.isProKnowhow?"pro-knowhow":"soomgo-life-home"}}get loginRoute(){return this.isProviderSquareTopic?{name:"login",query:{redirectMyPage:this.$route.path}}:{name:"login",query:{redirect:this.$route.path}}}get isProKnowhow(){var e;return((e=this.communityPost)==null?void 0:e.topic.id)===y.ProKnowhow}get relatedPosts(){var e;return(e=u)==null?void 0:e.relatedPosts}get hasBestComments(){var e;return((e=u.bestComments)==null?void 0:e.length)>0}get locationType(){var e,t,r,o;if(((e=this.$route.query)==null?void 0:e.from)==="curation")return f.COMMUNITY_LIST_CURATION;if(((t=this.$route.query)==null?void 0:t.from)==="community-user-activities")return f.MYPAGE;if(((r=this.$route.query)==null?void 0:r.from)==="global_search")return f.GLOBAL_SEARCH;if(((o=this.$route.query)==null?void 0:o.from)==="main_story")return f.MAIN_STORY;if(!this.beforeFromName){try{const s=new URL(document.referrer);if(s.origin===window.location.origin&&s.pathname==="/")return f.MAIN}catch{}return f.OUTSIDE}return this.beforeFromPath==="/"?f.MAIN:this.beforeFromName.includes("soomgo-life")||this.beforeFromName.includes("pro-center")?f.COMMUNITY_LIST_NORMAL:this.beforeFromName==="proDashboard"?f.PRO_DASHBOARD:this.beforeFromName==="profile"?f.PRO_PROFILE:this.beforeFromName==="received-quotes"?f.QUOTE_PRO_PROFILE:this.beforeFromName==="integral-search"?f.GLOBAL_SEARCH:this.beforeFromName==="pro"?f.PRO_SIGNUP_INTRO:this.beforeFromName==="onboarding-chat-room"?f.ONBOARDING_CHAT_ROOM:f.OTHERS}get noItemMessage(){return this.showPost?{title:"ì°¾ì ì ìë íì´ì§",description:`주ìê° ì못 ì ë ¥ëìê±°ë 6ë³ê²½ í¹ì ìì ëì´ íì´ì§ë¥¼ ì°¾ì ì ììµëë¤`}:this.isProviderSquareTopic&&!this.isProviderMode?yt[Pt.ProviderOnly]:this.isInactivatePost||this.isReportedPost?yt[Pt.Delete]:yt[Pt.NotFound]}get communityCategory(){return xt(this.$route)}async fetchCommunityPostDetail(){const[e]=String(this.$route.params.postSlug).split("-");if(!e||e==="null"||e==="undefined")throw new De.AxiosError(`Invalid postSlug: ${this.$route.params.postSlug}`,"ERR_INVALID_POST_SLUG",void 0,null,{status:404,statusText:"Not Found",data:null,headers:{},config:{}});if(!(this.communityPost&&this.communityPost.id===e))return await u.fetchPostDetail({postId:e,category:this.communityCategory}),u.fetchComments({postId:e,query:{size:10},category:this.communityCategory})}resetData(){u.setCommunityPost(null),u.setPayloadForCreateReplyComment(null),u.setCommentEditPayload(null)}onSetReportBody(e){this.reportBody={postId:this.communityPost.id,commentId:e}}async reporting({reasonId:e,reason:t}){var s;const r={...this.reportBody,reasonId:e},o=!!r.commentId;try{await(o?u.communityCommentReport({...r,category:this.communityCategory}):u.communityPostReport(r))&&(Be.user_report_finish({member_type:this.currentUserRole,subject:o?"reply":"community_body",reason:t}),await this.$swal.fire({title:"ì ê³ í´ì£¼ì ì ê°ì¬í©ëë¤.",html:"ê³ ê°ëì ì ê³ ë¡ ì¨ê³ ì ê·ì ì ì´ê¸°ê³ ì¨ê³ ì íê²½ì í´ì¹ë ì¬ì©ì를 ì ë°íëë° ë§ì ëìì´ ëììµëë¤.<br/><br/>ìì¼ë¡ë ê·ì ì ì´ê¸°ë ì¬ì©ìê° ìë¤ë©´ ì ê³ ê¸°ë¥ì ì ê·¹ ì´ì©í´ì£¼ì길 ë¶íë립ëë¤. ê°ì¬í©ëë¤.",showCancelButton:!1}),o?await u.fetchComments({postId:this.communityPost.id,query:{size:this.communityComments.length},category:this.communityCategory}):this.$router.push(this.communityHome))}catch(i){De.isAxiosError(i)?this.$prismaToast.pop({type:"message",text:(s=i.response.data)==null?void 0:s.reason,state:"default"}):this.$prismaToast.pop({type:"message",text:"ì¤ë¥ê° ë°ìíìµëë¤. ì ì í ë¤ì ìëí´ì£¼ì¸ì.",state:"default"})}}async initialize(e){var t,r,o,s;this.isLoading=!0;try{await this.fetchCommunityPostDetail()}catch(i){if(De.isAxiosError(i)&&((t=i.response)!=null&&t.status)&&i.response.status>=400&&i.response.status<500){this.replaceWithCommunityHome();return}throw this.isLoading=!1,i}if(this.isLoading=!1,((r=this.communityPost)==null?void 0:r.status)===wt.Published){const i=this.communityPost.to
6pic.id,{location_page_name:d,location_entry_method:v,location:_}=sr(this.$route);P.view_content_detail_page({member_type:this.currentUserRole,location:_??e,topic:i,title:this.communityPost.title,is_best_reply:this.hasBestComments,community_contents:((o=this.relatedPosts)==null?void 0:o.length)>2,content_category1_filter:this.communityCategory===Oe.ProCenter?"ê³ ìì¼í°":"ì¨ê³ ìí",content_category2_filter:(s=this.communityPost.topic)==null?void 0:s.name,content_id:this.communityPost.id,current_page_url:window.location.href,location_page_name:d,location_entry_method:v})}}onChangeRoute(e){this.isInitialized&&(this.resetData(),e.location===M.SoomgoLifePostDetail||e.location===M.ProKnowhowPostDetail||e.location===M.ProCenterPostDetail?this.initialize(f.RECOMMENDED):this.initialize(this.locationType))}async serverPrefetch(){var e,t;try{await this.fetchCommunityPostDetail()}catch(r){if(De.isAxiosError(r)&&((e=r.response)!=null&&e.status)&&r.response.status>=400&&r.response.status<500){(t=this.$ssrContext)!=null&&t.res&&(this.$ssrContext.res.statusCode=404);return}throw r}}created(){this.isLoading=!0}async mounted(){this.isProviderSquareTopic&&(this.isUnableUserInProSquare=!this.isProviderMode)}replaceWithCommunityHome(){const t={"pro-knowhow-detail":"pro-knowhow","pro-center-detail":"pro-center-home","post-detail":"soomgo-life-home"}[this.$route.name]??"soomgo-life-home";this.$router.replace({name:t}).catch(r=>r)}destroyed(){this.resetData()}},a(Pe,"PostDetail"),Pe);jt([Xt],Fe.prototype,"metaInfo",1);jt([Zt("$route.params")],Fe.prototype,"onChangeRoute",1);Fe=jt([l({components:{NoItems:Po,SoomgoLifePostBody:Ha,CommunityReportModal:Xa},beforeRouteEnter(n,e,t){t(r=>{const o=r;o.beforeFromName=e.name,o.beforeFromPath=e.path,o.beforeFromDetail=n.params.from,o.isInitialized=!0,o.initialize(o.locationType)})}})],Fe);const rc="data:image/svg+xml,%3csvg%20width='81'%20height='80'%20viewBox='0%200%2081%2080'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3clinearGradient%20x1='0%25'%20y1='50%25'%20x2='100%25'%20y2='50%25'%20id='uzy6cc7r2a'%3e%3cstop%20stop-color='%2300C7AE'%20offset='0%25'/%3e%3cstop%20stop-color='%234CC8E5'%20offset='100%25'/%3e%3c/linearGradient%3e%3c/defs%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20fill='%23FFF'%20d='M-148-232h375v1422h-375z'/%3e%3cpath%20d='M-148-80h375v418h-375z'%20fill='%23FFF'/%3e%3cg%20transform='translate(.5)'%3e%3ccircle%20fill-opacity='.5'%20fill='url(%23uzy6cc7r2a)'%20cx='40'%20cy='40'%20r='40'/%3e%3cpath%20d='M16%2064h48V16H16z'/%3e%3cpath%20d='M16.5%2064h48V16h-48z'/%3e%3cpath%20stroke='%23FFF'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M26.447%2053.253h28.106V36.361H26.447zM30.717%2031.264h19.565M34.89%2026.746h11.218'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";var oc=a(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("section",{directives:[{name:"show",rawName:"v-show",value:!e.isLoading,expression:"!isLoading"}],staticClass:"post-detail-container"},[e.showPost?t("SoomgoLifePostBody",{attrs:{"is-loading":e.isLoading},on:{"set-report-body":e.onSetReportBody}}):t("no-ssr",[t("NoItems",{staticClass:"no-items",attrs:{title:e.noItemMessage.title},scopedSlots:e._u([{key:"icon-image",fn:a(function(){return[e.isProviderSquareTopic&&!e.isProviderMode?t("img",{attrs:{src:rc,alt:"Error"}}):t("img",{attrs:{src:$o,alt:"Error"}})]},"fn"),proxy:!0},{key:"body",fn:a(function(){return[e.isProviderSquareTopic?t("span",{staticClass:"pro-square-description"},[e._v(e._s(e.noItemMessage.description))]):[e._v(e._s(e.noItemMessage.description))]]},"fn"),proxy:!0},{key:"button",fn:a(function(){return[e.isProviderSquareTopic?[e.isGuest?t("b-button",{attrs:{block:"",variant:"primary",to:e.loginRoute}},[e._v("ë¡ê·¸ì¸")]):t("b-button",{attrs:{block:"",variant:"primary",to:e.communityHome}},[e._v("커뮤ëí° ê¸ ë³´ë¬ê°ê¸°")]),e.isPureCustomer||e.isGuest?t("p",{staticClass:"has-not-provider"},[e._v(" ìì§ ê³ ìê³ì ì´ ìì¼ì ê°ì? "),t("router-link",{staticClass:"provider-register-advice",attrs:{to:{name:"pro",query:{entry_point:"signup_cta"}}}}
6,[e._v(" ê³ ì ê°ì
í기 ")])],1):e._e()]:t("b-button",{attrs:{block:"",variant:"primary",to:e.communityHome}},[e._v(" ë¤ë¥¸ ê²ìê¸ ë³´ë¬ ê°ê¸° ")])]},"fn"),proxy:!0}])})],1),t("no-ssr",[e.showCommunityReportModal?t("CommunityReportModal",{on:{reporting:e.reporting}}):e._e()],1)],1)},"render"),sc=[],ic=m(Fe,oc,sc,!1,null,"d09c9cd9");const Bu=ic.exports;export{Bu 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.