PageSourceSearch

https://www.hamropatro.com/_next/static/chunks/5359-f196305ecddeeaad.js

js hamropatro.com collected 2026-10-02 06:05:22 UTC 118,255 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5359],{2775:(e,t,n)=>{n.d(t,{h:()=>s});var a=n(12115),i=n(81072),r=n(85465);function s(){let{user:e,accessToken:t,businesses:n,isAdmin:s,adminMode:o,setAdminMode:l}=(0,i.A)(),c=(0,a.useMemo)(()=>n.map(e=>({id:e.id,name:e.name,logo:e.logo})),[n]),d=(0,a.useMemo)(()=>e?{uid:e.uid,name:e.name,photoURL:e.photoURL}:null,[e]),m=(0,a.useMemo)(()=>d?(0,r.WQ)(d):null,[d]),p=(0,a.useMemo)(()=>m?[m,...c.map(r.qx)]:[],[m,c]),[g,h]=(0,a.useState)(null),u=p.find(e=>e.accountId===g)??m,k=(0,a.useCallback)(()=>l(!o),[o,l]),[y,w]=(0,a.useState)(!1);return(0,a.useEffect)(()=>w(!0),[]),{uid:y?e?.uid??null:null,accessToken:y?t??null:null,authUser:y?d:null,personal:y?m:null,accounts:y?p:[],acting:y?u:null,setActing:h,isAdmin:!!y&&s,adminMode:!!y&&o,toggleAdminMode:k}}},12108:(e,t,n)=>{n.d(t,{Xl:()=>e8,c0:()=>e2,X0:()=>e6,de:()=>e4,Q_:()=>e9,zd:()=>e3,aO:()=>e7});var a=n(25828),i=n(16769),r=n(23436);class s{constructor(e){this._transport=e,this.typeName=i.jr.typeName,this.methods=i.jr.methods,this.options=i.jr.options}commentOnContent(e,t){let n=this.methods[0],a=this._transport.mergeOptions(t);return(0,r.hP)("unary",this._transport,n,a,e)}reactOnComment(e,t){let n=this.methods[1],a=this._transport.mergeOptions(t);return(0,r.hP)("unary",this._transport,n,a,e)}deleteComment(e,t){let n=this.methods[2],a=this._transport.mergeOptions(t);return(0,r.hP)("unary",this._transport,n,a,e)}listComments(e,t){let n=this.methods[3],a=this._transport.mergeOptions(t);return(0,r.hP)("unary",this._transport,n,a,e)}spamComment(e,t){let n=this.methods[4],a=this._transport.mergeOptions(t);return(0,r.hP)("unary",this._transport,n,a,e)}getComment(e,t){let n=this.methods[5],a=this._transport.mergeOptions(t);return(0,r.hP)("unary",this._transport,n,a,e)}}var o=n(31892);class l{constructor(e){this._transport=e,this.typeName=o.qT.typeName,this.methods=o.qT.methods,this.options=o.qT.options}replyOnComment(e,t){let n=this.methods[0],a=this._transport.mergeOptions(t);return(0,r.hP)("unary",this._transport,n,a,e)}getReplyDetail(e,t){let n=this.methods[1],a=this._transport.mergeOptions(t);return(0,r.hP)("unary",this._transport,n,a,e)}reactOnCommentReply(e,t){let n=this.methods[2],a=this._transport.mergeOptions(t);return(0,r.hP)("unary",this._transport,n,a,e)}deleteCommentReply(e,t){let n=this.methods[3],a=this._transport.mergeOptions(t);return(0,r.hP)("unary",this._transport,n,a,e)}listCommentReplies(e,t){let n=this.methods[4],a=this._transport.mergeOptions(t);return(0,r.hP)("unary",this._transport,n,a,e)}spamReply(e,t){let n=this.methods[5],a=this._transport.mergeOptions(t);return(0,r.hP)("unary",this._transport,n,a,e)}}var c=n(11150),d=n(7957),m=n(77265),p=n(63098);class g extends p.G{constructor(){super("com.hamropatro.grpc.cms.ListStickersRequest",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();{let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let h=new g;class u extends p.G{constructor(){super("com.hamropatro.grpc.cms.StickerPackageList",[{no:1,name:"packages",kind:"message",repeat:2,T:()=>w}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.packages=[],void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();if(1===t)i.packages.push(w.internalBinaryRead(e,e.uint32(),n));else{let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){for(let a=0;a<e.packages.length;a++)w.internalBinaryWrite(e.packages[a],t.tag(1,d.O0.LengthDelimited).fork(),n).join();let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let k=new u;class y extends p.G{constructor(){super("com.hamropatro.grpc.cms.StickerPackage",[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"cover_image",kind:"message",T:()=>$},{no:3,name:"is_premium",kind:"scalar",T:8},{no:4,name:"stickers",kind:"message",repeat:2,T:()=>b},{no:5,name:"tag_name",kind:"scalar",T:9},{no:6,name:"author_name",kind:"scalar",T:9},{no:7,name:"author_url",kind:"scalar",T:9},{no:8,name:"description",kind:"scalar",T:9},{no:9,name:"category",kind:"message",T:()=>R},{no:10,name:"priority",kind:"scalar",T:5},{no:11,name:"mime_type",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.name="",t.isPremium=!1,t.stickers=[],t.tagName="",t.authorName="",t.authorUrl="",t.description="",t.priority=0,t.mimeType="",void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;
1){let[t,a]=e.tag();switch(t){case 1:i.name=e.string();break;case 2:i.coverImage=$.internalBinaryRead(e,e.uint32(),n,i.coverImage);break;case 3:i.isPremium=e.bool();break;case 4:i.stickers.push(b.internalBinaryRead(e,e.uint32(),n));break;case 5:i.tagName=e.string();break;case 6:i.authorName=e.string();break;case 7:i.authorUrl=e.string();break;case 8:i.description=e.string();break;case 9:i.category=R.internalBinaryRead(e,e.uint32(),n,i.category);break;case 10:i.priority=e.int32();break;case 11:i.mimeType=e.string();break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){""!==e.name&&t.tag(1,d.O0.LengthDelimited).string(e.name),e.coverImage&&$.internalBinaryWrite(e.coverImage,t.tag(2,d.O0.LengthDelimited).fork(),n).join(),!1!==e.isPremium&&t.tag(3,d.O0.Varint).bool(e.isPremium);for(let a=0;a<e.stickers.length;a++)b.internalBinaryWrite(e.stickers[a],t.tag(4,d.O0.LengthDelimited).fork(),n).join();""!==e.tagName&&t.tag(5,d.O0.LengthDelimited).string(e.tagName),""!==e.authorName&&t.tag(6,d.O0.LengthDelimited).string(e.authorName),""!==e.authorUrl&&t.tag(7,d.O0.LengthDelimited).string(e.authorUrl),""!==e.description&&t.tag(8,d.O0.LengthDelimited).string(e.description),e.category&&R.internalBinaryWrite(e.category,t.tag(9,d.O0.LengthDelimited).fork(),n).join(),0!==e.priority&&t.tag(10,d.O0.Varint).int32(e.priority),""!==e.mimeType&&t.tag(11,d.O0.LengthDelimited).string(e.mimeType);let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let w=new y;class f extends p.G{constructor(){super("com.hamropatro.grpc.cms.Sticker",[{no:1,name:"photo_url",kind:"scalar",T:9},{no:2,name:"photo_white_bg_url",kind:"scalar",T:9},{no:3,name:"is_animated",kind:"scalar",T:8},{no:4,name:"tag_name",kind:"scalar",T:9},{no:5,name:"priority",kind:"scalar",T:5},{no:6,name:"thumbnail",kind:"scalar",T:9},{no:7,name:"images",kind:"map",K:9,V:{kind:"message",T:()=>O}},{no:8,name:"uploaded",kind:"scalar",T:8}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.photoUrl="",t.photoWhiteBgUrl="",t.isAnimated=!1,t.tagName="",t.priority=0,t.thumbnail="",t.images={},t.uploaded=!1,void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();switch(t){case 1:i.photoUrl=e.string();break;case 2:i.photoWhiteBgUrl=e.string();break;case 3:i.isAnimated=e.bool();break;case 4:i.tagName=e.string();break;case 5:i.priority=e.int32();break;case 6:i.thumbnail=e.string();break;case 7:this.binaryReadMap7(i.images,e,n);break;case 8:i.uploaded=e.bool();break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}binaryReadMap7(e,t,n){let a=t.uint32(),i=t.pos+a,r,s;for(;t.pos<i;){let[e,a]=t.tag();switch(e){case 1:r=t.string();break;case 2:s=O.internalBinaryRead(t,t.uint32(),n);break;default:throw new globalThis.Error("unknown map entry field for com.hamropatro.grpc.cms.Sticker.images")}}e[r??""]=s??O.create()}internalBinaryWrite(e,t,n){for(let a of(""!==e.photoUrl&&t.tag(1,d.O0.LengthDelimited).string(e.photoUrl),""!==e.photoWhiteBgUrl&&t.tag(2,d.O0.LengthDelimited).string(e.photoWhiteBgUrl),!1!==e.isAnimated&&t.tag(3,d.O0.Varint).bool(e.isAnimated),""!==e.tagName&&t.tag(4,d.O0.LengthDelimited).string(e.tagName),0!==e.priority&&t.tag(5,d.O0.Varint).int32(e.priority),""!==e.thumbnail&&t.tag(6,d.O0.LengthDelimited).string(e.thumbnail),globalThis.Object.keys(e.images)))t.tag(7,d.O0.LengthDelimited).fork().tag(1,d.O0.LengthDelimited).string(a),t.tag(2,d.O0.LengthDelimited).fork(),O.internalBinaryWrite(e.images[a],t,n),t.join().join();!1!==e.uploaded&&t.tag(8,d.O0.Varint).bool(e.uploaded);let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let b=new f;class T extends p.G{constructor(){super("com.hamropatro.grpc.cms.SizedImage",[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"width",kind:"scalar",T:5},{no:3,name:"height",kind:"scalar",T:5}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.url="",t.width=0,t.height=0,void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;
1){let[t,a]=e.tag();switch(t){case 1:i.url=e.string();break;case 2:i.width=e.int32();break;case 3:i.height=e.int32();break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){""!==e.url&&t.tag(1,d.O0.LengthDelimited).string(e.url),0!==e.width&&t.tag(2,d.O0.Varint).int32(e.width),0!==e.height&&t.tag(3,d.O0.Varint).int32(e.height);let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let O=new T;class I extends p.G{constructor(){super("com.hamropatro.grpc.cms.Image",[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"width",kind:"scalar",T:5},{no:3,name:"height",kind:"scalar",T:5},{no:4,name:"format",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.url="",t.width=0,t.height=0,t.format="",void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();switch(t){case 1:i.url=e.string();break;case 2:i.width=e.int32();break;case 3:i.height=e.int32();break;case 4:i.format=e.string();break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){""!==e.url&&t.tag(1,d.O0.LengthDelimited).string(e.url),0!==e.width&&t.tag(2,d.O0.Varint).int32(e.width),0!==e.height&&t.tag(3,d.O0.Varint).int32(e.height),""!==e.format&&t.tag(4,d.O0.LengthDelimited).string(e.format);let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let $=new I;class U extends p.G{constructor(){super("com.hamropatro.grpc.cms.StickerCategory",[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"photo_url",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.id="",t.name="",t.photoUrl="",void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();switch(t){case 1:i.id=e.string();break;case 2:i.name=e.string();break;case 3:i.photoUrl=e.string();break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){""!==e.id&&t.tag(1,d.O0.LengthDelimited).string(e.id),""!==e.name&&t.tag(2,d.O0.LengthDelimited).string(e.name),""!==e.photoUrl&&t.tag(3,d.O0.LengthDelimited).string(e.photoUrl);let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let R=new U,B=new c.C("com.hamropatro.grpc.cms.StickerService",[{name:"getStickers",options:{},I:h,O:k}]);class _{constructor(e){this._transport=e,this.typeName=B.typeName,this.methods=B.methods,this.options=B.options}getStickers(e,t){let n=this.methods[0],a=this._transport.mergeOptions(t);return(0,r.hP)("unary",this._transport,n,a,e)}}var D=n(42341),L=function(e){return e[e.DEFAULT=0]="DEFAULT",e[e.IMAGE=1]="IMAGE",e[e.TEXT=2]="TEXT",e[e.IMAGE_TEXT=3]="IMAGE_TEXT",e[e.AUDIO=4]="AUDIO",e[e.VIDEO=5]="VIDEO",e[e.LINK=6]="LINK",e}({});class N extends p.G{constructor(){super("com.hamropatro.sociallayer.io.GetPostDetailRequest",[{no:1,name:"reaction",kind:"message",T:()=>D.qT},{no:2,name:"page_size",kind:"scalar",T:13},{no:3,name:"page_token",kind:"scalar",T:9},{no:4,name:"business_account_info",kind:"message",T:()=>D.g$},{no:5,name:"contentMetadataLogged",kind:"scalar",T:8}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.pageSize=0,t.pageToken="",t.contentMetadataLogged=!1,void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();switch(t){case 1:i.reaction=D.qT.internalBinaryRead(e,e.uint32(),n,i.reaction);break;case 2:i.pageSize=e.uint32();break;case 3:i.pageToken=e.string();break;case 4:i.businessAccountInfo=D.g$.internalBinaryRead(e,e.uint32(),n,i.businessAccountInfo);break;case 5:i.contentMetadataLogged=e.bool();break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){e.reaction&&D.qT.internalBinaryWrite(e.reaction,t.tag(1,d.O0.LengthDelimited).fork(),n).join(),0!==e.pageSize&&t.tag(2,d.O0.Varint).uint32(e.pageSize),""!==e.pageToken&&t.tag(3,d.O0.LengthDelimited).string(e.pageToken),e.businessAccountInfo&&D.g$.internalBinaryWrite(e.businessAccountInfo,t.tag(4,d.O0.LengthDelimited).fork(),n).join(),!1!==e.contentMetadataLogged&&t.tag(5,d.O0.Varint).bool(e.contentMetadataLogged);let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let P=new N;class W extends p.G{constructor(){super("com.hamropatro.sociallayer.io.GetPostDetailResponse",[{no:1,name:"reaction_detail",kind:"message",T:()=>A},{no:2,name:"comment_detail",kind:"message",repeat:2,T:()=>D.NH},{no:3,name:"liked",kind:"scalar",T:8},{no:4,name:"disliked",kind:"scalar",T:8},{no:5,name:"next_page_token",kind:"scalar",T:9},{no:6,name:"business_account_info",kind:"message",T:()=>D.g$},{no:7,name:"post_owner_business_id",kind:"scalar",T:9},{no:8,name:"contentMetadataLogged",kind:"scalar",T:8},{no:9,name:"listOfReactedUsers",kind:"message",repeat:2,T:()=>D.g$}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.commentDetail=[],t.liked=!1,t.disliked=!1,t.nextPageToken="",t.postOwnerBusinessId="",t.contentMetadataLogged=!1,t.listOfReactedUsers=[],void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;
1){let[t,a]=e.tag();switch(t){case 1:i.reactionDetail=A.internalBinaryRead(e,e.uint32(),n,i.reactionDetail);break;case 2:i.commentDetail.push(D.NH.internalBinaryRead(e,e.uint32(),n));break;case 3:i.liked=e.bool();break;case 4:i.disliked=e.bool();break;case 5:i.nextPageToken=e.string();break;case 6:i.businessAccountInfo=D.g$.internalBinaryRead(e,e.uint32(),n,i.businessAccountInfo);break;case 7:i.postOwnerBusinessId=e.string();break;case 8:i.contentMetadataLogged=e.bool();break;case 9:i.listOfReactedUsers.push(D.g$.internalBinaryRead(e,e.uint32(),n));break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){e.reactionDetail&&A.internalBinaryWrite(e.reactionDetail,t.tag(1,d.O0.LengthDelimited).fork(),n).join();for(let a=0;a<e.commentDetail.length;a++)D.NH.internalBinaryWrite(e.commentDetail[a],t.tag(2,d.O0.LengthDelimited).fork(),n).join();!1!==e.liked&&t.tag(3,d.O0.Varint).bool(e.liked),!1!==e.disliked&&t.tag(4,d.O0.Varint).bool(e.disliked),""!==e.nextPageToken&&t.tag(5,d.O0.LengthDelimited).string(e.nextPageToken),e.businessAccountInfo&&D.g$.internalBinaryWrite(e.businessAccountInfo,t.tag(6,d.O0.LengthDelimited).fork(),n).join(),""!==e.postOwnerBusinessId&&t.tag(7,d.O0.LengthDelimited).string(e.postOwnerBusinessId),!1!==e.contentMetadataLogged&&t.tag(8,d.O0.Varint).bool(e.contentMetadataLogged);for(let a=0;a<e.listOfReactedUsers.length;a++)D.g$.internalBinaryWrite(e.listOfReactedUsers[a],t.tag(9,d.O0.LengthDelimited).fork(),n).join();let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let x=new W;class E extends p.G{constructor(){super("com.hamropatro.sociallayer.io.GetPostSummaryRequest",[{no:1,name:"reaction",kind:"message",T:()=>D.qT},{no:2,name:"user_reaction_count",kind:"scalar",T:13},{no:3,name:"page_token",kind:"scalar",T:9},{no:4,name:"business_account_info",kind:"message",T:()=>D.g$},{no:5,name:"contentMetadataLogged",kind:"scalar",T:8}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.userReactionCount=0,t.pageToken="",t.contentMetadataLogged=!1,void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();switch(t){case 1:i.reaction=D.qT.internalBinaryRead(e,e.uint32(),n,i.reaction);break;case 2:i.userReactionCount=e.uint32();break;case 3:i.pageToken=e.string();break;case 4:i.businessAccountInfo=D.g$.internalBinaryRead(e,e.uint32(),n,i.businessAccountInfo);break;case 5:i.contentMetadataLogged=e.bool();break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){e.reaction&&D.qT.internalBinaryWrite(e.reaction,t.tag(1,d.O0.LengthDelimited).fork(),n).join(),0!==e.userReactionCount&&t.tag(2,d.O0.Varint).uint32(e.userReactionCount),""!==e.pageToken&&t.tag(3,d.O0.LengthDelimited).string(e.pageToken),e.businessAccountInfo&&D.g$.internalBinaryWrite(e.businessAccountInfo,t.tag(4,d.O0.LengthDelimited).fork(),n).join(),!1!==e.contentMetadataLogged&&t.tag(5,d.O0.Varint).bool(e.contentMetadataLogged);let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let j=new E;class C extends p.G{constructor(){super("com.hamropatro.sociallayer.io.GetPostSummaryResponse",[{no:1,name:"reaction_detail",kind:"message",T:()=>A},{no:3,name:"liked",kind:"scalar",T:8},{no:4,name:"disliked",kind:"scalar",T:8},{no:5,name:"next_page_token",kind:"scalar",T:9},{no:6,name:"business_account_info",kind:"message",T:()=>D.g$},{no:7,name:"post_owner_business_id",kind:"scalar",T:9},{no:8,name:"listOfReactedUsers",kind:"message",repeat:2,T:()=>D.g$},{no:9,name:"contentMetadataLogged",kind:"scalar",T:8},{no:10,name:"metadata",kind:"map",K:9,V:{kind:"scalar",T:9}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.liked=!1,t.disliked=!1,t.nextPageToken="",t.postOwnerBusinessId="",t.listOfReactedUsers=[],t.contentMetadataLogged=!1,t.metadata={},void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;
1){let[t,a]=e.tag();switch(t){case 1:i.reactionDetail=A.internalBinaryRead(e,e.uint32(),n,i.reactionDetail);break;case 3:i.liked=e.bool();break;case 4:i.disliked=e.bool();break;case 5:i.nextPageToken=e.string();break;case 6:i.businessAccountInfo=D.g$.internalBinaryRead(e,e.uint32(),n,i.businessAccountInfo);break;case 7:i.postOwnerBusinessId=e.string();break;case 8:i.listOfReactedUsers.push(D.g$.internalBinaryRead(e,e.uint32(),n));break;case 9:i.contentMetadataLogged=e.bool();break;case 10:this.binaryReadMap10(i.metadata,e,n);break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}binaryReadMap10(e,t,n){let a=t.uint32(),i=t.pos+a,r,s;for(;t.pos<i;){let[e,n]=t.tag();switch(e){case 1:r=t.string();break;case 2:s=t.string();break;default:throw new globalThis.Error("unknown map entry field for com.hamropatro.sociallayer.io.GetPostSummaryResponse.metadata")}}e[r??""]=s??""}internalBinaryWrite(e,t,n){e.reactionDetail&&A.internalBinaryWrite(e.reactionDetail,t.tag(1,d.O0.LengthDelimited).fork(),n).join(),!1!==e.liked&&t.tag(3,d.O0.Varint).bool(e.liked),!1!==e.disliked&&t.tag(4,d.O0.Varint).bool(e.disliked),""!==e.nextPageToken&&t.tag(5,d.O0.LengthDelimited).string(e.nextPageToken),e.businessAccountInfo&&D.g$.internalBinaryWrite(e.businessAccountInfo,t.tag(6,d.O0.LengthDelimited).fork(),n).join(),""!==e.postOwnerBusinessId&&t.tag(7,d.O0.LengthDelimited).string(e.postOwnerBusinessId);for(let a=0;a<e.listOfReactedUsers.length;a++)D.g$.internalBinaryWrite(e.listOfReactedUsers[a],t.tag(8,d.O0.LengthDelimited).fork(),n).join();for(let n of(!1!==e.contentMetadataLogged&&t.tag(9,d.O0.Varint).bool(e.contentMetadataLogged),globalThis.Object.keys(e.metadata)))t.tag(10,d.O0.LengthDelimited).fork().tag(1,d.O0.LengthDelimited).string(n).tag(2,d.O0.LengthDelimited).string(e.metadata[n]).join();let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let F=new C;class v extends p.G{constructor(){super("com.hamropatro.sociallayer.io.ReactionDetail",[{no:1,name:"app_id",kind:"scalar",T:9},{no:2,name:"post_uri",kind:"scalar",T:9},{no:3,name:"likes",kind:"scalar",T:4,L:0},{no:4,name:"dislikes",kind:"scalar",T:4,L:0},{no:5,name:"views",kind:"scalar",T:4,L:0},{no:6,name:"unique_views",kind:"scalar",T:4,L:0},{no:7,name:"total_comments",kind:"scalar",T:4,L:0},{no:8,name:"approved_comments",kind:"scalar",T:4,L:0},{no:9,name:"spam_comments",kind:"scalar",T:4,L:0},{no:10,name:"reaction_type",kind:"enum",T:()=>["com.hamropatro.sociallayer.io.ReactionType",D.o]}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.appId="",t.postUri="",t.likes=0n,t.dislikes=0n,t.views=0n,t.uniqueViews=0n,t.totalComments=0n,t.approvedComments=0n,t.spamComments=0n,t.reactionType=0,void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();switch(t){case 1:i.appId=e.string();break;case 2:i.postUri=e.string();break;case 3:i.likes=e.uint64().toBigInt();break;case 4:i.dislikes=e.uint64().toBigInt();break;case 5:i.views=e.uint64().toBigInt();break;case 6:i.uniqueViews=e.uint64().toBigInt();break;case 7:i.totalComments=e.uint64().toBigInt();break;case 8:i.approvedComments=e.uint64().toBigInt();break;case 9:i.spamComments=e.uint64().toBigInt();break;case 10:i.reactionType=e.int32();break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){""!==e.appId&&t.tag(1,d.O0.LengthDelimited).string(e.appId),""!==e.postUri&&t.tag(2,d.O0.LengthDelimited).string(e.postUri),0n!==e.likes&&t.tag(3,d.O0.Varint).uint64(e.likes),0n!==e.dislikes&&t.tag(4,d.O0.Varint).uint64(e.dislikes),0n!==e.views&&t.tag(5,d.O0.Varint).uint64(e.views),0n!==e.uniqueViews&&t.tag(6,d.O0.Varint).uint64(e.uniqueViews),0n!==e.totalComments&&t.tag(7,d.O0.Varint).uint64(e.totalComments),0n!==e.approvedComments&&t.tag(8,d.O0.Varint).uint64(e.approvedComments),0n!==e.spamComments&&t.tag(9,d.O0.Varint).uint64(e.spamComments),0!==e.reactionType&&t.tag(10,d.O0.Varint).int32(e.reactionType);let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let A=new v;class V extends p.G{constructor(){super("com.hamropatro.sociallayer.io.ContentMetaDataRequest",[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"owner",kind:"message",T:()=>D.g$},{no:3,name:"created_date",kind:"scalar",T:4,L:0},{no:4,name:"content_type",kind:"enum",T:()=>["com.hamropatro.sociallayer.io.ContentType",D.cM]},{no:5,name:"meta_data",kind:"map",K:9,V:{kind:"scalar",T:9}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.id="",t.createdDate=0n,t.contentType=0,t.metaData={},void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;
1){let[t,a]=e.tag();switch(t){case 1:i.id=e.string();break;case 2:i.owner=D.g$.internalBinaryRead(e,e.uint32(),n,i.owner);break;case 3:i.createdDate=e.uint64().toBigInt();break;case 4:i.contentType=e.int32();break;case 5:this.binaryReadMap5(i.metaData,e,n);break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}binaryReadMap5(e,t,n){let a=t.uint32(),i=t.pos+a,r,s;for(;t.pos<i;){let[e,n]=t.tag();switch(e){case 1:r=t.string();break;case 2:s=t.string();break;default:throw new globalThis.Error("unknown map entry field for com.hamropatro.sociallayer.io.ContentMetaDataRequest.meta_data")}}e[r??""]=s??""}internalBinaryWrite(e,t,n){for(let a of(""!==e.id&&t.tag(1,d.O0.LengthDelimited).string(e.id),e.owner&&D.g$.internalBinaryWrite(e.owner,t.tag(2,d.O0.LengthDelimited).fork(),n).join(),0n!==e.createdDate&&t.tag(3,d.O0.Varint).uint64(e.createdDate),0!==e.contentType&&t.tag(4,d.O0.Varint).int32(e.contentType),globalThis.Object.keys(e.metaData)))t.tag(5,d.O0.LengthDelimited).fork().tag(1,d.O0.LengthDelimited).string(a).tag(2,d.O0.LengthDelimited).string(e.metaData[a]).join();let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let G=new V;class S extends p.G{constructor(){super("com.hamropatro.sociallayer.io.ContentMetaDataResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();{let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let M=new S;class q extends p.G{constructor(){super("com.hamropatro.sociallayer.io.UpdatePostRequest",[{no:1,name:"post",kind:"message",T:()=>ei},{no:2,name:"business_id",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.businessId="",void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();switch(t){case 1:i.post=ei.internalBinaryRead(e,e.uint32(),n,i.post);break;case 2:i.businessId=e.string();break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){e.post&&ei.internalBinaryWrite(e.post,t.tag(1,d.O0.LengthDelimited).fork(),n).join(),""!==e.businessId&&t.tag(2,d.O0.LengthDelimited).string(e.businessId);let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let z=new q;class K extends p.G{constructor(){super("com.hamropatro.sociallayer.io.UpdatePostResponse",[{no:1,name:"post",kind:"message",T:()=>ei},{no:2,name:"business_id",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.businessId="",void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();switch(t){case 1:i.post=ei.internalBinaryRead(e,e.uint32(),n,i.post);break;case 2:i.businessId=e.string();break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){e.post&&ei.internalBinaryWrite(e.post,t.tag(1,d.O0.LengthDelimited).fork(),n).join(),""!==e.businessId&&t.tag(2,d.O0.LengthDelimited).string(e.businessId);let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let H=new K;class X extends p.G{constructor(){super("com.hamropatro.sociallayer.io.RemovePostRequest",[{no:1,name:"group_id",kind:"scalar",T:9},{no:2,name:"content_id",kind:"scalar",T:9},{no:3,name:"category_name",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.groupId="",t.contentId="",t.categoryName="",void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;
1){let[t,a]=e.tag();switch(t){case 1:i.groupId=e.string();break;case 2:i.contentId=e.string();break;case 3:i.categoryName=e.string();break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){""!==e.groupId&&t.tag(1,d.O0.LengthDelimited).string(e.groupId),""!==e.contentId&&t.tag(2,d.O0.LengthDelimited).string(e.contentId),""!==e.categoryName&&t.tag(3,d.O0.LengthDelimited).string(e.categoryName);let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let Y=new X;class Q extends p.G{constructor(){super("com.hamropatro.sociallayer.io.RemovePostResponse",[{no:1,name:"post_id",kind:"scalar",T:9},{no:2,name:"business_id",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.postId="",t.businessId="",void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();switch(t){case 1:i.postId=e.string();break;case 2:i.businessId=e.string();break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){""!==e.postId&&t.tag(1,d.O0.LengthDelimited).string(e.postId),""!==e.businessId&&t.tag(2,d.O0.LengthDelimited).string(e.businessId);let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let J=new Q;class Z extends p.G{constructor(){super("com.hamropatro.sociallayer.io.AddPostRequest",[{no:1,name:"post",kind:"message",T:()=>ei},{no:2,name:"business_id",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.businessId="",void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();switch(t){case 1:i.post=ei.internalBinaryRead(e,e.uint32(),n,i.post);break;case 2:i.businessId=e.string();break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){e.post&&ei.internalBinaryWrite(e.post,t.tag(1,d.O0.LengthDelimited).fork(),n).join(),""!==e.businessId&&t.tag(2,d.O0.LengthDelimited).string(e.businessId);let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let ee=new Z;class et extends p.G{constructor(){super("com.hamropatro.sociallayer.io.AddPostResponse",[{no:1,name:"added",kind:"scalar",T:8},{no:2,name:"post_id",kind:"scalar",T:9},{no:3,name:"post_url",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.added=!1,t.postId="",t.postUrl="",void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();switch(t){case 1:i.added=e.bool();break;case 2:i.postId=e.string();break;case 3:i.postUrl=e.string();break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){!1!==e.added&&t.tag(1,d.O0.Varint).bool(e.added),""!==e.postId&&t.tag(2,d.O0.LengthDelimited).string(e.postId),""!==e.postUrl&&t.tag(3,d.O0.LengthDelimited).string(e.postUrl);let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let en=new et;class ea extends p.G{constructor(){super("com.hamropatro.sociallayer.io.Post",[{no:1,name:"group_id",kind:"scalar",T:9},{no:2,name:"contentId",kind:"scalar",T:9},{no:3,name:"category",kind:"scalar",T:9},{no:4,name:"post_url",kind:"scalar",T:9},{no:5,name:"post_type",kind:"enum",T:()=>["com.hamropatro.sociallayer.io.Post.PostType",L]},{no:6,name:"content",kind:"message",T:()=>es},{no:7,name:"post_owner",kind:"message",T:()=>D.g$},{no:8,name:"edited",kind:"scalar",T:8},{no:9,name:"last_updated",kind:"scalar",T:3,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.groupId="",t.contentId="",t.category="",t.postUrl="",t.postType=0,t.edited=!1,t.lastUpdated=0n,void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;
1){let[t,a]=e.tag();switch(t){case 1:i.groupId=e.string();break;case 2:i.contentId=e.string();break;case 3:i.category=e.string();break;case 4:i.postUrl=e.string();break;case 5:i.postType=e.int32();break;case 6:i.content=es.internalBinaryRead(e,e.uint32(),n,i.content);break;case 7:i.postOwner=D.g$.internalBinaryRead(e,e.uint32(),n,i.postOwner);break;case 8:i.edited=e.bool();break;case 9:i.lastUpdated=e.int64().toBigInt();break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){""!==e.groupId&&t.tag(1,d.O0.LengthDelimited).string(e.groupId),""!==e.contentId&&t.tag(2,d.O0.LengthDelimited).string(e.contentId),""!==e.category&&t.tag(3,d.O0.LengthDelimited).string(e.category),""!==e.postUrl&&t.tag(4,d.O0.LengthDelimited).string(e.postUrl),0!==e.postType&&t.tag(5,d.O0.Varint).int32(e.postType),e.content&&es.internalBinaryWrite(e.content,t.tag(6,d.O0.LengthDelimited).fork(),n).join(),e.postOwner&&D.g$.internalBinaryWrite(e.postOwner,t.tag(7,d.O0.LengthDelimited).fork(),n).join(),!1!==e.edited&&t.tag(8,d.O0.Varint).bool(e.edited),0n!==e.lastUpdated&&t.tag(9,d.O0.Varint).int64(e.lastUpdated);let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let ei=new ea;class er extends p.G{constructor(){super("com.hamropatro.sociallayer.io.Content",[{no:1,name:"data",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:2,name:"metadata",kind:"map",K:9,V:{kind:"scalar",T:9}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.data={},t.metadata={},void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();switch(t){case 1:this.binaryReadMap1(i.data,e,n);break;case 2:this.binaryReadMap2(i.metadata,e,n);break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}binaryReadMap1(e,t,n){let a=t.uint32(),i=t.pos+a,r,s;for(;t.pos<i;){let[e,n]=t.tag();switch(e){case 1:r=t.string();break;case 2:s=t.string();break;default:throw new globalThis.Error("unknown map entry field for com.hamropatro.sociallayer.io.Content.data")}}e[r??""]=s??""}binaryReadMap2(e,t,n){let a=t.uint32(),i=t.pos+a,r,s;for(;t.pos<i;){let[e,n]=t.tag();switch(e){case 1:r=t.string();break;case 2:s=t.string();break;default:throw new globalThis.Error("unknown map entry field for com.hamropatro.sociallayer.io.Content.metadata")}}e[r??""]=s??""}internalBinaryWrite(e,t,n){for(let n of globalThis.Object.keys(e.data))t.tag(1,d.O0.LengthDelimited).fork().tag(1,d.O0.LengthDelimited).string(n).tag(2,d.O0.LengthDelimited).string(e.data[n]).join();for(let n of globalThis.Object.keys(e.metadata))t.tag(2,d.O0.LengthDelimited).fork().tag(1,d.O0.LengthDelimited).string(n).tag(2,d.O0.LengthDelimited).string(e.metadata[n]).join();let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let es=new er;class eo extends p.G{constructor(){super("com.hamropatro.sociallayer.io.GetGroupPostByCategoryRequest",[{no:1,name:"group_id",kind:"scalar",T:9},{no:2,name:"category",kind:"scalar",T:9},{no:3,name:"cursor",kind:"scalar",T:9},{no:4,name:"page_size",kind:"scalar",T:5}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.groupId="",t.category="",t.cursor="",t.pageSize=0,void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();switch(t){case 1:i.groupId=e.string();break;case 2:i.category=e.string();break;case 3:i.cursor=e.string();break;case 4:i.pageSize=e.int32();break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){""!==e.groupId&&t.tag(1,d.O0.LengthDelimited).string(e.groupId),""!==e.category&&t.tag(2,d.O0.LengthDelimited).string(e.category),""!==e.curs
1or&&t.tag(3,d.O0.LengthDelimited).string(e.cursor),0!==e.pageSize&&t.tag(4,d.O0.Varint).int32(e.pageSize);let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let el=new eo;class ec extends p.G{constructor(){super("com.hamropatro.sociallayer.io.GetPostsRequest",[{no:1,name:"group_id",kind:"scalar",T:9},{no:3,name:"cursor",kind:"scalar",T:9},{no:4,name:"page_size",kind:"scalar",T:5}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.groupId="",t.cursor="",t.pageSize=0,void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();switch(t){case 1:i.groupId=e.string();break;case 3:i.cursor=e.string();break;case 4:i.pageSize=e.int32();break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){""!==e.groupId&&t.tag(1,d.O0.LengthDelimited).string(e.groupId),""!==e.cursor&&t.tag(3,d.O0.LengthDelimited).string(e.cursor),0!==e.pageSize&&t.tag(4,d.O0.Varint).int32(e.pageSize);let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let ed=new ec;class em extends p.G{constructor(){super("com.hamropatro.sociallayer.io.GetGroupPostByIdRequest",[{no:1,name:"group_id",kind:"scalar",T:9},{no:2,name:"category_name",kind:"scalar",T:9},{no:3,name:"post_id",kind:"scalar",T:9},{no:4,name:"cursor",kind:"scalar",T:9},{no:5,name:"page_size",kind:"scalar",T:5}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.groupId="",t.categoryName="",t.postId="",t.cursor="",t.pageSize=0,void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();switch(t){case 1:i.groupId=e.string();break;case 2:i.categoryName=e.string();break;case 3:i.postId=e.string();break;case 4:i.cursor=e.string();break;case 5:i.pageSize=e.int32();break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){""!==e.groupId&&t.tag(1,d.O0.LengthDelimited).string(e.groupId),""!==e.categoryName&&t.tag(2,d.O0.LengthDelimited).string(e.categoryName),""!==e.postId&&t.tag(3,d.O0.LengthDelimited).string(e.postId),""!==e.cursor&&t.tag(4,d.O0.LengthDelimited).string(e.cursor),0!==e.pageSize&&t.tag(5,d.O0.Varint).int32(e.pageSize);let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let ep=new em;class eg extends p.G{constructor(){super("com.hamropatro.sociallayer.io.GetGroupPostByIdResponse",[{no:1,name:"posts",kind:"message",T:()=>ei},{no:2,name:"next_page_token",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.nextPageToken="",void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();switch(t){case 1:i.posts=ei.internalBinaryRead(e,e.uint32(),n,i.posts);break;case 2:i.nextPageToken=e.string();break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){e.posts&&ei.internalBinaryWrite(e.posts,t.tag(1,d.O0.LengthDelimited).fork(),n).join(),""!==e.nextPageToken&&t.tag(2,d.O0.LengthDelimited).string(e.nextPageToken);let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let eh=new eg;class eu extends p.G{constructor(){super("com.hamropatro.sociallayer.io.GetPostsResponse",[{no:1,name:"post_details",kind:"message",repeat:2,T:()=>ew},{no:2,name:"next_page_cursor",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.postDetails=[],t.nextPageCursor="",void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;
1){let[t,a]=e.tag();switch(t){case 1:i.postDetails.push(ew.internalBinaryRead(e,e.uint32(),n));break;case 2:i.nextPageCursor=e.string();break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){for(let a=0;a<e.postDetails.length;a++)ew.internalBinaryWrite(e.postDetails[a],t.tag(1,d.O0.LengthDelimited).fork(),n).join();""!==e.nextPageCursor&&t.tag(2,d.O0.LengthDelimited).string(e.nextPageCursor);let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let ek=new eu;class ey extends p.G{constructor(){super("com.hamropatro.sociallayer.io.PostDetail",[{no:1,name:"post",kind:"message",T:()=>ei},{no:4,name:"next_page_token",kind:"scalar",T:9},{no:5,name:"post_owner_id",kind:"scalar",T:9},{no:6,name:"listOfReactedUsers",kind:"message",repeat:2,T:()=>D.g$},{no:7,name:"metadata",kind:"map",K:9,V:{kind:"scalar",T:9}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.nextPageToken="",t.postOwnerId="",t.listOfReactedUsers=[],t.metadata={},void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();switch(t){case 1:i.post=ei.internalBinaryRead(e,e.uint32(),n,i.post);break;case 4:i.nextPageToken=e.string();break;case 5:i.postOwnerId=e.string();break;case 6:i.listOfReactedUsers.push(D.g$.internalBinaryRead(e,e.uint32(),n));break;case 7:this.binaryReadMap7(i.metadata,e,n);break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}binaryReadMap7(e,t,n){let a=t.uint32(),i=t.pos+a,r,s;for(;t.pos<i;){let[e,n]=t.tag();switch(e){case 1:r=t.string();break;case 2:s=t.string();break;default:throw new globalThis.Error("unknown map entry field for com.hamropatro.sociallayer.io.PostDetail.metadata")}}e[r??""]=s??""}internalBinaryWrite(e,t,n){e.post&&ei.internalBinaryWrite(e.post,t.tag(1,d.O0.LengthDelimited).fork(),n).join(),""!==e.nextPageToken&&t.tag(4,d.O0.LengthDelimited).string(e.nextPageToken),""!==e.postOwnerId&&t.tag(5,d.O0.LengthDelimited).string(e.postOwnerId);for(let a=0;a<e.listOfReactedUsers.length;a++)D.g$.internalBinaryWrite(e.listOfReactedUsers[a],t.tag(6,d.O0.LengthDelimited).fork(),n).join();for(let n of globalThis.Object.keys(e.metadata))t.tag(7,d.O0.LengthDelimited).fork().tag(1,d.O0.LengthDelimited).string(n).tag(2,d.O0.LengthDelimited).string(e.metadata[n]).join();let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let ew=new ey;class ef extends p.G{constructor(){super("com.hamropatro.sociallayer.io.GetGroupPostsResponse",[{no:1,name:"post",kind:"message",repeat:2,T:()=>ei},{no:2,name:"next_page_token",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.post=[],t.nextPageToken="",void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();switch(t){case 1:i.post.push(ei.internalBinaryRead(e,e.uint32(),n));break;case 2:i.nextPageToken=e.string();break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){for(let a=0;a<e.post.length;a++)ei.internalBinaryWrite(e.post[a],t.tag(1,d.O0.LengthDelimited).fork(),n).join();""!==e.nextPageToken&&t.tag(2,d.O0.LengthDelimited).string(e.nextPageToken);let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let eb=new ef;class eT extends p.G{constructor(){super("com.hamropatro.sociallayer.io.UploadImageRequest",[{no:1,name:"location",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.location="",t.type="",void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;
1){let[t,a]=e.tag();switch(t){case 1:i.location=e.string();break;case 2:i.type=e.string();break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){""!==e.location&&t.tag(1,d.O0.LengthDelimited).string(e.location),""!==e.type&&t.tag(2,d.O0.LengthDelimited).string(e.type);let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let eO=new eT;class eI extends p.G{constructor(){super("com.hamropatro.sociallayer.io.UploadImageResponse",[{no:1,name:"uploading_url",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.uploadingUrl="",void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();if(1===t)i.uploadingUrl=e.string();else{let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){""!==e.uploadingUrl&&t.tag(1,d.O0.LengthDelimited).string(e.uploadingUrl);let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let e$=new eI;class eU extends p.G{constructor(){super("com.hamropatro.sociallayer.io.GetPostRequest",[{no:1,name:"group_id",kind:"scalar",T:9},{no:2,name:"post_id",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.groupId="",t.postId="",void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();switch(t){case 1:i.groupId=e.string();break;case 2:i.postId=e.string();break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){""!==e.groupId&&t.tag(1,d.O0.LengthDelimited).string(e.groupId),""!==e.postId&&t.tag(2,d.O0.LengthDelimited).string(e.postId);let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let eR=new eU;class eB extends p.G{constructor(){super("com.hamropatro.sociallayer.io.GetPostResponse",[{no:1,name:"post",kind:"message",T:()=>ei}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();if(1===t)i.post=ei.internalBinaryRead(e,e.uint32(),n,i.post);else{let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){e.post&&ei.internalBinaryWrite(e.post,t.tag(1,d.O0.LengthDelimited).fork(),n).join();let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let e_=new eB,eD=new c.C("com.hamropatro.sociallayer.io.PostService",[{name:"GetPostDetail",options:{},I:P,O:x},{name:"GetPostSummary",options:{},I:j,O:F},{name:"InsertContentMetaData",options:{},I:G,O:M},{name:"AddPost",options:{},I:ee,O:en},{name:"GetGroupPostsByCategory",options:{},I:el,O:eb},{name:"GetGroupPostById",options:{},I:ep,O:eh},{name:"GetGroupPosts",options:{},I:ed,O:ek},{name:"RemovePost",options:{},I:Y,O:J},{name:"UpdatePost",options:{},I:z,O:H},{name:"UploadImage",options:{},I:eO,O:e$},{name:"GetPostById",options:{},I:eR,O:e_}]);class eL{constructor(e){this._transport=e,this.typeName=eD.typeName,this.methods=eD.methods,this.options=eD.options}getPostDetail(e,t){let n=this.methods[0],a=this._transport.mergeOptions(t);return(0,r.hP)("unary",this._transport,n,a,e)}getPostSummary(e,t){let n=this.methods[1],a=this._transport.mergeOptions(t);return(0,r.hP)("unary",this._transport,n,a,e)}insertContentMetaData(e,t){let n=this.methods[2],a=this._transport.mergeOptions(t);return(0,r.hP)("unary",this._transport,n,a,e)}addPost(e,t){let n=this.methods[3],a=this._transport.mergeOptions(t);return(0,r.hP)("unary",this._transport,n,a,e)}
1getGroupPostsByCategory(e,t){let n=this.methods[4],a=this._transport.mergeOptions(t);return(0,r.hP)("unary",this._transport,n,a,e)}getGroupPostById(e,t){let n=this.methods[5],a=this._transport.mergeOptions(t);return(0,r.hP)("unary",this._transport,n,a,e)}getGroupPosts(e,t){let n=this.methods[6],a=this._transport.mergeOptions(t);return(0,r.hP)("unary",this._transport,n,a,e)}removePost(e,t){let n=this.methods[7],a=this._transport.mergeOptions(t);return(0,r.hP)("unary",this._transport,n,a,e)}updatePost(e,t){let n=this.methods[8],a=this._transport.mergeOptions(t);return(0,r.hP)("unary",this._transport,n,a,e)}uploadImage(e,t){let n=this.methods[9],a=this._transport.mergeOptions(t);return(0,r.hP)("unary",this._transport,n,a,e)}getPostById(e,t){let n=this.methods[10],a=this._transport.mergeOptions(t);return(0,r.hP)("unary",this._transport,n,a,e)}}class eN extends p.G{constructor(){super("com.hamropatro.sociallayer.io.ViewContentRequest",[{no:1,name:"post_uri",kind:"scalar",T:9},{no:2,name:"account_id",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.postUri="",t.accountId="",void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();switch(t){case 1:i.postUri=e.string();break;case 2:i.accountId=e.string();break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){""!==e.postUri&&t.tag(1,d.O0.LengthDelimited).string(e.postUri),""!==e.accountId&&t.tag(2,d.O0.LengthDelimited).string(e.accountId);let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let eP=new eN;class eW extends p.G{constructor(){super("com.hamropatro.sociallayer.io.ViewContentResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();{let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let ex=new eW;class eE extends p.G{constructor(){super("com.hamropatro.sociallayer.io.ReactOnContentRequest",[{no:1,name:"reaction",kind:"message",T:()=>D.qT},{no:2,name:"business_account_info",kind:"message",T:()=>D.g$}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();switch(t){case 1:i.reaction=D.qT.internalBinaryRead(e,e.uint32(),n,i.reaction);break;case 2:i.businessAccountInfo=D.g$.internalBinaryRead(e,e.uint32(),n,i.businessAccountInfo);break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){e.reaction&&D.qT.internalBinaryWrite(e.reaction,t.tag(1,d.O0.LengthDelimited).fork(),n).join(),e.businessAccountInfo&&D.g$.internalBinaryWrite(e.businessAccountInfo,t.tag(2,d.O0.LengthDelimited).fork(),n).join();let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let ej=new eE;class eC extends p.G{constructor(){super("com.hamropatro.sociallayer.io.ReactOnContentResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();{let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let eF=new eC;class ev extends p.G{constructor(){super("com.hamropatro.sociallayer.io.GetReactionCountRequest",[{no:1,name:"post_uri",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.postUri="",void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;
1){let[t,a]=e.tag();if(1===t)i.postUri=e.string();else{let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){""!==e.postUri&&t.tag(1,d.O0.LengthDelimited).string(e.postUri);let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let eA=new ev;class eV extends p.G{constructor(){super("com.hamropatro.sociallayer.io.GetReactionCountResponse",[{no:2,name:"post_uri",kind:"scalar",T:9},{no:3,name:"likes",kind:"scalar",T:4,L:0},{no:4,name:"dislikes",kind:"scalar",T:4,L:0},{no:5,name:"views",kind:"scalar",T:4,L:0},{no:6,name:"unique_views",kind:"scalar",T:4,L:0},{no:7,name:"total_comments",kind:"scalar",T:4,L:0},{no:8,name:"approved_comments",kind:"scalar",T:4,L:0},{no:9,name:"spam_comments",kind:"scalar",T:4,L:0},{no:10,name:"reaction_type",kind:"enum",T:()=>["com.hamropatro.sociallayer.io.ReactionType",D.o]},{no:11,name:"post_owner_business_id",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.postUri="",t.likes=0n,t.dislikes=0n,t.views=0n,t.uniqueViews=0n,t.totalComments=0n,t.approvedComments=0n,t.spamComments=0n,t.reactionType=0,t.postOwnerBusinessId="",void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();switch(t){case 2:i.postUri=e.string();break;case 3:i.likes=e.uint64().toBigInt();break;case 4:i.dislikes=e.uint64().toBigInt();break;case 5:i.views=e.uint64().toBigInt();break;case 6:i.uniqueViews=e.uint64().toBigInt();break;case 7:i.totalComments=e.uint64().toBigInt();break;case 8:i.approvedComments=e.uint64().toBigInt();break;case 9:i.spamComments=e.uint64().toBigInt();break;case 10:i.reactionType=e.int32();break;case 11:i.postOwnerBusinessId=e.string();break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){""!==e.postUri&&t.tag(2,d.O0.LengthDelimited).string(e.postUri),0n!==e.likes&&t.tag(3,d.O0.Varint).uint64(e.likes),0n!==e.dislikes&&t.tag(4,d.O0.Varint).uint64(e.dislikes),0n!==e.views&&t.tag(5,d.O0.Varint).uint64(e.views),0n!==e.uniqueViews&&t.tag(6,d.O0.Varint).uint64(e.uniqueViews),0n!==e.totalComments&&t.tag(7,d.O0.Varint).uint64(e.totalComments),0n!==e.approvedComments&&t.tag(8,d.O0.Varint).uint64(e.approvedComments),0n!==e.spamComments&&t.tag(9,d.O0.Varint).uint64(e.spamComments),0!==e.reactionType&&t.tag(10,d.O0.Varint).int32(e.reactionType),""!==e.postOwnerBusinessId&&t.tag(11,d.O0.LengthDelimited).string(e.postOwnerBusinessId);let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let eG=new eV,eS=new c.C("com.hamropatro.sociallayer.io.ReactionService",[{name:"ViewContent",options:{},I:eP,O:ex},{name:"ReactOnContent",options:{},I:ej,O:eF},{name:"GetReactionCount",options:{},I:eA,O:eG}]);class eM{constructor(e){this._transport=e,this.typeName=eS.typeName,this.methods=eS.methods,this.options=eS.options}viewContent(e,t){let n=this.methods[0],a=this._transport.mergeOptions(t);return(0,r.hP)("unary",this._transport,n,a,e)}reactOnContent(e,t){let n=this.methods[1],a=this._transport.mergeOptions(t);return(0,r.hP)("unary",this._transport,n,a,e)}getReactionCount(e,t){let n=this.methods[2],a=this._transport.mergeOptions(t);return(0,r.hP)("unary",this._transport,n,a,e)}}class eq extends p.G{constructor(){super("com.hamropatro.sociallayer.io.ContentUserReactionInfoRequest",[{no:1,name:"contentId",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:()=>["com.hamropatro.sociallayer.io.ReactionType",D.o]},{no:3,name:"pagesize",kind:"scalar",T:13},{no:4,name:"cursor",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.contentId="",t.type=0,t.pagesize=0,t.cursor="",void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;
1){let[t,a]=e.tag();switch(t){case 1:i.contentId=e.string();break;case 2:i.type=e.int32();break;case 3:i.pagesize=e.uint32();break;case 4:i.cursor=e.string();break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){""!==e.contentId&&t.tag(1,d.O0.LengthDelimited).string(e.contentId),0!==e.type&&t.tag(2,d.O0.Varint).int32(e.type),0!==e.pagesize&&t.tag(3,d.O0.Varint).uint32(e.pagesize),""!==e.cursor&&t.tag(4,d.O0.LengthDelimited).string(e.cursor);let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let ez=new eq;class eK extends p.G{constructor(){super("com.hamropatro.sociallayer.io.ContentUserReactionInfoResponse",[{no:1,name:"contentUserReactionInfo",kind:"message",repeat:2,T:()=>eY},{no:2,name:"next_page_token",kind:"scalar",T:9},{no:3,name:"content_id",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.contentUserReactionInfo=[],t.nextPageToken="",t.contentId="",void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();switch(t){case 1:i.contentUserReactionInfo.push(eY.internalBinaryRead(e,e.uint32(),n));break;case 2:i.nextPageToken=e.string();break;case 3:i.contentId=e.string();break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){for(let a=0;a<e.contentUserReactionInfo.length;a++)eY.internalBinaryWrite(e.contentUserReactionInfo[a],t.tag(1,d.O0.LengthDelimited).fork(),n).join();""!==e.nextPageToken&&t.tag(2,d.O0.LengthDelimited).string(e.nextPageToken),""!==e.contentId&&t.tag(3,d.O0.LengthDelimited).string(e.contentId);let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let eH=new eK;class eX extends p.G{constructor(){super("com.hamropatro.sociallayer.io.ContentUserReactionInfo",[{no:1,name:"appId",kind:"scalar",T:9},{no:3,name:"accountId",kind:"scalar",T:9},{no:4,name:"reactionType",kind:"enum",T:()=>["com.hamropatro.sociallayer.io.ReactionType",D.o]},{no:5,name:"time",kind:"scalar",T:4,L:0},{no:6,name:"reactionUserInfo",kind:"message",T:()=>D.g$},{no:7,name:"summary",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.appId="",t.accountId="",t.reactionType=0,t.time=0n,t.summary="",void 0!==e&&(0,m.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let i=a??this.create(),r=e.pos+t;for(;e.pos<r;){let[t,a]=e.tag();switch(t){case 1:i.appId=e.string();break;case 3:i.accountId=e.string();break;case 4:i.reactionType=e.int32();break;case 5:i.time=e.uint64().toBigInt();break;case 6:i.reactionUserInfo=D.g$.internalBinaryRead(e,e.uint32(),n,i.reactionUserInfo);break;case 7:i.summary=e.string();break;default:let r=n.readUnknownField;if("throw"===r)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let s=e.skip(a);!1!==r&&(!0===r?d.f$.onRead:r)(this.typeName,i,t,a,s)}}return i}internalBinaryWrite(e,t,n){""!==e.appId&&t.tag(1,d.O0.LengthDelimited).string(e.appId),""!==e.accountId&&t.tag(3,d.O0.LengthDelimited).string(e.accountId),0!==e.reactionType&&t.tag(4,d.O0.Varint).int32(e.reactionType),0n!==e.time&&t.tag(5,d.O0.Varint).uint64(e.time),e.reactionUserInfo&&D.g$.internalBinaryWrite(e.reactionUserInfo,t.tag(6,d.O0.LengthDelimited).fork(),n).join(),""!==e.summary&&t.tag(7,d.O0.LengthDelimited).string(e.summary);let a=n.writeUnknownFields;return!1!==a&&(!0==a?d.f$.onWrite:a)(this.typeName,e,t),t}}let eY=new eX,eQ=new c.C("com.hamropatro.sociallayer.io.ContentToUserReactionInfoService",[{name:"GetContentUserReactionInfo",options:{},I:ez,O:eH}]);class eJ{constructor(e){this._transport=e,this.typeName=eQ.typeName,this.methods=eQ.methods,this.options=eQ.options}getContentUserReactionInfo(e,t){let n=this.methods[0],a=this._transport.mergeOptions(t);return(0,r.hP)("unary",this._transport,n,a,e)}}var eZ=n(95704);let e0=eZ.env.HP_API_URL_COMMENTING_SYSTEM??"https://everestbackend.hamropatro.com",e1=new a.g({baseUrl:e0,timeout:8e3}),e2=new s(e1),e3=new l(e1),e4=new eL(e1),e9=new eM(e1),e6=new eJ(e1),e5=eZ.env.NEXT_PUBLIC_HP_USER_SERVICE_URL??"https://page-api-grpc.hamropatro.com/",e7=new _(new a.g({baseUrl:e5,timeout:8e3}
1)),e8={"app-id":eZ.env.NEXT_PUBLIC_EVEREST_APP_ID??eZ.env.HP_GRPC_METADATA_APP_ID??"hamropatro","api-key":eZ.env.NEXT_PUBLIC_HP_SOCIAL_API_KEY??eZ.env.HP_SOCIAL_API_KEY??"EeEf8dDr9kyF95FyKW6SNCAj"}},16769:(e,t,n)=>{n.d(t,{H6:()=>l,jr:()=>W});var a=n(11150),i=n(7957),r=n(77265),s=n(63098),o=n(42341),l=function(e){return e[e.APPROVED=0]="APPROVED",e[e.ACTIVE=1]="ACTIVE",e[e.BLOCKED=2]="BLOCKED",e[e.PENDING=3]="PENDING",e}({});class c extends s.G{constructor(){super("com.hamropatro.sociallayer.io.CommentOnContentRequest",[{no:1,name:"post_uri",kind:"scalar",T:9},{no:2,name:"comment_id",kind:"scalar",T:9},{no:3,name:"account_info",kind:"message",T:()=>o.g$},{no:4,name:"comment",kind:"message",T:()=>o.HH},{no:5,name:"comment_type",kind:"enum",T:()=>["com.hamropatro.sociallayer.io.MessageType",o.Go]},{no:6,name:"business_account_info",kind:"message",T:()=>o.g$}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.postUri="",t.commentId="",t.commentType=0,void 0!==e&&(0,r.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let r=a??this.create(),s=e.pos+t;for(;e.pos<s;){let[t,a]=e.tag();switch(t){case 1:r.postUri=e.string();break;case 2:r.commentId=e.string();break;case 3:r.accountInfo=o.g$.internalBinaryRead(e,e.uint32(),n,r.accountInfo);break;case 4:r.comment=o.HH.internalBinaryRead(e,e.uint32(),n,r.comment);break;case 5:r.commentType=e.int32();break;case 6:r.businessAccountInfo=o.g$.internalBinaryRead(e,e.uint32(),n,r.businessAccountInfo);break;default:let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let l=e.skip(a);!1!==s&&(!0===s?i.f$.onRead:s)(this.typeName,r,t,a,l)}}return r}internalBinaryWrite(e,t,n){""!==e.postUri&&t.tag(1,i.O0.LengthDelimited).string(e.postUri),""!==e.commentId&&t.tag(2,i.O0.LengthDelimited).string(e.commentId),e.accountInfo&&o.g$.internalBinaryWrite(e.accountInfo,t.tag(3,i.O0.LengthDelimited).fork(),n).join(),e.comment&&o.HH.internalBinaryWrite(e.comment,t.tag(4,i.O0.LengthDelimited).fork(),n).join(),0!==e.commentType&&t.tag(5,i.O0.Varint).int32(e.commentType),e.businessAccountInfo&&o.g$.internalBinaryWrite(e.businessAccountInfo,t.tag(6,i.O0.LengthDelimited).fork(),n).join();let a=n.writeUnknownFields;return!1!==a&&(!0==a?i.f$.onWrite:a)(this.typeName,e,t),t}}let d=new c;class m extends s.G{constructor(){super("com.hamropatro.sociallayer.io.CommentOnContentResponse",[{no:1,name:"app_id",kind:"scalar",T:9},{no:2,name:"post_uri",kind:"scalar",T:9},{no:3,name:"comment_id",kind:"scalar",T:9},{no:4,name:"account_info",kind:"message",T:()=>o.g$},{no:5,name:"business_account_info",kind:"message",T:()=>o.g$},{no:6,name:"post_owner_business_id",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.appId="",t.postUri="",t.commentId="",t.postOwnerBusinessId="",void 0!==e&&(0,r.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let r=a??this.create(),s=e.pos+t;for(;e.pos<s;){let[t,a]=e.tag();switch(t){case 1:r.appId=e.string();break;case 2:r.postUri=e.string();break;case 3:r.commentId=e.string();break;case 4:r.accountInfo=o.g$.internalBinaryRead(e,e.uint32(),n,r.accountInfo);break;case 5:r.businessAccountInfo=o.g$.internalBinaryRead(e,e.uint32(),n,r.businessAccountInfo);break;case 6:r.postOwnerBusinessId=e.string();break;default:let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let l=e.skip(a);!1!==s&&(!0===s?i.f$.onRead:s)(this.typeName,r,t,a,l)}}return r}internalBinaryWrite(e,t,n){""!==e.appId&&t.tag(1,i.O0.LengthDelimited).string(e.appId),""!==e.postUri&&t.tag(2,i.O0.LengthDelimited).string(e.postUri),""!==e.commentId&&t.tag(3,i.O0.LengthDelimited).string(e.commentId),e.accountInfo&&o.g$.internalBinaryWrite(e.accountInfo,t.tag(4,i.O0.LengthDelimited).fork(),n).join(),e.businessAccountInfo&&o.g$.internalBinaryWrite(e.businessAccountInfo,t.tag(5,i.O0.LengthDelimited).fork(),n).join(),""!==e.postOwnerBusinessId&&t.tag(6,i.O0.LengthDelimited).string(e.postOwnerBusinessId);let a=n.writeUnknownFields;return!1!==a&&(!0==a?i.f$.onWrite:a)(this.typeName,e,t),t}}let p=new m;class g extends s.G{constructor(){super("com.hamropatro.sociallayer.io.ReactOnCommentRequest",[{no:1,name:"post_uri",kind:"scalar",T:9},{no:2,name:"comment_id",kind:"scalar",T:9},{no:3,name:"account_id",kind:"scalar",T:9},{no:4,name:"reaction_type",kind:"enum",T:()=>["com.hamropatro.sociallayer.io.ReactionType",o.o]},{no:5,name:"business_account_info",kind:"message",T:()=>o.g$}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.postUri="",t.commentId="",t.accountId="",t.reactionType=0,void 0!==e&&(0,r.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let r=a??this.create(),s=e.pos+t;for(;e.pos<s;
1){let[t,a]=e.tag();switch(t){case 1:r.postUri=e.string();break;case 2:r.commentId=e.string();break;case 3:r.accountId=e.string();break;case 4:r.reactionType=e.int32();break;case 5:r.businessAccountInfo=o.g$.internalBinaryRead(e,e.uint32(),n,r.businessAccountInfo);break;default:let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let l=e.skip(a);!1!==s&&(!0===s?i.f$.onRead:s)(this.typeName,r,t,a,l)}}return r}internalBinaryWrite(e,t,n){""!==e.postUri&&t.tag(1,i.O0.LengthDelimited).string(e.postUri),""!==e.commentId&&t.tag(2,i.O0.LengthDelimited).string(e.commentId),""!==e.accountId&&t.tag(3,i.O0.LengthDelimited).string(e.accountId),0!==e.reactionType&&t.tag(4,i.O0.Varint).int32(e.reactionType),e.businessAccountInfo&&o.g$.internalBinaryWrite(e.businessAccountInfo,t.tag(5,i.O0.LengthDelimited).fork(),n).join();let a=n.writeUnknownFields;return!1!==a&&(!0==a?i.f$.onWrite:a)(this.typeName,e,t),t}}let h=new g;class u extends s.G{constructor(){super("com.hamropatro.sociallayer.io.ReactOnCommentResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&(0,r.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let r=a??this.create(),s=e.pos+t;for(;e.pos<s;){let[t,a]=e.tag();{let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==s&&(!0===s?i.f$.onRead:s)(this.typeName,r,t,a,o)}}return r}internalBinaryWrite(e,t,n){let a=n.writeUnknownFields;return!1!==a&&(!0==a?i.f$.onWrite:a)(this.typeName,e,t),t}}let k=new u;class y extends s.G{constructor(){super("com.hamropatro.sociallayer.io.DeleteCommentRequest",[{no:1,name:"post_uri",kind:"scalar",T:9},{no:2,name:"comment_id",kind:"scalar",T:9},{no:3,name:"status",kind:"enum",T:()=>["com.hamropatro.sociallayer.io.DeleteCommentRequest.Status",l]},{no:4,name:"account_id",kind:"scalar",T:9},{no:5,name:"business_account_info",kind:"message",T:()=>o.g$}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.postUri="",t.commentId="",t.status=0,t.accountId="",void 0!==e&&(0,r.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let r=a??this.create(),s=e.pos+t;for(;e.pos<s;){let[t,a]=e.tag();switch(t){case 1:r.postUri=e.string();break;case 2:r.commentId=e.string();break;case 3:r.status=e.int32();break;case 4:r.accountId=e.string();break;case 5:r.businessAccountInfo=o.g$.internalBinaryRead(e,e.uint32(),n,r.businessAccountInfo);break;default:let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let l=e.skip(a);!1!==s&&(!0===s?i.f$.onRead:s)(this.typeName,r,t,a,l)}}return r}internalBinaryWrite(e,t,n){""!==e.postUri&&t.tag(1,i.O0.LengthDelimited).string(e.postUri),""!==e.commentId&&t.tag(2,i.O0.LengthDelimited).string(e.commentId),0!==e.status&&t.tag(3,i.O0.Varint).int32(e.status),""!==e.accountId&&t.tag(4,i.O0.LengthDelimited).string(e.accountId),e.businessAccountInfo&&o.g$.internalBinaryWrite(e.businessAccountInfo,t.tag(5,i.O0.LengthDelimited).fork(),n).join();let a=n.writeUnknownFields;return!1!==a&&(!0==a?i.f$.onWrite:a)(this.typeName,e,t),t}}let w=new y;class f extends s.G{constructor(){super("com.hamropatro.sociallayer.io.DeleteCommentResponse",[{no:1,name:"app_id",kind:"scalar",T:9},{no:2,name:"post_uri",kind:"scalar",T:9},{no:3,name:"comment_id",kind:"scalar",T:9},{no:4,name:"post_owner_business_id",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.appId="",t.postUri="",t.commentId="",t.postOwnerBusinessId="",void 0!==e&&(0,r.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let r=a??this.create(),s=e.pos+t;for(;e.pos<s;){let[t,a]=e.tag();switch(t){case 1:r.appId=e.string();break;case 2:r.postUri=e.string();break;case 3:r.commentId=e.string();break;case 4:r.postOwnerBusinessId=e.string();break;default:let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==s&&(!0===s?i.f$.onRead:s)(this.typeName,r,t,a,o)}}return r}internalBinaryWrite(e,t,n){""!==e.appId&&t.tag(1,i.O0.LengthDelimited).string(e.appId),""!==e.postUri&&t.tag(2,i.O0.LengthDelimited).string(e.postUri),""!==e.commentId&&t.tag(3,i.O0.LengthDelimited).string(e.commentId),""!==e.postOwnerBusinessId&&t.tag(4,i.O0.LengthDelimited).string(e.postOwnerBusinessId);let a=n.writeUnknownFields;return!1!==a&&(!0==a?i.f$.onWrite:a)(this.typeName,e,t),t}}let b=new f;class T extends s.G{constructor(){super("com.hamropatro.sociallayer.io.ListCommentsRequest",[{no:1,name:"post_uri",kind:"scalar",T:9},{no:2,name:"page_size",kind:"scalar",T:13},{no:3,name:"page_token",kind:"scalar",T:9},{no:4,name:"business_account_info",kind:"message",T:()=>o.g$}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.postUri="",t.pageSize=0,t.pageToken="",void 0!==e&&(0,r.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let r=a??this.create(),s=e.pos+t;for(;e.pos<s;
1){let[t,a]=e.tag();switch(t){case 1:r.postUri=e.string();break;case 2:r.pageSize=e.uint32();break;case 3:r.pageToken=e.string();break;case 4:r.businessAccountInfo=o.g$.internalBinaryRead(e,e.uint32(),n,r.businessAccountInfo);break;default:let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let l=e.skip(a);!1!==s&&(!0===s?i.f$.onRead:s)(this.typeName,r,t,a,l)}}return r}internalBinaryWrite(e,t,n){""!==e.postUri&&t.tag(1,i.O0.LengthDelimited).string(e.postUri),0!==e.pageSize&&t.tag(2,i.O0.Varint).uint32(e.pageSize),""!==e.pageToken&&t.tag(3,i.O0.LengthDelimited).string(e.pageToken),e.businessAccountInfo&&o.g$.internalBinaryWrite(e.businessAccountInfo,t.tag(4,i.O0.LengthDelimited).fork(),n).join();let a=n.writeUnknownFields;return!1!==a&&(!0==a?i.f$.onWrite:a)(this.typeName,e,t),t}}let O=new T;class I extends s.G{constructor(){super("com.hamropatro.sociallayer.io.ListCommentsResponse",[{no:1,name:"app_id",kind:"scalar",T:9},{no:2,name:"post_uri",kind:"scalar",T:9},{no:3,name:"comments",kind:"message",repeat:2,T:()=>o.X6},{no:4,name:"next_page_token",kind:"scalar",T:9},{no:5,name:"business_account_info",kind:"message",T:()=>o.g$},{no:6,name:"post_owner_business_id",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.appId="",t.postUri="",t.comments=[],t.nextPageToken="",t.postOwnerBusinessId="",void 0!==e&&(0,r.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let r=a??this.create(),s=e.pos+t;for(;e.pos<s;){let[t,a]=e.tag();switch(t){case 1:r.appId=e.string();break;case 2:r.postUri=e.string();break;case 3:r.comments.push(o.X6.internalBinaryRead(e,e.uint32(),n));break;case 4:r.nextPageToken=e.string();break;case 5:r.businessAccountInfo=o.g$.internalBinaryRead(e,e.uint32(),n,r.businessAccountInfo);break;case 6:r.postOwnerBusinessId=e.string();break;default:let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let l=e.skip(a);!1!==s&&(!0===s?i.f$.onRead:s)(this.typeName,r,t,a,l)}}return r}internalBinaryWrite(e,t,n){""!==e.appId&&t.tag(1,i.O0.LengthDelimited).string(e.appId),""!==e.postUri&&t.tag(2,i.O0.LengthDelimited).string(e.postUri);for(let a=0;a<e.comments.length;a++)o.X6.internalBinaryWrite(e.comments[a],t.tag(3,i.O0.LengthDelimited).fork(),n).join();""!==e.nextPageToken&&t.tag(4,i.O0.LengthDelimited).string(e.nextPageToken),e.businessAccountInfo&&o.g$.internalBinaryWrite(e.businessAccountInfo,t.tag(5,i.O0.LengthDelimited).fork(),n).join(),""!==e.postOwnerBusinessId&&t.tag(6,i.O0.LengthDelimited).string(e.postOwnerBusinessId);let a=n.writeUnknownFields;return!1!==a&&(!0==a?i.f$.onWrite:a)(this.typeName,e,t),t}}let $=new I;class U extends s.G{constructor(){super("com.hamropatro.sociallayer.io.SpamCommentRequest",[{no:1,name:"post_uri",kind:"scalar",T:9},{no:2,name:"comment_id",kind:"scalar",T:9},{no:3,name:"owner_id",kind:"scalar",T:9},{no:4,name:"account_id",kind:"scalar",T:9},{no:5,name:"account_type",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.postUri="",t.commentId="",t.ownerId="",t.accountId="",t.accountType="",void 0!==e&&(0,r.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let r=a??this.create(),s=e.pos+t;for(;e.pos<s;){let[t,a]=e.tag();switch(t){case 1:r.postUri=e.string();break;case 2:r.commentId=e.string();break;case 3:r.ownerId=e.string();break;case 4:r.accountId=e.string();break;case 5:r.accountType=e.string();break;default:let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==s&&(!0===s?i.f$.onRead:s)(this.typeName,r,t,a,o)}}return r}internalBinaryWrite(e,t,n){""!==e.postUri&&t.tag(1,i.O0.LengthDelimited).string(e.postUri),""!==e.commentId&&t.tag(2,i.O0.LengthDelimited).string(e.commentId),""!==e.ownerId&&t.tag(3,i.O0.LengthDelimited).string(e.ownerId),""!==e.accountId&&t.tag(4,i.O0.LengthDelimited).string(e.accountId),""!==e.accountType&&t.tag(5,i.O0.LengthDelimited).string(e.accountType);let a=n.writeUnknownFields;return!1!==a&&(!0==a?i.f$.onWrite:a)(this.typeName,e,t),t}}let R=new U;class B extends s.G{constructor(){super("com.hamropatro.sociallayer.io.SpamCommentResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&(0,r.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let r=a??this.create(),s=e.pos+t;for(;e.pos<s;
1){let[t,a]=e.tag();{let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==s&&(!0===s?i.f$.onRead:s)(this.typeName,r,t,a,o)}}return r}internalBinaryWrite(e,t,n){let a=n.writeUnknownFields;return!1!==a&&(!0==a?i.f$.onWrite:a)(this.typeName,e,t),t}}let _=new B;class D extends s.G{constructor(){super("com.hamropatro.sociallayer.io.GetCommentRequest",[{no:1,name:"post_uri",kind:"scalar",T:9},{no:2,name:"comment_id",kind:"scalar",T:9},{no:3,name:"business_account_info",kind:"message",T:()=>o.g$}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.postUri="",t.commentId="",void 0!==e&&(0,r.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let r=a??this.create(),s=e.pos+t;for(;e.pos<s;){let[t,a]=e.tag();switch(t){case 1:r.postUri=e.string();break;case 2:r.commentId=e.string();break;case 3:r.businessAccountInfo=o.g$.internalBinaryRead(e,e.uint32(),n,r.businessAccountInfo);break;default:let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let l=e.skip(a);!1!==s&&(!0===s?i.f$.onRead:s)(this.typeName,r,t,a,l)}}return r}internalBinaryWrite(e,t,n){""!==e.postUri&&t.tag(1,i.O0.LengthDelimited).string(e.postUri),""!==e.commentId&&t.tag(2,i.O0.LengthDelimited).string(e.commentId),e.businessAccountInfo&&o.g$.internalBinaryWrite(e.businessAccountInfo,t.tag(3,i.O0.LengthDelimited).fork(),n).join();let a=n.writeUnknownFields;return!1!==a&&(!0==a?i.f$.onWrite:a)(this.typeName,e,t),t}}let L=new D;class N extends s.G{constructor(){super("com.hamropatro.sociallayer.io.GetCommentResponse",[{no:1,name:"commentDetail",kind:"message",T:()=>o.NH},{no:2,name:"postOwnerBusinessId",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.postOwnerBusinessId="",void 0!==e&&(0,r.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let r=a??this.create(),s=e.pos+t;for(;e.pos<s;){let[t,a]=e.tag();switch(t){case 1:r.commentDetail=o.NH.internalBinaryRead(e,e.uint32(),n,r.commentDetail);break;case 2:r.postOwnerBusinessId=e.string();break;default:let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let l=e.skip(a);!1!==s&&(!0===s?i.f$.onRead:s)(this.typeName,r,t,a,l)}}return r}internalBinaryWrite(e,t,n){e.commentDetail&&o.NH.internalBinaryWrite(e.commentDetail,t.tag(1,i.O0.LengthDelimited).fork(),n).join(),""!==e.postOwnerBusinessId&&t.tag(2,i.O0.LengthDelimited).string(e.postOwnerBusinessId);let a=n.writeUnknownFields;return!1!==a&&(!0==a?i.f$.onWrite:a)(this.typeName,e,t),t}}let P=new N,W=new a.C("com.hamropatro.sociallayer.io.CommentService",[{name:"CommentOnContent",options:{},I:d,O:p},{name:"ReactOnComment",options:{},I:h,O:k},{name:"DeleteComment",options:{},I:w,O:b},{name:"ListComments",options:{},I:O,O:$},{name:"SpamComment",options:{},I:R,O:_},{name:"GetComment",options:{},I:L,O:P}])},22813:(e,t,n)=>{n.d(t,{BackHome:()=>c});var a=n(95155),i=n(52619),r=n.n(i),s=n(20063),o=n(35626),l=n(6955);function c({title:e}){let t=(0,s.usePathname)()||"/",n="/en"===t||t.startsWith("/en/"),i=(n?t.replace(/^\/en/,""):t)||"/";return"/"===i||"/calendar"===i||i.startsWith("/calendar/")?null:(0,a.jsxs)(r(),{href:(0,l.MF)(n?"en":"np","/"),"aria-label":n?"Back to home":"गृहपृष्ठमा फर्कनुहोस्",className:"group mb-3 inline-flex items-center gap-2 text-text-primary outline-none lg:hidden",children:[(0,a.jsx)("span",{className:"inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-full border border-border text-text-secondary transition-colors group-hover:border-primary group-hover:text-primary group-focus-visible:ring-2 group-focus-visible:ring-primary",children:(0,a.jsx)(o.A,{className:"h-5 w-5","aria-hidden":"true"})}),e&&(0,a.jsx)("span",{className:"min-w-0 truncate font-np text-title-md font-bold",children:e})]})}},31892:(e,t,n)=>{n.d(t,{Fe:()=>l,qT:()=>W});var a=n(11150),i=n(7957),r=n(77265),s=n(63098),o=n(42341),l=function(e){return e[e.APPROVED=0]="APPROVED",e[e.ACTIVE=1]="ACTIVE",e[e.BLOCKED=2]="BLOCKED",e[e.PENDING=3]="PENDING",e}({});class c extends s.G{constructor(){super("com.hamropatro.sociallayer.io.GetReplyRequest",[{no:1,name:"post_uri",kind:"scalar",T:9},{no:2,name:"comment_id",kind:"scalar",T:9},{no:3,name:"reply_id",kind:"scalar",T:9},{no:4,name:"account_info",kind:"message",T:()=>o.g$},{no:5,name:"business_account_info",kind:"message",T:()=>o.g$}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.postUri="",t.commentId="",t.replyId="",void 0!==e&&(0,r.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let r=a??this.create(),s=e.pos+t;for(;e.pos<s;
1){let[t,a]=e.tag();switch(t){case 1:r.postUri=e.string();break;case 2:r.commentId=e.string();break;case 3:r.replyId=e.string();break;case 4:r.accountInfo=o.g$.internalBinaryRead(e,e.uint32(),n,r.accountInfo);break;case 5:r.businessAccountInfo=o.g$.internalBinaryRead(e,e.uint32(),n,r.businessAccountInfo);break;default:let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let l=e.skip(a);!1!==s&&(!0===s?i.f$.onRead:s)(this.typeName,r,t,a,l)}}return r}internalBinaryWrite(e,t,n){""!==e.postUri&&t.tag(1,i.O0.LengthDelimited).string(e.postUri),""!==e.commentId&&t.tag(2,i.O0.LengthDelimited).string(e.commentId),""!==e.replyId&&t.tag(3,i.O0.LengthDelimited).string(e.replyId),e.accountInfo&&o.g$.internalBinaryWrite(e.accountInfo,t.tag(4,i.O0.LengthDelimited).fork(),n).join(),e.businessAccountInfo&&o.g$.internalBinaryWrite(e.businessAccountInfo,t.tag(5,i.O0.LengthDelimited).fork(),n).join();let a=n.writeUnknownFields;return!1!==a&&(!0==a?i.f$.onWrite:a)(this.typeName,e,t),t}}let d=new c;class m extends s.G{constructor(){super("com.hamropatro.sociallayer.io.GetReplyResponse",[{no:1,name:"userReply",kind:"message",T:()=>o.CD},{no:2,name:"postOwnerId",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.postOwnerId="",void 0!==e&&(0,r.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let r=a??this.create(),s=e.pos+t;for(;e.pos<s;){let[t,a]=e.tag();switch(t){case 1:r.userReply=o.CD.internalBinaryRead(e,e.uint32(),n,r.userReply);break;case 2:r.postOwnerId=e.string();break;default:let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let l=e.skip(a);!1!==s&&(!0===s?i.f$.onRead:s)(this.typeName,r,t,a,l)}}return r}internalBinaryWrite(e,t,n){e.userReply&&o.CD.internalBinaryWrite(e.userReply,t.tag(1,i.O0.LengthDelimited).fork(),n).join(),""!==e.postOwnerId&&t.tag(2,i.O0.LengthDelimited).string(e.postOwnerId);let a=n.writeUnknownFields;return!1!==a&&(!0==a?i.f$.onWrite:a)(this.typeName,e,t),t}}let p=new m;class g extends s.G{constructor(){super("com.hamropatro.sociallayer.io.ReplyOnCommentRequest",[{no:2,name:"post_uri",kind:"scalar",T:9},{no:3,name:"comment_id",kind:"scalar",T:9},{no:4,name:"reply_id",kind:"scalar",T:9},{no:5,name:"account_info",kind:"message",T:()=>o.g$},{no:6,name:"reply",kind:"message",T:()=>o.O3},{no:7,name:"reply_type",kind:"enum",T:()=>["com.hamropatro.sociallayer.io.MessageType",o.Go]},{no:8,name:"business_account_info",kind:"message",T:()=>o.g$}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.postUri="",t.commentId="",t.replyId="",t.replyType=0,void 0!==e&&(0,r.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let r=a??this.create(),s=e.pos+t;for(;e.pos<s;){let[t,a]=e.tag();switch(t){case 2:r.postUri=e.string();break;case 3:r.commentId=e.string();break;case 4:r.replyId=e.string();break;case 5:r.accountInfo=o.g$.internalBinaryRead(e,e.uint32(),n,r.accountInfo);break;case 6:r.reply=o.O3.internalBinaryRead(e,e.uint32(),n,r.reply);break;case 7:r.replyType=e.int32();break;case 8:r.businessAccountInfo=o.g$.internalBinaryRead(e,e.uint32(),n,r.businessAccountInfo);break;default:let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let l=e.skip(a);!1!==s&&(!0===s?i.f$.onRead:s)(this.typeName,r,t,a,l)}}return r}internalBinaryWrite(e,t,n){""!==e.postUri&&t.tag(2,i.O0.LengthDelimited).string(e.postUri),""!==e.commentId&&t.tag(3,i.O0.LengthDelimited).string(e.commentId),""!==e.replyId&&t.tag(4,i.O0.LengthDelimited).string(e.replyId),e.accountInfo&&o.g$.internalBinaryWrite(e.accountInfo,t.tag(5,i.O0.LengthDelimited).fork(),n).join(),e.reply&&o.O3.internalBinaryWrite(e.reply,t.tag(6,i.O0.LengthDelimited).fork(),n).join(),0!==e.replyType&&t.tag(7,i.O0.Varint).int32(e.replyType),e.businessAccountInfo&&o.g$.internalBinaryWrite(e.businessAccountInfo,t.tag(8,i.O0.LengthDelimited).fork(),n).join();let a=n.writeUnknownFields;return!1!==a&&(!0==a?i.f$.onWrite:a)(this.typeName,e,t),t}}let h=new g;class u extends s.G{constructor(){super("com.hamropatro.sociallayer.io.ReplyOnCommentResponse",[{no:1,name:"app_id",kind:"scalar",T:9},{no:2,name:"post_uri",kind:"scalar",T:9},{no:3,name:"comment_id",kind:"scalar",T:9},{no:4,name:"reply_id",kind:"scalar",T:9},{no:5,name:"account_info",kind:"message",T:()=>o.g$},{no:6,name:"business_account_info",kind:"message",T:()=>o.g$},{no:7,name:"post_owner_business_id",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.appId="",t.postUri="",t.commentId="",t.replyId="",t.postOwnerBusinessId="",void 0!==e&&(0,r.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let r=a??this.create(),s=e.pos+t;for(;e.pos<s;
1){let[t,a]=e.tag();switch(t){case 1:r.appId=e.string();break;case 2:r.postUri=e.string();break;case 3:r.commentId=e.string();break;case 4:r.replyId=e.string();break;case 5:r.accountInfo=o.g$.internalBinaryRead(e,e.uint32(),n,r.accountInfo);break;case 6:r.businessAccountInfo=o.g$.internalBinaryRead(e,e.uint32(),n,r.businessAccountInfo);break;case 7:r.postOwnerBusinessId=e.string();break;default:let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let l=e.skip(a);!1!==s&&(!0===s?i.f$.onRead:s)(this.typeName,r,t,a,l)}}return r}internalBinaryWrite(e,t,n){""!==e.appId&&t.tag(1,i.O0.LengthDelimited).string(e.appId),""!==e.postUri&&t.tag(2,i.O0.LengthDelimited).string(e.postUri),""!==e.commentId&&t.tag(3,i.O0.LengthDelimited).string(e.commentId),""!==e.replyId&&t.tag(4,i.O0.LengthDelimited).string(e.replyId),e.accountInfo&&o.g$.internalBinaryWrite(e.accountInfo,t.tag(5,i.O0.LengthDelimited).fork(),n).join(),e.businessAccountInfo&&o.g$.internalBinaryWrite(e.businessAccountInfo,t.tag(6,i.O0.LengthDelimited).fork(),n).join(),""!==e.postOwnerBusinessId&&t.tag(7,i.O0.LengthDelimited).string(e.postOwnerBusinessId);let a=n.writeUnknownFields;return!1!==a&&(!0==a?i.f$.onWrite:a)(this.typeName,e,t),t}}let k=new u;class y extends s.G{constructor(){super("com.hamropatro.sociallayer.io.ReactOnCommentReplyRequest",[{no:1,name:"post_uri",kind:"scalar",T:9},{no:2,name:"comment_id",kind:"scalar",T:9},{no:3,name:"reply_id",kind:"scalar",T:9},{no:4,name:"account_id",kind:"scalar",T:9},{no:5,name:"reaction_type",kind:"enum",T:()=>["com.hamropatro.sociallayer.io.ReactionType",o.o]},{no:6,name:"business_account_info",kind:"message",T:()=>o.g$}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.postUri="",t.commentId="",t.replyId="",t.accountId="",t.reactionType=0,void 0!==e&&(0,r.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let r=a??this.create(),s=e.pos+t;for(;e.pos<s;){let[t,a]=e.tag();switch(t){case 1:r.postUri=e.string();break;case 2:r.commentId=e.string();break;case 3:r.replyId=e.string();break;case 4:r.accountId=e.string();break;case 5:r.reactionType=e.int32();break;case 6:r.businessAccountInfo=o.g$.internalBinaryRead(e,e.uint32(),n,r.businessAccountInfo);break;default:let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let l=e.skip(a);!1!==s&&(!0===s?i.f$.onRead:s)(this.typeName,r,t,a,l)}}return r}internalBinaryWrite(e,t,n){""!==e.postUri&&t.tag(1,i.O0.LengthDelimited).string(e.postUri),""!==e.commentId&&t.tag(2,i.O0.LengthDelimited).string(e.commentId),""!==e.replyId&&t.tag(3,i.O0.LengthDelimited).string(e.replyId),""!==e.accountId&&t.tag(4,i.O0.LengthDelimited).string(e.accountId),0!==e.reactionType&&t.tag(5,i.O0.Varint).int32(e.reactionType),e.businessAccountInfo&&o.g$.internalBinaryWrite(e.businessAccountInfo,t.tag(6,i.O0.LengthDelimited).fork(),n).join();let a=n.writeUnknownFields;return!1!==a&&(!0==a?i.f$.onWrite:a)(this.typeName,e,t),t}}let w=new y;class f extends s.G{constructor(){super("com.hamropatro.sociallayer.io.ReactOnCommentReplytResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&(0,r.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let r=a??this.create(),s=e.pos+t;for(;e.pos<s;){let[t,a]=e.tag();{let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==s&&(!0===s?i.f$.onRead:s)(this.typeName,r,t,a,o)}}return r}internalBinaryWrite(e,t,n){let a=n.writeUnknownFields;return!1!==a&&(!0==a?i.f$.onWrite:a)(this.typeName,e,t),t}}let b=new f;class T extends s.G{constructor(){super("com.hamropatro.sociallayer.io.DeleteCommentReplyRequest",[{no:1,name:"post_uri",kind:"scalar",T:9},{no:2,name:"comment_id",kind:"scalar",T:9},{no:3,name:"reply_id",kind:"scalar",T:9},{no:4,name:"status",kind:"enum",T:()=>["com.hamropatro.sociallayer.io.DeleteCommentReplyRequest.Status",l]},{no:5,name:"account_id",kind:"scalar",T:9},{no:6,name:"business_account_info",kind:"message",T:()=>o.g$}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.postUri="",t.commentId="",t.replyId="",t.status=0,t.accountId="",void 0!==e&&(0,r.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let r=a??this.create(),s=e.pos+t;for(;e.pos<s;
1){let[t,a]=e.tag();switch(t){case 1:r.postUri=e.string();break;case 2:r.commentId=e.string();break;case 3:r.replyId=e.string();break;case 4:r.status=e.int32();break;case 5:r.accountId=e.string();break;case 6:r.businessAccountInfo=o.g$.internalBinaryRead(e,e.uint32(),n,r.businessAccountInfo);break;default:let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let l=e.skip(a);!1!==s&&(!0===s?i.f$.onRead:s)(this.typeName,r,t,a,l)}}return r}internalBinaryWrite(e,t,n){""!==e.postUri&&t.tag(1,i.O0.LengthDelimited).string(e.postUri),""!==e.commentId&&t.tag(2,i.O0.LengthDelimited).string(e.commentId),""!==e.replyId&&t.tag(3,i.O0.LengthDelimited).string(e.replyId),0!==e.status&&t.tag(4,i.O0.Varint).int32(e.status),""!==e.accountId&&t.tag(5,i.O0.LengthDelimited).string(e.accountId),e.businessAccountInfo&&o.g$.internalBinaryWrite(e.businessAccountInfo,t.tag(6,i.O0.LengthDelimited).fork(),n).join();let a=n.writeUnknownFields;return!1!==a&&(!0==a?i.f$.onWrite:a)(this.typeName,e,t),t}}let O=new T;class I extends s.G{constructor(){super("com.hamropatro.sociallayer.io.DeleteCommentReplyResponse",[{no:1,name:"app_id",kind:"scalar",T:9},{no:2,name:"post_uri",kind:"scalar",T:9},{no:3,name:"comment_id",kind:"scalar",T:9},{no:4,name:"reply_id",kind:"scalar",T:9},{no:5,name:"post_owner_business_id",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.appId="",t.postUri="",t.commentId="",t.replyId="",t.postOwnerBusinessId="",void 0!==e&&(0,r.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let r=a??this.create(),s=e.pos+t;for(;e.pos<s;){let[t,a]=e.tag();switch(t){case 1:r.appId=e.string();break;case 2:r.postUri=e.string();break;case 3:r.commentId=e.string();break;case 4:r.replyId=e.string();break;case 5:r.postOwnerBusinessId=e.string();break;default:let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==s&&(!0===s?i.f$.onRead:s)(this.typeName,r,t,a,o)}}return r}internalBinaryWrite(e,t,n){""!==e.appId&&t.tag(1,i.O0.LengthDelimited).string(e.appId),""!==e.postUri&&t.tag(2,i.O0.LengthDelimited).string(e.postUri),""!==e.commentId&&t.tag(3,i.O0.LengthDelimited).string(e.commentId),""!==e.replyId&&t.tag(4,i.O0.LengthDelimited).string(e.replyId),""!==e.postOwnerBusinessId&&t.tag(5,i.O0.LengthDelimited).string(e.postOwnerBusinessId);let a=n.writeUnknownFields;return!1!==a&&(!0==a?i.f$.onWrite:a)(this.typeName,e,t),t}}let $=new I;class U extends s.G{constructor(){super("com.hamropatro.sociallayer.io.ListCommentRepliesRequest",[{no:1,name:"post_uri",kind:"scalar",T:9},{no:2,name:"comment_id",kind:"scalar",T:9},{no:3,name:"page_size",kind:"scalar",T:13},{no:4,name:"page_token",kind:"scalar",T:9},{no:5,name:"business_account_info",kind:"message",T:()=>o.g$}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.postUri="",t.commentId="",t.pageSize=0,t.pageToken="",void 0!==e&&(0,r.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let r=a??this.create(),s=e.pos+t;for(;e.pos<s;){let[t,a]=e.tag();switch(t){case 1:r.postUri=e.string();break;case 2:r.commentId=e.string();break;case 3:r.pageSize=e.uint32();break;case 4:r.pageToken=e.string();break;case 5:r.businessAccountInfo=o.g$.internalBinaryRead(e,e.uint32(),n,r.businessAccountInfo);break;default:let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let l=e.skip(a);!1!==s&&(!0===s?i.f$.onRead:s)(this.typeName,r,t,a,l)}}return r}internalBinaryWrite(e,t,n){""!==e.postUri&&t.tag(1,i.O0.LengthDelimited).string(e.postUri),""!==e.commentId&&t.tag(2,i.O0.LengthDelimited).string(e.commentId),0!==e.pageSize&&t.tag(3,i.O0.Varint).uint32(e.pageSize),""!==e.pageToken&&t.tag(4,i.O0.LengthDelimited).string(e.pageToken),e.businessAccountInfo&&o.g$.internalBinaryWrite(e.businessAccountInfo,t.tag(5,i.O0.LengthDelimited).fork(),n).join();let a=n.writeUnknownFields;return!1!==a&&(!0==a?i.f$.onWrite:a)(this.typeName,e,t),t}}let R=new U;class B extends s.G{constructor(){super("com.hamropatro.sociallayer.io.ListCommentRepliesResponse",[{no:1,name:"app_id",kind:"scalar",T:9},{no:2,name:"post_uri",kind:"scalar",T:9},{no:3,name:"comment_id",kind:"scalar",T:9},{no:4,name:"replies",kind:"message",repeat:2,T:()=>o.CD},{no:5,name:"next_page_token",kind:"scalar",T:9},{no:6,name:"business_account_info",kind:"message",T:()=>o.g$},{no:7,name:"post_owner_business_id",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.appId="",t.postUri="",t.commentId="",t.replies=[],t.nextPageToken="",t.postOwnerBusinessId="",void 0!==e&&(0,r.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let r=a??this.create(),s=e.pos+t;for(;e.pos<s;
1){let[t,a]=e.tag();switch(t){case 1:r.appId=e.string();break;case 2:r.postUri=e.string();break;case 3:r.commentId=e.string();break;case 4:r.replies.push(o.CD.internalBinaryRead(e,e.uint32(),n));break;case 5:r.nextPageToken=e.string();break;case 6:r.businessAccountInfo=o.g$.internalBinaryRead(e,e.uint32(),n,r.businessAccountInfo);break;case 7:r.postOwnerBusinessId=e.string();break;default:let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let l=e.skip(a);!1!==s&&(!0===s?i.f$.onRead:s)(this.typeName,r,t,a,l)}}return r}internalBinaryWrite(e,t,n){""!==e.appId&&t.tag(1,i.O0.LengthDelimited).string(e.appId),""!==e.postUri&&t.tag(2,i.O0.LengthDelimited).string(e.postUri),""!==e.commentId&&t.tag(3,i.O0.LengthDelimited).string(e.commentId);for(let a=0;a<e.replies.length;a++)o.CD.internalBinaryWrite(e.replies[a],t.tag(4,i.O0.LengthDelimited).fork(),n).join();""!==e.nextPageToken&&t.tag(5,i.O0.LengthDelimited).string(e.nextPageToken),e.businessAccountInfo&&o.g$.internalBinaryWrite(e.businessAccountInfo,t.tag(6,i.O0.LengthDelimited).fork(),n).join(),""!==e.postOwnerBusinessId&&t.tag(7,i.O0.LengthDelimited).string(e.postOwnerBusinessId);let a=n.writeUnknownFields;return!1!==a&&(!0==a?i.f$.onWrite:a)(this.typeName,e,t),t}}let _=new B;class D extends s.G{constructor(){super("com.hamropatro.sociallayer.io.SpamReplyRequest",[{no:1,name:"post_uri",kind:"scalar",T:9},{no:2,name:"comment_id",kind:"scalar",T:9},{no:3,name:"reply_id",kind:"scalar",T:9},{no:4,name:"owner_id",kind:"scalar",T:9},{no:5,name:"account_id",kind:"scalar",T:9},{no:6,name:"account_type",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.postUri="",t.commentId="",t.replyId="",t.ownerId="",t.accountId="",t.accountType="",void 0!==e&&(0,r.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let r=a??this.create(),s=e.pos+t;for(;e.pos<s;){let[t,a]=e.tag();switch(t){case 1:r.postUri=e.string();break;case 2:r.commentId=e.string();break;case 3:r.replyId=e.string();break;case 4:r.ownerId=e.string();break;case 5:r.accountId=e.string();break;case 6:r.accountType=e.string();break;default:let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==s&&(!0===s?i.f$.onRead:s)(this.typeName,r,t,a,o)}}return r}internalBinaryWrite(e,t,n){""!==e.postUri&&t.tag(1,i.O0.LengthDelimited).string(e.postUri),""!==e.commentId&&t.tag(2,i.O0.LengthDelimited).string(e.commentId),""!==e.replyId&&t.tag(3,i.O0.LengthDelimited).string(e.replyId),""!==e.ownerId&&t.tag(4,i.O0.LengthDelimited).string(e.ownerId),""!==e.accountId&&t.tag(5,i.O0.LengthDelimited).string(e.accountId),""!==e.accountType&&t.tag(6,i.O0.LengthDelimited).string(e.accountType);let a=n.writeUnknownFields;return!1!==a&&(!0==a?i.f$.onWrite:a)(this.typeName,e,t),t}}let L=new D;class N extends s.G{constructor(){super("com.hamropatro.sociallayer.io.SpamReplyResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&(0,r.x)(this,t,e),t}internalBinaryRead(e,t,n,a){let r=a??this.create(),s=e.pos+t;for(;e.pos<s;){let[t,a]=e.tag();{let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==s&&(!0===s?i.f$.onRead:s)(this.typeName,r,t,a,o)}}return r}internalBinaryWrite(e,t,n){let a=n.writeUnknownFields;return!1!==a&&(!0==a?i.f$.onWrite:a)(this.typeName,e,t),t}}let P=new N,W=new a.C("com.hamropatro.sociallayer.io.ReplyService",[{name:"ReplyOnComment",options:{},I:h,O:k},{name:"GetReplyDetail",options:{},I:d,O:p},{name:"ReactOnCommentReply",options:{},I:w,O:b},{name:"DeleteCommentReply",options:{},I:O,O:$},{name:"ListCommentReplies",options:{},I:R,O:_},{name:"SpamReply",options:{},I:L,O:P}])},42341:(e,t,n)=>{n.d(t,{CD:()=>O,Go:()=>c,HH:()=>h,NH:()=>R,O3:()=>k,X6:()=>b,cM:()=>d,g$:()=>w,o:()=>l,qT:()=>$});var a=n(7957),i=n(77265),r=n(63098),s=function(e){return e[e.APPROVED=0]="APPROVED",e[e.ACTIVE=1]="ACTIVE",e[e.BLOCKED=2]="BLOCKED",e[e.PENDING=3]="PENDING",e}({}),o=function(e){return e[e.APPROVED=0]="APPROVED",e[e.ACTIVE=1]="ACTIVE",e[e.BLOCKED=2]="BLOCKED",e[e.PENDING=3]="PENDING",e}({}),l=function(e){return e[e.NONE=0]="NONE",e[e.LIKE=1]="LIKE",e[e.DISLIKE=2]="DISLIKE",e[e.COMMENT=3]="COMMENT",e[e.UNLIKE=4]="UNLIKE",e[e.UNDISLIKE=5]="UNDISLIKE",e[e.VIEW=6]="VIEW",e[e.SPAM=7]="SPAM",e[e.REPLY=8]="REPLY",e}({}),c=function(e){return e[e.TEXT=0]="TEXT",e[e.IMAGE=1]="IMAGE",e[e.AUDIO=2]="AUDIO",e[e.VIDEO=3]="VIDEO",e}({}),d=function(e){return e[e.POST_TYPE=0]="POST_TYPE",e[e.COMMENT_TYPE=1]="COMMENT_TYPE",e[e.REPLY_TYPE=2]="REPLY_TYPE",e}({});class m extends r.G{constructor(){super("com.hamropatro.sociallayer.io.ProfileImage",[{no:1,name:"image_url",kind:"scalar",T:9},{no:2,name:"width",kind:"scalar",T:13},{no:3,name:"height",kind:"scalar",T:13}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.imageUrl="",t.width=0,t.height=0,void 0!==e&&(0,i.x)(this,t,e),t}internalBinaryRead(e,t,n,i){let r=i??this.create(),s=e.pos+t;for(;e.pos<s;){let[t,i]=e.tag();switch(t){case 1:r.imageUrl=e.string();break;case 2:r.width=e.uint32();break;case 3:r.height=e.uint32();break;default:let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${i}) for ${this.typeName}`);let o=e.skip(i);!1!==s&&(!0===s?a.f$.onRead:s)(this.typeName,r,t,i,o)}}return r}internalBinaryWrite(e,t,n){""!==e.imageUrl&&t.tag(1,a.O0.LengthDelimited).string(e.imageUrl),0!==e.width&&t.tag(2,a.O0.Varint).uint32(e.width),0!==e.height&&t.tag(3,a.O0.Varint).uint32(e.height);let i=n.writeUnknownFields;return!1!==i&&(!0==i?a.f$.onWrite:i)(this.typeName,e,t),t}}let p=new m;class g extends r.G{constructor(){super("com.hamropatro.sociallayer.io.CommentMessage",[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"metadata",kind:"map",K:9,V:{kind:"scalar",T:9}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.text="",t.metadata={},void 0!==e&&(0,i.x)(this,t,e),t}internalBinaryRead(e,t,n,i){let r=i??this.create(),s=e.pos+t;for(;e.pos<s;){let[t,i]=e.tag();switch(t){case 1:r.text=e.string();break;case 2:this.binaryReadMap2(r.metadata,e,n);break;default:let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${i}) for ${this.typeName}`);let o=e.skip(i);!1!==s&&(!0===s?a.f$.onRead:s)(this.typeName,r,t,i,o)}}return r}binaryReadMap2(e,t,n){let a=t.uint32(),i=t.pos+a,r,s;for(;t.pos<i;){let[e,n]=t.tag();switch(e){case 1:r=t.string();break;case 2:s=t.string();break;default:throw new globalThis.Error("unknown map entry field for com.hamropatro.sociallayer.io.CommentMessage.metadata")}}e[r??""]=s??""}internalBinaryWrite(e,t,n){for(let n of(""!==e.text&&t.tag(1,a.O0.LengthDelimited).string(e.text),globalThis.Object.keys(e.metadata)))t.tag(2,a.O0.LengthDelimited).fork().tag(1,a.O0.LengthDelimited).string(n).tag(2,a.O0.LengthDelimited).string(e.metadata[n]).join();let i=n.writeUnknownFields;return!1!==i&&(!0==i?a.f$.onWrite:i)(this.typeName,e,t),t}}let h=new g;class u extends r.G{constructor(){super("com.hamropatro.sociallayer.io.ReplyMessage",[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"metadata",kind:"map",K:9,V:{kind:"scalar",T:9}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.text="",t.metadata={},void 0!==e&&(0,i.x)(this,t,e),t}internalBinaryRead(e,t,n,i){let r=i??this.create(),s=e.pos+t;for(;e.pos<s;){let[t,i]=e.tag();switch(t){case 1:r.text=e.string();break;case 2:this.binaryReadMap2(r.metadata,e,n);break;default:let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${i}) for ${this.typeName}`);let o=e.skip(i);!1!==s&&(!0===s?a.f$.onRead:s)(this.typeName,r,t,i,o)}}return r}binaryReadMap2(e,t,n){let a=t.uint32(),i=t.pos+a,r,s;for(;t.pos<i;){let[e,n]=t.tag();switch(e){case 1:r=t.string();break;case 2:s=t.string();break;default:throw new globalThis.Error("unknown map entry field for com.hamropatro.sociallayer.io.ReplyMessage.metadata")}}e[r??""]=s??""}internalBinaryWrite(e,t,n){for(let n of(""!==e.text&&t.tag(1,a.O0.LengthDelimited).string(e.text),globalThis.Object.keys(e.metadata)))t.tag(2,a.O0.LengthDelimited).fork().tag(1,a.O0.LengthDelimited).string(n).tag(2,a.O0.LengthDelimited).string(e.metadata[n]).join();let i=n.writeUnknownFields;return!1!==i&&(!0==i?a.f$.onWrite:i)(this.typeName,e,t),t}}let k=new u;class y extends r.G{constructor(){super("com.hamropatro.sociallayer.io.AccountInfo",[{no:1,name:"account_id",kind:"scalar",T:9},{no:2,name:"account_name",kind:"scalar",T:9},{no:3,name:"account_type",kind:"scalar",T:9},{no:5,name:"account_image",kind:"message",T:()=>p},{no:6,name:"is_verified",kind:"scalar",T:8},{no:7,name:"is_suspended",kind:"scalar",T:8}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.accountId="",t.accountName="",t.accountType="",t.isVerified=!1,t.isSuspended=!1,void 0!==e&&(0,i.x)(this,t,e),t}internalBinaryRead(e,t,n,i){let r=i??this.create(),s=e.pos+t;for(;e.pos<s;){let[t,i]=e.tag();switch(t){case 1:r.accountId=e.string();break;case 2:r.accountName=e.string();break;case 3:r.accountType=e.string();break;case 5:r.accountImage=p.internalBinaryRead(e,e.uint32(),n,r.accountImage);break;case 6:r.isVerified=e.bool();break;case 7:r.isSuspended=e.bool();break;default:let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${i}) for ${this.typeName}`);let o=e.skip(i);!1!==s&&(!0===s?a.f$.onRead:s)(this.typeName,r,t,i,o)}}return r}internalBinaryWrite(e,t,n){""!==e.accountId&&t.tag(1,a.O0.LengthDelimited).string(e.accountId),""!==e.accountName&&t.tag(2,a.O0.LengthDelimited).string(e.accountName),""!==e.accountType&&t.tag(3,a.O0.LengthDelimited).string(e.accountType),e.accountImage&&p.internalBinaryWrite(e.accountImage,t.tag(5,a.O0.LengthDelimited).fork(),n).join(),!1!==e.isVerified&&t.tag(6,a.O0.Varint).bool(e.isVerified),!1!==e.isSuspended&&t.tag(7,a.O0.Varint).bool(e.isSuspended);let i=n.writeUnknownFields;return!1!==i&&(!0==i?a.f$.onWrite:i)(this.typeName,e,t),t}}let w=new y;class f extends r.G{constructor(){super("com.hamropatro.sociallayer.io.UserComment",[{no:1,name:"app_id",kind:"scalar",T:9},{no:2,name:"post_uri",kind:"scalar",T:9},{no:3,name:"comment_id",kind:"scalar",T:9},{no:4,name:"status",kind:"enum",T:()=>["com.hamropatro.sociallayer.io.UserComment.Status",s]},{no:5,name:"comment",kind:"message",T:()=>h},{no:6,name:"comment_type",kind:"enum",T:()=>["com.hamropatro.sociallayer.io.MessageType",c]},{no:7,name:"account_info",kind:"message",T:()=>w},{no:8,name:"comment_timestamp",kind:"scalar",T:4,L:0},{no:9,name:"likes",kind:"scalar",T:4,L:0},{no:10,name:"dislikes",kind:"scalar",T:4,L:0},{no:11,name:"replies",kind:"scalar",T:4,L:0},{no:12,name:"business_account_info",kind:"message",T:()=>w},{no:13,name:"spams",kind:"scalar",T:4,L:0},{no:14,name:"edited",kind:"scalar",T:8},{no:15,name:"liked",kind:"scalar",T:8},{no:16,name:"disliked",kind:"scalar",T:8},{no:17,name:"spammed",kind:"scalar",T:8}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.appId="",t.postUri="",t.commentId="",t.status=0,t.commentType=0,t.commentTimestamp=0n,t.likes=0n,t.dislikes=0n,t.replies=0n,t.spams=0n,t.edited=!1,t.liked=!1,t.disliked=!1,t.spammed=!1,void 0!==e&&(0,i.x)(this,t,e),t}internalBinaryRead(e,t,n,i){let r=i??this.create(),s=e.pos+t;for(;e.pos<s;){let[t,i]=e.tag();switch(t){case 1:r.appId=e.string();break;case 2:r.postUri=e.string();break;case 3:r.commentId=e.string();break;case 4:r.status=e.int32();break;case 5:r.comment=h.internalBinaryRead(e,e.uint32(),n,r.comment);break;case 6:r.commentType=e.int32();break;case 7:r.accountInfo=w.internalBinaryRead(e,e.uint32(),n,r.accountInfo);break;case 8:r.commentTimestamp=e.uint64().toBigInt();break;case 9:r.likes=e.uint64().toBigInt();break;case 10:r.dislikes=e.uint64().toBigInt();break;case 11:r.replies=e.uint64().toBigInt();break;case 12:r.businessAccountInfo=w.internalBinaryRead(e,e.uint32(),n,r.businessAccountInfo);break;case 13:r.spams=e.uint64().toBigInt();break;case 14:r.edited=e.bool();break;case 15:r.liked=e.bool();break;case 16:r.disliked=e.bool();break;case 17:r.spammed=e.bool();break;default:let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${i}) for ${this.typeName}`);let o=e.skip(i);!1!==s&&(!0===s?a.f$.onRead:s)(this.typeName,r,t,i,o)}}return r}internalBinaryWrite(e,t,n){""!==e.appId&&t.tag(1,a.O0.LengthDelimited).string(e.appId),""!==e.postUri&&t.tag(2,a.O0.LengthDelimited).string(e.postUri),""!==e.commentId&&t.tag(3,a.O0.LengthDelimited).string(e.commentId),0!==e.status&&t.tag(4,a.O0.Varint).int32(e.status),e.comment&&h.internalBinaryWrite(e.comment,t.tag(5,a.O0.LengthDelimited).fork(),n).join(),0!==e.commentType&&t.tag(6,a.O0.Varint).int32(e.commentType),e.accountInfo&&w.internalBinaryWrite(e.accountInfo,t.tag(7,a.O0.LengthDelimited).fork(),n).join(),0n!==e.commentTimestamp&&t.tag(8,a.O0.Varint).uint64(e.commentTimestamp),0n!==e.likes&&t.tag(9,a.O0.Varint).uint64(e.likes),0n!==e.dislikes&&t.tag(10,a.O0.Varint).uint64(e.dislikes),0n!==e.replies&&t.tag(11,a.O0.Varint).uint64(e.replies),e.businessAccountInfo&&w.internalBinaryWrite(e.businessAccountInfo,t.tag(12,a.O0.LengthDelimited).fork(),n).join(),0n!==e.spams&&t.tag(13,a.O0.Varint).uint64(e.spams),!1!==e.edited&&t.tag(14,a.O0.Varint).bool(e.edited),!1!==e.liked&&t.tag(15,a.O0.Varint).bool(e.liked),!1!==e.disliked&&t.tag(16,a.O0.Varint).bool(e.disliked),!1!==e.spammed&&t.tag(17,a.O0.Varint).bool(e.spammed);let i=n.writeUnknownFields;return!1!==i&&(!0==i?a.f$.onWrite:i)(this.typeName,e,t),t}}let b=new f;class T extends r.G{constructor(){super("com.hamropatro.sociallayer.io.UserReply",[{no:1,name:"app_id",kind:"scalar",T:9},{no:2,name:"post_uri",kind:"scalar",T:9},{no:3,name:"comment_id",kind:"scalar",T:9},{no:4,name:"reply_id",kind:"scalar",T:9},{no:5,name:"status",kind:"enum",T:()=>["com.hamropatro.sociallayer.io.UserReply.Status",o]},{no:6,name:"reply",kind:"message",T:()=>k},{no:7,name:"comment_type",kind:"enum",T:()=>["com.hamropatro.sociallayer.io.MessageType",c]},{no:8,name:"account_info",kind:"message",T:()=>w},{no:9,name:"reply_timestamp",kind:"scalar",T:4,L:0},{no:10,name:"likes",kind:"scalar",T:4,L:0},{no:11,name:"dislikes",kind:"scalar",T:4,L:0},{no:12,name:"business_account_info",kind:"message",T:()=>w},{no:13,name:"liked",kind:"scalar",T:8},{no:14,name:"disliked",kind:"scalar",T:8},{no:15,name:"spammed",kind:"scalar",T:8},{no:16,name:"spams",kind:"scalar",T:4,L:0},{no:17,name:"edited",kind:"scalar",T:8}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.appId="",t.postUri="",t.commentId="",t.replyId="",t.status=0,t.commentType=0,t.replyTimestamp=0n,t.likes=0n,t.dislikes=0n,t.liked=!1,t.disliked=!1,t.spammed=!1,t.spams=0n,t.edited=!1,void 0!==e&&(0,i.x)(this,t,e),t}internalBinaryRead(e,t,n,i){let r=i??this.create(),s=e.pos+t;for(;e.pos<s;){let[t,i]=e.tag();switch(t){case 1:r.appId=e.string();break;case 2:r.postUri=e.string();break;case 3:r.commentId=e.string();break;case 4:r.replyId=e.string();break;case 5:r.status=e.int32();break;case 6:r.reply=k.internalBinaryRead(e,e.uint32(),n,r.reply);break;case 7:r.commentType=e.int32();break;case 8:r.accountInfo=w.internalBinaryRead(e,e.uint32(),n,r.accountInfo);break;case 9:r.replyTimestamp=e.uint64().toBigInt();break;case 10:r.likes=e.uint64().toBigInt();break;case 11:r.dislikes=e.uint64().toBigInt();break;case 12:r.businessAccountInfo=w.internalBinaryRead(e,e.uint32(),n,r.businessAccountInfo);break;case 13:r.liked=e.bool();break;case 14:r.disliked=e.bool();break;case 15:r.spammed=e.bool();break;
1case 16:r.spams=e.uint64().toBigInt();break;case 17:r.edited=e.bool();break;default:let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${i}) for ${this.typeName}`);let o=e.skip(i);!1!==s&&(!0===s?a.f$.onRead:s)(this.typeName,r,t,i,o)}}return r}internalBinaryWrite(e,t,n){""!==e.appId&&t.tag(1,a.O0.LengthDelimited).string(e.appId),""!==e.postUri&&t.tag(2,a.O0.LengthDelimited).string(e.postUri),""!==e.commentId&&t.tag(3,a.O0.LengthDelimited).string(e.commentId),""!==e.replyId&&t.tag(4,a.O0.LengthDelimited).string(e.replyId),0!==e.status&&t.tag(5,a.O0.Varint).int32(e.status),e.reply&&k.internalBinaryWrite(e.reply,t.tag(6,a.O0.LengthDelimited).fork(),n).join(),0!==e.commentType&&t.tag(7,a.O0.Varint).int32(e.commentType),e.accountInfo&&w.internalBinaryWrite(e.accountInfo,t.tag(8,a.O0.LengthDelimited).fork(),n).join(),0n!==e.replyTimestamp&&t.tag(9,a.O0.Varint).uint64(e.replyTimestamp),0n!==e.likes&&t.tag(10,a.O0.Varint).uint64(e.likes),0n!==e.dislikes&&t.tag(11,a.O0.Varint).uint64(e.dislikes),e.businessAccountInfo&&w.internalBinaryWrite(e.businessAccountInfo,t.tag(12,a.O0.LengthDelimited).fork(),n).join(),!1!==e.liked&&t.tag(13,a.O0.Varint).bool(e.liked),!1!==e.disliked&&t.tag(14,a.O0.Varint).bool(e.disliked),!1!==e.spammed&&t.tag(15,a.O0.Varint).bool(e.spammed),0n!==e.spams&&t.tag(16,a.O0.Varint).uint64(e.spams),!1!==e.edited&&t.tag(17,a.O0.Varint).bool(e.edited);let i=n.writeUnknownFields;return!1!==i&&(!0==i?a.f$.onWrite:i)(this.typeName,e,t),t}}let O=new T;class I extends r.G{constructor(){super("com.hamropatro.sociallayer.io.Reaction",[{no:2,name:"post_uri",kind:"scalar",T:9},{no:3,name:"account_id",kind:"scalar",T:9},{no:4,name:"reaction_type",kind:"enum",T:()=>["com.hamropatro.sociallayer.io.ReactionType",l]}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.postUri="",t.accountId="",t.reactionType=0,void 0!==e&&(0,i.x)(this,t,e),t}internalBinaryRead(e,t,n,i){let r=i??this.create(),s=e.pos+t;for(;e.pos<s;){let[t,i]=e.tag();switch(t){case 2:r.postUri=e.string();break;case 3:r.accountId=e.string();break;case 4:r.reactionType=e.int32();break;default:let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${i}) for ${this.typeName}`);let o=e.skip(i);!1!==s&&(!0===s?a.f$.onRead:s)(this.typeName,r,t,i,o)}}return r}internalBinaryWrite(e,t,n){""!==e.postUri&&t.tag(2,a.O0.LengthDelimited).string(e.postUri),""!==e.accountId&&t.tag(3,a.O0.LengthDelimited).string(e.accountId),0!==e.reactionType&&t.tag(4,a.O0.Varint).int32(e.reactionType);let i=n.writeUnknownFields;return!1!==i&&(!0==i?a.f$.onWrite:i)(this.typeName,e,t),t}}let $=new I;class U extends r.G{constructor(){super("com.hamropatro.sociallayer.io.CommentDetail",[{no:1,name:"comment",kind:"message",T:()=>b},{no:2,name:"likes",kind:"scalar",T:4,L:0},{no:3,name:"dislikes",kind:"scalar",T:4,L:0},{no:4,name:"liked",kind:"scalar",T:8},{no:5,name:"disliked",kind:"scalar",T:8},{no:6,name:"spammed",kind:"scalar",T:8},{no:7,name:"spams",kind:"scalar",T:4,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.likes=0n,t.dislikes=0n,t.liked=!1,t.disliked=!1,t.spammed=!1,t.spams=0n,void 0!==e&&(0,i.x)(this,t,e),t}internalBinaryRead(e,t,n,i){let r=i??this.create(),s=e.pos+t;for(;e.pos<s;){let[t,i]=e.tag();switch(t){case 1:r.comment=b.internalBinaryRead(e,e.uint32(),n,r.comment);break;case 2:r.likes=e.uint64().toBigInt();break;case 3:r.dislikes=e.uint64().toBigInt();break;case 4:r.liked=e.bool();break;case 5:r.disliked=e.bool();break;case 6:r.spammed=e.bool();break;case 7:r.spams=e.uint64().toBigInt();break;default:let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${i}) for ${this.typeName}`);let o=e.skip(i);!1!==s&&(!0===s?a.f$.onRead:s)(this.typeName,r,t,i,o)}}return r}internalBinaryWrite(e,t,n){e.comment&&b.internalBinaryWrite(e.comment,t.tag(1,a.O0.LengthDelimited).fork(),n).join(),0n!==e.likes&&t.tag(2,a.O0.Varint).uint64(e.likes),0n!==e.dislikes&&t.tag(3,a.O0.Varint).uint64(e.dislikes),!1!==e.liked&&t.tag(4,a.O0.Varint).bool(e.liked),!1!==e.disliked&&t.tag(5,a.O0.Varint).bool(e.disliked),!1!==e.spammed&&t.tag(6,a.O0.Varint).bool(e.spammed),0n!==e.spams&&t.tag(7,a.O0.Varint).uint64(e.spams);let i=n.writeUnknownFields;return!1!==i&&(!0==i?a.f$.onWrite:i)(this.typeName,e,t),t}}let R=new U;class B extends r.G{constructor(){super("com.hamropatro.sociallayer.io.LocationInfo",[{no:1,name:"lat",kind:"scalar",T:1},{no:2,name:"lon",kind:"scalar",T:1}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.lat=0,t.lon=0,void 0!==e&&(0,i.x)(this,t,e),t}internalBinaryRead(e,t,n,i){let r=i??this.create(),s=e.pos+t;for(;e.pos<s;){let[t,i]=e.tag();switch(t){case 1:r.lat=e.double();break;case 2:r.lon=e.double();break;default:let s=n.readUnknownField;if("throw"===s)throw new globalThis.Error(`Unknown field ${t} (wire type ${i}) for ${this.typeName}`);let o=e.skip(i);!1!==s&&(!0===s?a.f$.onRead:s)(this.typeName,r,t,i,o)}}return r}internalBinaryWrite(e,t,n){0!==e.lat&&t.tag(1,a.O0.Bit64).double(e.lat),0!==e.lon&&t.tag(2,a.O0.Bit64).double(e.lon);let i=n.writeUnknownFields;return!1!==i&&(!0==i?a.f$.onWrite:i)(this.typeName,e,t),t}}new B},85465:(e,t,n)=>{n.d(t,{Mg:()=>
1o,WQ:()=>r,_d:()=>i,qx:()=>s});var a=n(12108);function i(e){return{...a.Xl,authorization:`Bearer ${e}`}}function r(e){return{accountId:e.uid,accountName:e.name||"User",accountType:"PERSONAL",accountImage:e.photoURL?{imageUrl:e.photoURL,width:0,height:0}:void 0,isVerified:!1,isSuspended:!1}}function s(e){return{accountId:e.id,accountName:e.name||"Business",accountType:"BUSINESS",accountImage:e.logo?{imageUrl:e.logo,width:0,height:0}:void 0,isVerified:!0,isSuspended:!1}}let o=e=>"BUSINESS"===e.accountType?e:void 0}}]);

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.