1"use strict"; 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="45de8478-9e55-5c21-8298-72a0bdcc3c69")}catch(e){}}(); 3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[737],{63:(e,t,n)=>{n.d(t,{H8:()=>s,Hg:()=>l,If:()=>d,Oo:()=>m,hl:()=>c,s6:()=>p});var o=n(55745),a=n.n(o),r=n(24283),i=n(58535);let d=(e,t)=>e.getFormat(t)?.["code-block"]!=null,l=(e,t)=>((0,r.V)(e)||i.v.warn("quillDelta ã QuillObject ã®å½¢å¼ã§ã¯ããã¾ãã",{meta:t,value:e}),e),s=e=>{let t=e.length();return 0===t||1===t&&e.ops[0]?.insert==="\n"},c=["c","csharp","css","c++","go","html","java","javascript","json","perl","php","python","ruby","sql","typescript","xhtml","xml"],u=/https?:\/\/[-_.!~*'()\wã-ãã¡-ã³ä¸-é¾¥;/?:@&=+$,%#]+[\wã-ãã¡-ã³ä¸-é¾¥/]+/g,m=(e,t)=>{let n=new(a()),o=0;for(let t of e.matchAll(u)){let a=t[0];t.index>o&&n.insert(e.slice(o,t.index)),n.insert(a,{link:a}),o=t.index+a.length}return n.insert(`${e.slice(o)} 4`).insert(p(t)).insert("\n")},p=e=>({mention:{id:e.id.toString(),value:e.name,index:"0",denotationChar:"#"}})},24283:(e,t)=>{t.V=function(e){if("object"!=typeof e||null===e)return!1;let t=e.ops;return Array.isArray(t)&&t.every(e=>"object"==typeof e&&null!==e)}},33433:(e,t,n)=>{var o;t.lZ=t.Kz=void 0;let a=n(44676),r=(o=n(70576))&&o.__esModule?o:{default:o},i=/^(.*view\/post\/[0-9]*\/([0-9]+))\/?(.*)$/;t.Kz=(e,t)=>e.replace(i,(e,n,o,a)=>{let r=a.match(/#|\?/)?.[0],i=r&&a.split(r)[1];return`${n.replace(/\/$/,"")}/${t}${i?`${r??""}${i}`:""}`}),t.lZ=e=>{switch(e.bodyType){case a.BodyType.PlainText:return e.plainTextBody??"";case a.BodyType.QuillDelta:if(!e.quillDeltaBody)return"";return new r.default(e.quillDeltaBody).getText()}}},38301:(e,t,n)=>{n.d(t,{XW:()=>h,nh:()=>g,uV:()=>m});var o=n(36439),a=n(41471),r=n(82239),i=n(44676),d=n(33433),l=n(49151),s=n(87512),c=n(16737),u=n(42392);let m=()=>{let e=(0,l.q)(),t=(0,a.useDispatch)(),n=(0,a.useSelector)(e=>(0,r.BrandId)(e.app.brand.id));return(0,o.useCallback)(async o=>{let a=await p(o,e);return t((0,s.YC)({boxId:o.box.boxId,boxType:o.box.boxType,postId:a.id,data:h(n,o,a)})),a},[e,n,t])},p=async(e,t)=>{switch(e.bodyType){case i.BodyType.PlainText:if(void 0===e.plainTextBody)throw Error("plainTextBody is required");break;case i.BodyType.QuillDelta:if(void 0===e.quillDeltaBody)throw Error("quillDeltaBody is required")}let n=new FormData;return g(e,n),(await t.post("/v2/posts",n)).data},g=(e,t)=>{e.box&&(t.append("box[boxId]",e.box.boxId),t.append("box[categoryIndex]",e.box.categoryIndex.toString())),e.released||t.append("released","false"),e.title&&t.append("title",e.title),e.plainTextBody?t.append("plainTextBody",e.plainTextBody):e.quillDeltaBody&&t.append("quillDeltaBody",JSON.stringify(e.quillDeltaBody)),c.BC(t,e.files),void 0!==e.releasedAt&&t.append("releasedAt",e.releasedAt.toISOString()),void 0!==e.target&&(t.append("target[type]",e.target.type.toString()),e.target.groupIds.forEach((e,n)=>{t.append(`target[groupIds][${n}]`,e.toString())})),void 0!==e.enquete&&e.enquete.options.forEach((e,n)=>{t.append(`enquete[options][${n}]`,e)}),void 0!==e.eventId&&t.append("eventId",e.eventId.toString()),e.isSendNotification&&t.append("isSendNotification","true"),e.isSendTwitter&&t.append("isSendTwitter","true"),e.isSendNotificationForEventAttendance&&t.append("isSendNotificationForEventAttendance","true"),void 0!==e.suggestions&&e.suggestions.forEach((e,n)=>{t.append(`suggestions[${n}][text]`,e.text),t.append(`suggestions[${n}][textGeneratorType]`,e.textGeneratorType),t.append(`suggestions[${n}][languageModel]`,e.languageModel),t.append(`suggestions[${n}][processorName]`,e.processorName)})},h=(e,t,n)=>({id:n.id,brandId:e,boxId:t.box.boxId,boxType:t.box.boxType,posterId:n.poster.id,released:n.released,categoryIndex:t.box.categoryIndex,title:n.beginning,postTitle:n.title??"",body:(0,d.lZ)(n),images:b(n.embeddedImages),richTextImages:b(n.attachedImages),videos:y(n.videos),documents:f(n.documents),isTweet:t.isSendTwitter??!1,firstPostLabelVisible:!1,isRichText:n.bodyType===i.BodyType.QuillDelta,quillDelta:t.quillDeltaBody??null,like:n.like.count,comment:n.comment.count,goodAnswer:n.goodAnswer.count,viewableType:n.viewableType??u.g.Public,lastEditedAt:n.lastEditedAt,releaseScheduleDate:n.released?null:n.releasedAt,isNotificationPushed:t.isSendNotification??!1,releasedAt:n.released?n.releasedAt:null,isDeleted:!1,createdAt:n.createdAt,commentsSummary:{totalCounts:n.comment.count,uniqueUserCounts:n.comment.commenterCount,commentedByMe:n.comment.commentedByMe,goodAnswerToMe:n.goodAnswer.goodAnsweredToMe,displayUsers:n.comment.earlyUsers.map(e=>
4({id:e.id,accountName:e.accountName,nickname:e.name,iconPath:e.iconPath})),latestCommentDate:n.comment.lastCommentedAt??void 0},name:n.poster.name,iconPath:n.poster.iconPath,accountName:n.poster.accountName,isAdmin:n.poster.isAdmin,customReaction:n.customReactions.map(e=>({reactedByMe:e.reactedByMe,customReactionSerialNumber:e.serialNumber,count:e.count})),customReactionSummary:{latestReactionUserName:n.reactionSummary?.lastReactionUser.name??"",reactedByMultipleUsers:n.customReactions.length>1},Enquete:n.enquete&&{options:n.enquete.answers.map(e=>e.option)},latestComment:n.comment.topComment?{id:n.comment.topComment.id,name:n.comment.topComment.commenter.name,accountName:n.comment.topComment.commenter.accountName,brandId:e,postId:n.id,parentCommentId:n.comment.topComment.parentCommentId??0,commenterId:n.comment.topComment.commenter.id,body:n.comment.topComment.plainTextBody,like:0,lastEditedAt:n.comment.topComment.lastEditedAt,images:b(n.comment.topComment.images),videos:y(n.comment.topComment.videos),documents:f(n.comment.topComment.documents),isAdmin:n.comment.topComment.commenter.isAdmin,iconPath:n.comment.topComment.commenter.iconPath,isGoodAnswer:!1,viewableType:n.comment.topComment.viewableType??0,customReaction:[],createdAt:n.comment.topComment.createdAt,isResigned:+!!n.comment.topComment.commenter.isResigned,CommentLikes:[]}:void 0,PostLikes:n.like.likedByMe?[{upOrDown:!0}]:[],isResigned:+!!n.poster.isResigned,defaultImage:n.box.masonry?.defaultImage??void 0,targetUserType:n.target.type,targetGroupIds:"groups"in n.target?n.target.groups.map(e=>e.id):[],targetGroupNames:"groups"in n.target?n.target.groups.map(e=>e.name):[],bookmarkCount:0,slug:n.slug,boxHeader:n.box.name,categoryIndexText:n.box.category.name,isBookmarked:n.bookmark.bookmarkedByMe}),b=e=>e,y=e=>e.map(e=>({thumbnail:e.thumbnail,video:e.video,origin:{thumbnail:"",video:""}})),f=e=>e.map(e=>({url:e.url,originalname:e.name}))},42795:(e,t,n)=>{n.d(t,{c:()=>l,y:()=>s});var o=n(36439),a=n(76399),r=n.n(a),i=n(49151),d=n(70442);let l=()=>{let[e,t]=(0,o.useState)(null),[n,a]=(0,o.useState)(!1),{data:r}=(0,d.s3)("/icebreaker/questions/random",{revalidateOnFocus:!1}),l=(0,i.q)();return{question:e||r,change:(0,o.useCallback)(async()=>{a(!0),t((await l.get("/icebreaker/questions/random?change=true")).data),a(!1)},[l]),isLoading:n}},s=e=>{let t=r().stringify({hashtag:e}),n=t?`/icebreaker/questions?${t}`:"/icebreaker/questions",{data:o}=(0,d.s3)(n,{revalidateOnFocus:!1});return o}},44676:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PostErrorCodes=t.BodyType=t.PostReleasedFilter=t.GoodAnswerStatus=t.PostSortBy=t.CustomReactionSerialNumber=void 0,t.CustomReactionSerialNumber=e=>e,t.PostSortBy={PostDisplayOrderDesc:0,CommentDisplayOrderDesc:1,CommentCountDesc:2,PostLikeCountDesc:3,PostAccessCountDesc:4,ReleasedAtAsc:5,ReleasedAtDesc:6,IdAsc:7,IdDesc:8,PostLikeCountAsc:9,CommentCountAsc:10,BookmarkCountAsc:13,BookmarkCountDesc:14},t.GoodAnswerStatus={All:0,ZeroGoodAnswer:1,OneMoreAnswer:2,ZeroAnswer:3},t.PostReleasedFilter={All:"all",Released:"released",Draft:"draft",Scheduled:"scheduled"},t.BodyType={PlainText:1,QuillDelta:2},t.PostErrorCodes={E_NOT_ALLOWED:"POST_E_NOT_ALLOWED",E_INCLUDE_PHISHING_URL:"POST_E_INCLUDE_PHISHING_URL",E_NULL_REQUIRED_FIELD:"POST_E_NULL_REQUIRED_FIELD",E_VALIDATION_ERROR:"POST_E_VALIDATION_ERROR",E_CONTENT_TOO_LONG:"POST_E_CONTENT_TOO_LONG",E_NOT_FOUND:"POST_E_NOT_FOUND"}},44775:(e,t,n)=>{n.d(t,{A:()=>x});var o=n(45023),a=n(36439),r=n(30915),i=n(11323),d=n.n(i),l=n(24329),s=n.n(l),c=n(90524),u=n(42331),m=n(27570),p=n(14087),g=n(60856),h=n(80261),b=n(46873),y=n(63888);let f=()=>{let{t:e}=(0,c.B)(["commmune-ui/components/TextField"]);return(0,o.Y)(y.a,{background:"xxlightGray",padding:6,children:(0,o.FD)(p.a,{children:[(0,o.Y)(b.E,{variant:"xSmall",fontWeight:"bold",lineHeight:300,color:"subdued",children:e("Private")}),(0,o.Y)(b.E,{variant:"xSmall",lineHeight:400,color:"subdued",children:e("Only you and the community administrator can see these items. Depending on community policy, this may be set to public.")})]})})},x=(0,a.forwardRef)(({multiline:e,noBorder:t,borderType:n="user",borderColor:r,id:i,name:l,type:m="text",placeholder:y,label:
4x,inputMode:I,disabled:w=!1,optional:D,radiusType:E="element",isPrivate:S,defaultValue:_,maxLength:B,minLength:O,onFocus:N,onChange:P,onBlur:Y,value:R,helpText:F,autoSize:L,width:q,rows:U=2,error:Q=!1,"aria-label":H,"data-cy":$,"data-testid":M},z)=>{let{t:j}=(0,c.B)(["commmune-ui/components/TextField"]),[G,K]=(0,a.useState)(R?.length||0),Z=e=>{K(e.target.value.length),P&&P(e)},W=!!s()(Q)||Q,V=(0,o.Y)(b.E,{whiteSpace:"nowrap",variant:"small",color:"subdued",lineHeight:400,children:`${G}/${B}`});return(0,o.Y)("div",{css:v,children:(0,o.FD)(p.a,{gap:5,children:[x&&(0,o.FD)(h.o,{justifyContent:"space-between",alignItems:"center",children:[(0,o.Y)("label",{htmlFor:i,children:(0,o.Y)(b.E,{variant:"small",children:x})}),D&&(0,o.Y)(b.E,{variant:"xSmall",lineHeight:400,color:"subdued",children:j("Optional")})]}),e?L?(0,o.FD)("span",{css:C(n,!!t,E,w,W,r),children:[(0,o.Y)(u.A,{id:i,name:l,css:A(w),placeholder:y,disabled:w,ref:z,onFocus:N,onBlur:Y,onChange:Z,value:R,maxLength:B,"aria-label":H,"data-cy":$,"data-testid":M,rows:U,children:_}),(0,o.Y)(h.o,{justifyContent:"end",children:B&&V})]}):(0,o.FD)("span",{css:C(n,!!t,E,w,W,r),children:[(0,o.Y)("textarea",{ref:z,name:l,css:A(w),onChange:Z,placeholder:y,disabled:w,"aria-label":H,"data-cy":$,"data-testid":M,value:R,maxLength:B,rows:U,children:_}),(0,o.Y)(h.o,{justifyContent:"end",children:B&&V})]}):(0,o.Y)("span",{css:T(n,E,w,W,r,q),children:(0,o.FD)(h.o,{justifyContent:"space-between",children:[(0,o.Y)("input",{css:k(w),inputMode:I,id:i,name:l,onChange:Z,type:m,value:R,minLength:O,maxLength:B,placeholder:y,disabled:w,ref:z,"aria-label":H,"data-cy":$,"data-testid":M}),B&&V]})}),s()(Q)&&!d()(Q.message)&&(0,o.FD)(h.o,{"data-cy":"text-field-error-message",gap:3,alignItems:"center",children:[(0,o.Y)(g.I,{source:"Exclamation_Fill",color:"critical"}),(0,o.Y)(b.E,{variant:"xSmall",lineHeight:400,color:"error",children:Q.message})]}),F&&(0,o.Y)(b.E,{variant:"xSmall",lineHeight:400,color:"subdued",children:F}),S&&(0,o.Y)(f,{})]})})});x.displayName="TextField";let v=(0,r.AH)("width:100%;label{font-size:",m.Z4[450],";line-height:",m.aK[400],";color:",m.Q1.user.text.default,";}"),C=(e,t,n,o,a,i)=>(0,r.AH)("width:",m.Po[100],";padding:",m.Kz[6],";border:",t?"none":`1px solid ${a?m.Q1.user.border.error:i||("admin"===e?m.Q1.admin.border:m.Q1.user.border.default)}`,";border-radius:",m.Js.user[n],";background-color:",o?m.Q1.user.background.xxlightGray:a&&m.Q1.user.background.error,";"),A=e=>(0,r.AH)("border:none;width:",m.Po[100],";resize:none;line-height:",m.aK[400],";font-size:",m.Z4[350],";color:",m.Q1.user.text.default,";background-color:inherit;&:focus{outline:none;}&::placeholder{color:",e?m.Q1.user.text.disabled:m.Q1.user.text.subdued,";}"),T=(e,t,n,o,a,i)=>(0,r.AH)("width:",i?m.Po[i]:"100%",";border:1px solid\n ",o?m.Q1.user.border.error:a||("admin"===e?m.Q1.admin.border:m.Q1.user.border.default),";border-radius:",m.Js.user[t],";padding:",m.Kz[6],";background-color:",n?m.Q1.user.background.xxlightGray:o&&m.Q1.user.background.error,";"),k=e=>(0,r.AH)("border:none;line-height:",m.aK[400],";font-size:",m.Z4[350],";width:",m.Po[100],";color:",m.Q1.user.text.default,";background-color:inherit;&::placeholder{color:",e?m.Q1.user.text.disabled:m.Q1.user.text.subdued,';}&:focus{outline:none;}&:after{"content":"test"}')},45301:(e,t,n)=>{n.d(t,{o:()=>S});var o=n(45023),a=n(816),r=n(92362),i=n(156),d=n.n(i),l=n(36439),s=n(90524),c=n(41471),u=n(93927),m=n(30915),p=n(27570),g=n(9106),h=n(5749),b=n(73021);function y({uploadImageURL:e,onClick:t}){return(0,o.FD)("div",{css:f,children:[(0,o.Y)(h.$,{type:"delete","data-testid":"delete-button",onClick:t}),e&&(0,o.Y)(g.E,{src:e,css:x,alt:""}),(0,o.Y)(b.y,{size:4})]})}let f=(0,m.AH)("position:relative;display:flex;justify-content:center;align-items:center;width:",p.Po[15],";height:",p.Ch[15],";border:1px solid ",p.Q1.user.border.default,";border-radius:",p.Js.user.image,";"),x=(0,m.AH)("position:absolute;width:",p.Po[100],";height:",p.Ch[100],";object-fit:cover;border-radius:calc(",p.Js.user.image," - 1px);z-index:3;");function v({children:e}){return(0,o.Y)("div",{css:C,children:e})}let C=(0,m.AH)("display:flex;align-items:center;flex-wrap:wrap;gap:",p.Kz[7],";padding:",p.Kz[5]," 0;");var A=n(14087),T=n(63888);function k({children:e}){return(0,o.Y)("div",{css:I,children:e})}let I=(0,m.AH)("display:flex;align-items:center;gap:",p.Kz[5],";");var w=n(80261),D=n(49390),E=n(44775);function S({icebreakerQuestion:e,promptMessage:t,answerLink:n,buttonColor:i,postButtonText:m,isSubmitting:p,isLoading:g,onSubmit:b,onClickInputArea:f,onClickChange:x}){let{t:C}=(0,s.B)(["commmune-ui/components/icebreaker"]),I=(0,c.useDispatch)(),_=(0,c.useSelector)(e=>(0,u.gL)(e)),{title:B,modelAnswer:O,hashtag:N,hasMore:P}=e,[Y,R]=(0,l.useState)(""),[F,L]=(0,l.useState)(!1),[q,U]=(0,l.useState)(!1),Q=(0,l.useRef)(null);(0,l.useEffect)(()=>{!g&&q&&Q.current&&(Q.current.focus(),U(!1))},[g,q]);let H=l.useRef(null),[$,M]=(0,l.useState)([]),z=""===Y.trim()&&!($&&$.length>0);return(0,o.Y)(T.a,{padding:7,background:"white",borderWidth:"thin",borderInlineWidth:{default:"thin",lg:"none"},borderColor:"default",borderRadius:{default:"element",lg:"none"},"data-cy":"icebreaker-question",children:(0,o.FD)(A.a,{gap:5,alignItems:"start",children:[(t||P)&&(0,o.FD)(w.o,{width:100,alignItems:"start",justifyContent:"space-between",children:[t&&(0,o.Y)(D.E,{as:"p",variant:"small",color:"subdued","data-cy":"icebreaker-question-username",children:t}),P&&(0,o.Y)(h.$,{type:"plain",onClick:()=>{x&&x(),U(!0)},loading:g,"data-cy":"icebreaker-change-button",children:C("Change question")})]}),(0,o.Y)(D.E,{as:"h3",variant:"large",fontWeight:"bold",lineHeight:400,"data-cy":"icebreaker-question-title",children:B}),n,(0,o.FD)(T.a,{width:100,borderWidth:"thin",borderColor:F?"focus":"default",borderRadius:"element",onClick:()=>{Q.current&&Q.current.focus()},children:[(0,o.Y)(E.A,{type:"text",multiline:!0,noBorder:!0,radiusType:"input",autoSize:!0,placeholder:O,ref:Q,onFocus:()=>{f&&f(),L(!0)},onBlur:()=>{L(!1)},onChange:e=>R(e.target.value),value:Y,"aria-label":"icebreaker-answer-input","data-cy":"icebreaker-answer-input","data-testid":"icebreaker-answer-input"}),(0,o.Y)(T.a,{paddingInline:7,children:(0,o.Y)(D.E,{as:"p",variant:"small",lineHeight:400,color:"link",children:`#${N.name}`})}),$&&$.length>0&&(0,o.Y)(T.a,{paddingBlock:5,paddingInline:7,paddingBlockEnd:0,children:(0,o.Y)(v,{children:$.map(e=>(0,o.Y)(y,{uploadImageURL:URL.createObjectURL(e.file),onClick:()=>{var t;return t=e.id,void M($.filter(e=>e.id!==t))}},e.id))})}),(0,o.Y)(T.a,{paddingBlock:5,paddingInline:7,children:(0,o.FD)(w.o,{width:100,alignItems:"center",justifyContent:"space-between",children:[(0,o.Y)(T.a,{children:_&&(0,o.Y)(h.$,{type:"image",onCh
4ange:e=>{if($.length>=a.default.MAX_UPLOAD_FILES_BY_POST)return void I((0,r.mO)(C("Up to {{maxUploadFiles}} files can be uploaded.",{maxUploadFiles:a.default.MAX_UPLOAD_FILES_BY_POST})));if(e.target.files&&e.target.files.length>0){let t=Array.from(e.target.files).filter(e=>e.size>a.default.MAX_UPLOAD_FILE_SIZE?(I((0,r.mO)(C("This file is too large to upload. It should be less than 100MB. File: {{filename}}",{filename:e.name}))),!1):!$.some(t=>t.file.name===e.name&&t.file.size===e.size));M(e=>e.concat(t.map(e=>({id:d().randomBytes(4).toString("hex"),file:e})))),H.current&&(H.current.value="")}},ref:H,"data-testid":"file-upload-button"})}),(0,o.Y)(k,{children:(0,o.Y)(h.$,{size:"small",backgroundColor:i,disabled:p||z,onClick:()=>{b(Y,$.map(e=>e.file))},"data-cy":"icebreaker-submit-button","data-testid":"icebreaker-submit-button",children:m})})]})})]})]})})}}}]); 5//# sourceMappingURL=737-52364c6db021eb1d.js.map 6//# debugId=45de8478-9e55-5c21-8298-72a0bdcc3c69
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.