PageSourceSearch

https://portal.kotodaman.jp/_next/static/chunks/3261.6442732690a611ea.js

js kotodaman.jp collected 2026-10-01 12:05:42 UTC 9,811 bytes, 5 lines download raw bytes

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]="9555c32c-c902-564e-808a-8f4e030f3dcb")}catch(e){}}();
3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3261],{1376:(e,t,a)=>{var o=a(3396);t.A=void 0;var l=o(a(70348)),n=a(2183);t.A=(0,l.default)((0,n.jsx)("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6z"}),"AttachFile")},14679:(e,t,a)=>{a.d(t,{P:()=>h});var o=a(45023),l=a(2004),n=a.n(l),i=a(90524),r=a(18097),s=a(49064),d=a(46854),c=a(97583);let p=r.c.Control;function u({children:e,...t}){let{t:a}=(0,i.B)(["components/organisms/admin/post_add"]);return(0,o.FD)(o.FK,{children:[(0,o.FD)(p,{...t,children:[(0,o.Y)("span",{className:"jsx-fa60466ed6f60c8a selector",children:a("Groups: ")}),e]}),(0,o.Y)(n(),{id:"fa60466ed6f60c8a",children:".selector.jsx-fa60466ed6f60c8a{padding:0 0 0 8px}"})]})}function h({brandGroupIds:e,boxId:t,categoryIndex:a,eventId:l,onChange:n}){let{t:r}=(0,i.B)(["components/organisms/admin/post_add"]),{data:p=[]}=(0,c.g2)(t,a,l),m=p.map(e=>({value:e.id,label:e.groupName})),g=e.map(e=>m.find(t=>t.value===e)).filter(e=>!!e);return(0,o.Y)("section",{"data-cy":"group-selector",children:(0,o.Y)(s.Ay,{value:g,styles:b,components:{Control:u,DropdownIndicator:d.mJ},options:m,isSearchable:!0,isMulti:!0,onChange:e=>{e&&n(e.map(e=>e.value))},placeholder:r("Select groups")})})}let b={control:e=>({...e,backgroundColor:"white",borderRadius:0,borderWidth:"1px 0",padding:"10px 0",margin:"0 auto",fontSize:16}),option:(e,{isDisabled:t,isFocused:a,isSelected:o})=>({...e,backgroundColor:t?void 0:o?"#000000":a?"#409EF5":void 0,color:a?"white":void 0}),indicatorSeparator:e=>({...e,display:"none"}),menuPortal:e=>({...e,zIndex:2}),menu:e=>({...e,zIndex:2}),multiValue:e=>({...e,borderRadius:"24px"}),multiValueLabel:e=>({...e,backgroundColor:"#EEEEEE",borderRadius:"24px 0 0 24px"}),multiValueRemove:e=>({...e,backgroundColor:"#EEEEEE",borderRadius:"0 24px 24px 0"})}},18868:(e,t,a)=>{a.r(t),a.d(t,{default:()=>E});var o=a(45023),l=a(2004),n=a.n(l),i=a(41471),r=a(53805),s=a(66787),d=a(90524);let c=({onClick:e})=>(0,o.Y)("button",{type:"button",onClick:e,style:{outline:"none"},children:(0,o.Y)("i",{className:"fas fa-poll-h","data-cy":"enquete-icon-in-toolbar"})});var p=a(36439),u=a(28317),h=a(23545),b=a(1376),m=a(47256);let g=[...m.D2,...m.FW],f=e=>Object.assign(e,{preview:URL.createObjectURL(e)}),v=({acceptVideo:e,iconStyle:t,iconSize:a,children:l,onAttach:n})=>{let i=e?[...g,...m.do]:g,r={...t,outline:"none"};return(0,o.Y)("button",{type:"button",style:r,children:(0,o.FD)("label",{children:[(0,o.Y)("input",{type:"file",accept:i.join(","),onChange:e=>{let t=e.target.files;null===t||n(Array.from(t).map(e=>{let t;return t=(e,t)=>new File([e],e.name,{type:t}),e.name.endsWith(".csv")?t(e,"text/csv"):e.name.endsWith(".zip")?t(e,"application/zip"):e}).map(f))},hidden:!0,"data-cy":"attach-file-input-in-toolbar"}),(0,o.Y)(b.A,{fontSize:a,style:{cursor:"pointer",display:"block"},"data-cy":"attach-file-icon-in-toolbar"}),l]})})};var Y=a(8819),x=a(9688);class y extends p.Component{preSaveVideos(e){let t=e.filter(e=>e.type&&e.type.startsWith("video/"));if((0,x.I)(t))return!1;this.props.onFileUploading(!0);let a=t=>{let a=e.map(e=>{let a=t.findIndex(t=>t.name===e.name);return -1!==a&&(e.thumbnail=t[a].thumbnail,e.video=t[a].video,e.tmpVideo=t[a].tmpVideo),e});a=a.filter(e=>this.props.files.some(t=>t.name===e.name)),this.props.onChange(a),this.props.onFileUploading(!1)},o=()=>{this.props.onFileUploading(!1)};return this.props.dispatch(Y.iG.request({successCb:a,errorCb:o,videos:t})),!0}preSaveImages(e){let t=e.filter(e=>(!e.type||!!e.type.startsWith("image/"))&&!(e.preview&&e.preview&&e.preview.startsWith("https://")));if((0,x.I)(t))return!1;this.props.onFileUploading(!0);let a=t=>{let a=e.map(e=>{let a=t.findIndex(t=>t.name===e.name);return -1!==a&&(e.preview=t[a].preview),e});this.props.onChange(a),this.props.onFileUploading(!1)},o=()=>{this.props.onFileUploading(!1)};return this.props.dispatch(Y.Sp.request({successCb:a,errorCb:o,images:t})),!0}render(){return(0,o.Y)(p.Fragment,{children:(0,o.Y)(v,{...this.props,acceptVideo:void 0===this.props.acceptVideo||this.props.acceptVideo,onAttach:this.onAttach})})}constructor(...e){super(...e),this.onAttach=e=>{let{maxUploadFiles:t,t:a}=this.props,o=a("This file is too large to upload. It should be less than 100MB. File:");e=e.filter(e=>{let t=e.size<s.default.MAX_UPLOAD_FILE_SIZE;return t||this.props.dispatch((0,h.mO)(o+e.name)),t});
3let l=this.props.files.concat(e);l.length>t&&(l=l.slice(0,t));let n=this.preSaveVideos(l),i=this.preSaveImages(l);this.props.onChange(l),n||i||this.props.onFileUploading(!1)}}}let F=(0,i.connect)()((0,u.C)(["components/molecules"])(y));function C({onChange:e,onFileUploading:t,files:a,isAdmin:l,onClick:n,attachingFileEnabled:i,forTemplate:r}){let{t:p}=(0,d.B)(["components/organisms/quill"]);return(0,o.Y)(o.FK,{children:(0,o.FD)("div",{id:"toolbar",children:[!r&&i&&(0,o.FD)(o.FK,{children:[(0,o.Y)("button",{className:"ql-image","aria-label":p("Add image"),"data-cy":"toolbar-image"}),(0,o.Y)(F,{files:a,onChange:e,onFileUploading:t,maxUploadFiles:s.default.MAX_UPLOAD_FILES_BY_POST,iconSize:"small"})]}),!r&&(0,o.Y)(c,{onClick:n}),(0,o.FD)("span",{children:[(0,o.FD)("select",{className:"ql-size",children:[(0,o.Y)("option",{value:"small"}),(0,o.Y)("option",{selected:!0}),(0,o.Y)("option",{value:"large"}),(0,o.Y)("option",{value:"huge"})]}),(0,o.Y)("button",{className:"ql-bold","aria-label":p("Bold"),"data-cy":"toolbar-bold"}),(0,o.Y)("button",{className:"ql-italic","aria-label":p("Italic"),"data-cy":"toolbar-italic"}),(0,o.Y)("button",{className:"ql-underline","aria-label":p("Underline"),"data-cy":"toolbar-underline"}),(0,o.Y)("button",{className:"ql-strike","aria-label":p("Strikethrough"),"data-cy":"toolbar-strike"})]}),(0,o.FD)("span",{children:[(0,o.Y)("select",{className:"ql-color"}),(0,o.Y)("select",{className:"ql-background"})]}),(0,o.FD)("select",{className:"ql-align",children:[(0,o.Y)("option",{selected:!0}),(0,o.Y)("option",{value:"center"}),(0,o.Y)("option",{value:"right"})]}),(0,o.FD)("span",{children:[(0,o.Y)("button",{className:"ql-list",value:"ordered","aria-label":p("Numbered list"),"data-cy":"toolbar-ordered-list"}),(0,o.Y)("button",{className:"ql-list",value:"bullet","aria-label":p("Bulleted list"),"data-cy":"toolbar-bullet-list"})]}),(0,o.FD)("span",{children:[(0,o.Y)("button",{className:"ql-blockquote","aria-label":p("Quote"),"data-cy":"toolbar-blockquote"}),(0,o.Y)("button",{className:"ql-code-block","aria-label":p("Code"),"data-cy":"toolbar-code-block"})]}),(0,o.Y)("span",{children:(0,o.Y)("button",{className:"ql-link","aria-label":p("Link"),"data-cy":"toolbar-link"})}),!r&&l&&(0,o.Y)("span",{children:(0,o.Y)("button",{className:"ql-video","aria-label":p("Add video"),"data-cy":"toolbar-video"})})]})})}var k=a(75718),I=a(12787),A=a(30322);let E=e=>{let t=(0,i.useDispatch)(),{isAdmin:a,attachingFileEnabled:l}=(0,i.useSelector)(e=>({isAdmin:e.user.roleId>=r.RoleId.AdminGuest,attachingFileEnabled:(0,I.ND)(e)})),s=(0,o.FD)(o.FK,{children:[(0,o.FD)("div",{className:"jsx-3bfefae1e74a8b65 toolbar-container",children:[e.renderToolbarExtensions&&(0,o.Y)("div",{className:"jsx-3bfefae1e74a8b65 toolbar-extensions",children:e.renderToolbarExtensions}),(0,o.Y)(C,{onChange:e.onChange,onFileUploading:e.onFileUploading,files:e.files,onClick:e.onClick,isAdmin:a,attachingFileEnabled:l,forTemplate:e.forTemplate})]}),(0,o.Y)(n(),{id:"3bfefae1e74a8b65",children:".toolbar-container.jsx-3bfefae1e74a8b65{position:sticky;top:0;z-index:1}.toolbar-extensions.jsx-3bfefae1e74a8b65{float:left;position:relative;z-index:2;padding-top:8px;padding-left:8px;display:flex;align-items:center}"})]});return(0,o.Y)(A.A,{showPopularHashtags:!0,dispatch:t,onContentsUpdate:e.onContentsUpdate,contentsForUpdate:e.contentsForUpdate,initialContents:e.initialContents,mention:{boxId:e.boxId,categoryIndex:e.categoryIndex},customToolbar:{id:"#toolbar",toolbar:s},placeholder:e.placeholder,scrollingContainer:`#${k.Y}`,"data-cy":e["data-cy"],"ug-id":e["ug-id"],isAdmin:a,imageDropAndPaste:!e.forTemplate,renderAfterEditor:e.renderAfterEditor})}},46854:(e,t,a)=>{a.d(t,{PK:()=>i,TR:()=>s,XL:()=>d,mJ:()=>r});var o=a(45023);let l=a(18097).c.DropdownIndicator,n=e=>(0,o.Y)(l,{...e,children:(0,o.Y)("span",{children:"▼"})}),i=e=>n(e),r=e=>n(e),s=e=>(0,o.FD)("div",{"ug-id":e["ug-id"],children:[(0,o.Y)("span",{children:e.left}),(0,o.Y)("span",{children:e.right})]}),d=()=>({control:e=>({...e,backgroundColor:"white",borderRadius:0,borderWidth:"1px 0",padding:"10px 0",margin:"0 auto",fontSize:16}),indicatorSeparator:e=>({...e,display:"none"}),menuPortal:e=>({...e,zIndex:2}),menu:e=>({...e,zIndex:2})})},48608:(e,t,a)=>{a.d(t,{I:()=>d});var o=a(45023),l=a(90524),n=a(49064),i=a(32604),r=a(46854),s=a(3841);function d({targetUserType:e,onChange:t}){let{t:a}=(0,l.B)(["components/organisms/admin/post_add"]),c=(0,r.XL)(),p=Object.values(i.xe).map(e=>({value:e,label:(0,o.Y)(r.TR,{left:a("Open to: "),right:a(s.i[e]),"ug-id":"admin-contents-posts-select-disclosure-range-label"})})).filter(e=>e.value!==i.xe.GuestUser);return(0,o.Y)("section",{"data-cy":"disclosure-range-selector",children:(0,o.Y)(n.Ay,{value:p.find(t=>t.value===e),components:{DropdownIndicator:r.PK},onChange:e=>{e&&t(e.value)},styles:c,options:p})})}}}]);
4//# sourceMappingURL=3261.6442732690a611ea.js.map
5//# debugId=9555c32c-c902-564e-808a-8f4e030f3dcb

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.