1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="384496a8-359e-433c-a6ee-26a487b704d3",e._sentryDebugIdIdentifier="sentry-dbid-384496a8-359e-433c-a6ee-26a487b704d3")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8779],{2255:(e,t,n)=>{"use strict";n.d(t,{A:()=>i.A});var i=n(58283)},2297:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/letters",function(){return n(60769)}])},6639:e=>{e.exports={pagination:"MyPagination_pagination__JosCp",pageNumberLinkButton:"MyPagination_pageNumberLinkButton__hrSEG",pageNumberButton:"MyPagination_pageNumberButton__vS63N",NavButtonWrapper:"MyPagination_NavButtonWrapper__nHAnE",active:"MyPagination_active__e512h",ellipsis:"MyPagination_ellipsis___90oi",pageNumber:"MyPagination_pageNumber__Sjs6T",mobileDisplayNone:"MyPagination_mobileDisplayNone__muXYU",desktopDisplayNone:"MyPagination_desktopDisplayNone__Yd4x1"}},8779:e=>{e.exports={card:"MinneAccountLetterCard_card__KVrC4",processing:"MinneAccountLetterCard_processing__2swM7",image:"MinneAccountLetterCard_image__RHaoF",content:"MinneAccountLetterCard_content__wWzLF",status:"MinneAccountLetterCard_status__3fJ6f",displayed:"MinneAccountLetterCard_displayed__3RCWm",follower_only:"MinneAccountLetterCard_follower_only__dJPgf",hidden:"MinneAccountLetterCard_hidden__HwDJf",title:"MinneAccountLetterCard_title___VVxN",notificationText:"MinneAccountLetterCard_notificationText__9nfzy","only-sp":"MinneAccountLetterCard_only-sp__4LuOW",waiting:"MinneAccountLetterCard_
1waiting__sWOgQ",rotate:"MinneAccountLetterCard_rotate__Ou_i_",failed:"MinneAccountLetterCard_failed__BulOS",menu:"MinneAccountLetterCard_menu__1PxUQ",menuButton:"MinneAccountLetterCard_menuButton__g_vJj",menuButtonText:"MinneAccountLetterCard_menuButtonText__sDHQx",list:"MinneAccountLetterCard_list__L34yu",isActive:"MinneAccountLetterCard_isActive__f78Ph",listItem:"MinneAccountLetterCard_listItem___jaVz",listItemLink:"MinneAccountLetterCard_listItemLink__bahwK",listItemButton:"MinneAccountLetterCard_listItemButton__KEnRn",reportWrapper:"MinneAccountLetterCard_reportWrapper__re1A3",reportIconWrapper:"MinneAccountLetterCard_reportIconWrapper__xj1nl",reportValue:"MinneAccountLetterCard_reportValue__BxnJp"}},12008:(e,t,n)=>{"use strict";n.d(t,{J:()=>i.J,v:()=>i.v});var i=n(60106)},12666:(e,t,n)=>{"use strict";n.d(t,{A:()=>i.A});var i=n(86681)},16831:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var i=n(37876),a=n(14232),s=n(98477),l=n(3378),r=n(27632),o=n.n(r);let c=(0,a.memo)(e=>{let{message:t,describeElement:n="tooltip",initialTooltipPosition:r,size:c}=e,[d,u]=(0,a.useState)(!1),m=(0,a.useRef)(null),[_,p]=(0,a.useState)(!1),[h,g]=(0,a.useState)(!1),x=(0,a.useRef)(null),f=(0,a.useRef)(null),[N,v]=(0,a.useState)({x:0,y:0});(0,a.useEffect)(()=>(document.addEventListener("click",j),document.addEventListener("touchmove",j),()=>{document.removeEventListener("click",j),document.removeEventListener("touchmove",j)}),[]),(0,a.useEffect)(()=>{u(!0),m.current=document.createElement("div"),document.body.appendChild(m.current)},[]);let j=e=>{if(!e.composedPath||!f.current||!x.current)return;let t=e.composedPath();t.includes(f.current)||t.includes(x.current)||(p(!1),g(!1))},L=(0,a.useCallback)(()=>{var e,t,n,i,a,s,l,o,c,d,u,m;let _=null!=(l=null==(e=x.current)?void 0:e.getBoundingClientRect().x)?l:0,p=null!=(o=null==(t=x.current)?void 0:t.getBoundingClientRect().y)?o:0,h=null!=(c=null==(n=x.current)?void 0:n.getBoundingClientRect().width)?c:0,N=null!=(d=null==(i=x.current)?void 0:i.getBoundingClientRect().height)?d:0,j=null!=(u=null==(a=f.current)?void 0:a.getBoundingClientRect().width)?u:0,L=null!=(m=null==(s=f.current)?void 0:s.getBoundingClientRect().height)?m:0,y=(()=>{switch(r){case"top":return{x:_+h/2-j/2+window.scrollX,y:p-L+window.scrollY-4};case"bottom":return{x:_+h/2-j/2+window.scrollX,y:p+N+window.scrollY+4};case"left":return{x:_-j+window.scrollX-4,y:p+window.scrollY};case"right":return{x:_+h+window.scrollX+4,y:p+window.scrollY};default:return{x:_+window.scrollX,y:p+window.scrollY}}})();v({x:y.x<0?16:y.x+j>document.body.clientWidth?document.body.clientWidth-j-16:y.x,y:y.y<window.scrollY?window.scrollY+16:y.y+L>window.scrollY+window.innerHeight?window.scrollY+window.innerHeight-L-16:y.y}),g(!0)},[r]);return d?(0,i.jsxs)("div",{className:o().tooltip,onMouseLeave:()=>g(!1),children:[(0,i.jsx)("button",{className:"".concat(o().trigger," ").concat(o()[c?"size-".concat(c):""]),ref:x,onClick:()=>p(!_),onMouseEnter:()=>L(),"aria-describedby":n,children:(0,i.jsx)(l.A,{alt:"ãã¼ã«ããã",src:"/minne/icon/icon-question-light-gray.svg",width:c||20,height:c||20,layout:"fixed",className:o()["icon-tooltip"]})}),m.current&&(0,s.createPortal)((0,i.jsx)("div",{className:"\n ".concat(o().message,"\n ").concat(h||_?o()["is-open"]:o()["is-close"],"\n "),"aria-hidden":!(h||_),id:n,ref:f,role:"tooltip",style:{top:N.y,left:N.x},children:(0,i.jsx)("p",{children:t})}),m.current)]}):null})},21198:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var i=n(37876),a=n(3378),s=n(27705),l=n.n(s);let r={small:"/minne/page/account/minne_plus/beltbanner_small.png",large:"/minne/page/account/minne_plus/beltbanner_large.png",alt:"å®è³ªç¡æã§ä½¿ããminne PLUS åºåãã£ã¼ã¸ããã©ã³ã«è¿½å ",url:"/account/minne_plus"},o=e=>{let{beltBannerInfo:t}=e,n={small:(null==t?void 0:t.smallImagePath)||r.small,large:(null==t?void 0:t.largeImagePath)||r.large},s=(null==t?void 0:t.alt)||r.alt,o=(null==t?void 0:t.url)||r.url;return(0,i.jsx)("div",{className:l().beltBanner,children:(0,i.jsxs)("a",{href:o,className:l().beltBannerLink,"data-tracking-category":"ãã«ãããã¼","data-tracking-action":"minne PLUSã¸é·ç§»","data-tracking-label":"minne PLUS",children:[(0,i.jsx)("span",{className:l().beltBannerImageSmall,children:(0,i.jsx)(a.A,{src:n.small,alt:s,layout:"fill",objectFit:"cover"})}),(0,i.jsx)("span",{className:l().beltBannerImageLarge,children:(0,i.jsx)(a.A,{src:n.large,alt:s,layout:"fill",objectFit:"contain"})})]})})};var c=n(2255),d=n(37553),u=n(12666),m=n(42201),_=n(83377),p=n(14232),h=n(75470),g=n.n(h);let x=(0,p.memo)(e=>{let{viewer:t,activeNav:n,children:a,isBlocked:s=!1,beltBannerInfo:l,isShopStatusScheduleEnabled:r}=e,[h,x]=(0,p.useState)(!1);return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:g().wrapper,children:[(0,i.jsx)("div",{className:g().headerWrapper,inert:h,children:(0,i.jsx)(_.A,{withAccountDrawerMenu:!0,onOpenDrawer:()=>x(!0)})}),"creator"===t.enumUserType&&("letters"===n||"plus"===n||"ads"===n||"friends"===n)&&(0,i.jsx)(o,{beltBannerInfo:l}),(0,i.jsxs)("div",{className:g().sidebarLayout,children:[(0,i.jsx)(u.A,{viewer:t,activeNavItem:n,isS
1hopStatusScheduleEnabled:r}),(0,i.jsx)(c.A,{viewer:t,isOpened:h,activeNavItem:n,isShopStatusScheduleEnabled:r,onCloseDrawer:()=>x(!1)}),(0,i.jsxs)("div",{className:g().contentWrapper,children:[s&&(0,i.jsx)(m.A,{linkUrl:"https://help.minne.com/hc/ja/articles/9194846322323",linkText:"詳ããè¦ã"}),(0,i.jsx)("div",{className:g().content,inert:h,children:a})]})]}),(0,i.jsx)("div",{inert:h,children:(0,i.jsx)(d.A,{})})]})})})},27632:e=>{e.exports={tooltip:"MyTooltip_tooltip__ordwJ",trigger:"MyTooltip_trigger__Fu6Q_","size-16":"MyTooltip_size-16__gUqm2","size-18":"MyTooltip_size-18__eicyF",message:"MyTooltip_message__ON_yE","is-open":"MyTooltip_is-open__jGt3A","is-close":"MyTooltip_is-close__tswn_"}},27705:e=>{e.exports={beltBanner:"MinneAccountBeltBanner_beltBanner__AQQyW",beltBannerLink:"MinneAccountBeltBanner_beltBannerLink__RTBE_",beltBannerImageSmall:"MinneAccountBeltBanner_beltBannerImageSmall__JWkl1",beltBannerImageLarge:"MinneAccountBeltBanner_beltBannerImageLarge__kS542"}},30632:e=>{e.exports={opened:"MyModal_opened__PSRQX",closed:"MyModal_closed__7tV2U","modal-scrim":"MyModal_modal-scrim__cWl35"}},30847:e=>{e.exports={scrim:"MinneDeleteLetterNotificationModal_scrim__v5Y1e",dialog:"MinneDeleteLetterNotificationModal_dialog__3rwDv",title:"MinneDeleteLetterNotificationModal_title__2HkwT",list:"MinneDeleteLetterNotificationModal_list__5eYrG",listTitle:"MinneDeleteLetterNotificationModal_listTitle__xPcbq",listDesc:"MinneDeleteLetterNotificationModal_listDesc__fhbTD",buttons:"MinneDeleteLetterNotificationModal_buttons__HkN52",closeButton:"MinneDeleteLetterNotificationModal_closeButton__8Gdws",deleteButton:"MinneDeleteLetterNotificationModal_deleteButton__MpKyr"}},32050:e=>{e.exports={"header-wrapper":"AccountLettersListPage_header-wrapper__GEhUR",wrapper:"AccountLettersListPage_wrapper__e_D0a","sidebar-layout":"AccountLettersListPage_sidebar-layout__Jw_ar","sidebar-wrapper":"AccountLettersListPage_sidebar-wrapper__i__EY",container:"AccountLettersListPage_container__re6so",content:"AccountLettersListPage_content__5XWCN",link:"AccountLettersListPage_link__h8sjU",helpLink:"AccountLettersListPage_helpLink__53Ucs","outline-primary-button":"AccountLettersListPage_outline-primary-button__uUo6G","outline-secondary-button":"AccountLettersListPage_outline-secondary-button__zT_le","outline-primary-button-small":"AccountLettersListPage_outline-primary-button-small__PWqwI","outline-secondary-button-small":"AccountLettersListPage_outline-secondary-button-small__cIAjB","title-wrapper":"AccountLettersListPage_title-wrapper__u943F","title-button":"AccountLettersListPage_title-button__wvBgJ","letter-list-wrapper":"AccountLettersListPage_letter-list-wrapper__kxgkd","pageback-wrapper":"AccountLettersListPage_pageback-wrapper__LXDpe",tips:"AccountLettersListPage_tips__no1Xd",tipsTitle:"AccountLettersListPage_tipsTitle__UsUm6",tipsContent:"AccountLettersListPage_tipsContent__Dz4NZ",tipsLink:"AccountLettersListPage_tipsLink__K0JWu",tipsButton:"AccountLettersListPage_tipsButton__fh_ec",minnePlusPrImageLarge:"AccountLettersListPage_minnePlusPrImageLarge__OR8kK",minnePlusPrImageSmall:"AccountLettersListPage_minnePlusPrImageSmall__3p11B",pagination:"AccountLettersListPage_pagination__KIbcj",list:"AccountLettersListPage_list__imEMZ",listItem:"AccountLettersListPage_listItem__6QVYk","success-wrapper":"AccountLettersListPage_success-wrapper__yc12C","success-message":"AccountLettersListPage_success-message__7AVK3","failure-wrapper":"AccountLettersListPage_failure-wrapper__9BrPl","failure-message":"AccountLettersListPage_failure-message__xPp7D",emptyWrapper:"AccountLettersListPage_emptyWrapper__ggldF",emptyTitle:"AccountLettersListPage_emptyTitle__aoKd7",emptyDescription:"AccountLettersListPage_emptyDescription__yoF_p",emptyImage:"AccountLettersListPage_emptyImage__oQQGG"}},32311:(e,t,n)=>{"use strict";n.d(t,{A:()=>i.A});var i=n(53155)},37553:(e,t,n)=>{"use strict";n.d(t,{A:()=>i.A});var i=n(65235)},39804:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(37876),a=n(77328),s=n.n(a);let l=(0,n(14232).memo)(e=>{let{title:t,description:n,canonicalHref:a,keywords:l,ogTitle:r,ogDescription:o,ogSiteName:c,ogType:d,ogImage:u,favicon:m,appUrl:_,children:p,noindex:h=!1,twitterMetaAttributes:g={card:"summary_large_image",site:"@minnecom"}}=e;return(0,i.jsxs)(s(),{children:[(0,i.jsx)("meta",{charSet:"utf-8"}),(0,i.jsx)("meta",{name:"viewport",content:"width=device-width"}),(0,i.jsx)("title",{children:t}),(0,i.jsx)("meta",{name:"description",content:n}),(0,i.jsx)("link",{rel:"icon",href:null!=m?m:"/favicon.ico"}),a&&(0,i.jsx)("link",{rel:"canonical",href:a}),l&&(0,i.jsx)("meta",{name:"keywords",content:l}),(0,i.jsx)("meta",{property:"og:site_name",content:c}),(0,i.jsx)("meta",{property:"og:title",content:r}),(0,i.jsx)("meta",{property:"og:description",content:o}),(0,i.jsx)("meta",{property:"og:type",content:d}),(0,i.jsx)("meta",{property:"og:image",content:u}),g&&Object.entries(g).map(e=>{let[t,n]=e;return(0,i.jsx)("meta",{property:"twitter:".concat(t),content:n},t)}
1),_&&(0,i.jsx)("meta",{property:"al:ios:url",content:_}),(0,i.jsx)("meta",{property:"al:ios:app_store_id",content:"563764220"}),(0,i.jsx)("meta",{property:"al:ios:app_name",content:"minne byGMOããã"}),(0,i.jsx)("meta",{property:"al:android:url",content:_}),(0,i.jsx)("meta",{property:"al:android:package",content:"jp.co.paperboy.minne.app"}),(0,i.jsx)("meta",{property:"al:android:app_name",content:"minne byGMOããã"}),h&&(0,i.jsx)("meta",{name:"robots",content:"noindex"}),p]})})},40323:e=>{function t(e){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=40323,e.exports=t},42201:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var i=n(37876),a=n(14232),s=n(48230),l=n.n(s),r=n(74433),o=n.n(r),c=n(3378),d=n(98369),u=n.n(d);let m=(0,a.memo)(e=>{let{message:t="ãããã¯ä¸",linkUrl:n,linkText:a}=e;return(0,i.jsxs)("div",{className:o().wrapper,children:[(0,i.jsx)("div",{className:o().icon,children:(0,i.jsx)(c.A,{alt:"ãããã¯ä¸",src:"/minne/icon/icon-block-white.svg",width:20,height:20})}),(0,i.jsx)("span",{className:o().message,children:t}),n&&(0,i.jsx)(l(),{href:(e=>{try{let t=new URL(e);return"https:"===t.protocol}catch(e){return!1}})(n)?u()(n):"#",className:o().link,children:a})]})})},47426:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(37876),a=n(14232),s=n(90888),l=n.n(s);let r=(0,a.memo)(e=>{let{isDisplayed:t,message:n,type:a}=e;return(0,i.jsx)(i.Fragment,{children:t&&(0,i.jsx)("div",{className:l()["snackbar-".concat(a)],children:(0,i.jsx)("div",{className:l()["snackbar-container"],children:(0,i.jsx)("p",{className:l()["snackbar-message"],"aria-live":"polite",children:n})})})})})},53155:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var i=n(37876),a=n(12008),s=n(69241),l=n(48230),r=n.n(l),o=n(14232),c=n(6639),d=n.n(c);let u=(0,o.memo)(e=>{let{type:t="link",currentPage:n,pageLength:l,...o}=e,c="link"===t,u=1===n,m=n===l,_=e=>{let t=e===n;if(c){let{hrefBuilder:n}=o;return(0,i.jsx)("li",{children:(0,i.jsx)(r(),{className:(0,s.A)(d().pageNumberLinkButton,t&&d().active),href:n(e),"aria-label":"".concat(e,"ãã¼ã¸ç®"),"aria-current":t?"page":"false",children:e})},e)}{let{onClick:n}=o;return(0,i.jsx)("li",{children:(0,i.jsx)("button",{type:"button",className:(0,s.A)(d().pageNumberButton,t&&d().active),onClick:()=>n(e),"aria-label":"".concat(e,"ãã¼ã¸ç®"),"aria-current":t?"page":"false",children:e})},e)}},p=(e,t,n,s)=>{let l="prev"===e,r="mobile"===n,d=l?"åã¸":"次ã¸";if(c){let{hrefBuilder:e}=o;return(0,i.jsx)(i.Fragment,{children:s?(0,i.jsx)(a.J,{type:"button",appearance:r?"outline":"text",size:r?"m":"s",isFullWidth:r,labelText:d,leadingIconUrl:l?"/minne/icon/icon-chevron-left-black.svg":void 0,trailingIconUrl:l?void 0:"/minne/icon/icon-chevron-right-black.svg",disabled:s}):(0,i.jsx)(a.v,{href:e(t),appearance:r?"outline":"text",size:r?"m":"s",isFullWidth:r,labelText:d,leadingIconUrl:l?"/minne/icon/icon-chevron-left-black.svg":void 0,trailingIconUrl:l?void 0:"/minne/icon/icon-chevron-right-black.svg"})})}{let{onClick:e}=o;return(0,i.jsx)(a.J,{type:"button",appearance:r?"outline":"text",size:r?"m":"s",isFullWidth:r,labelText:d,leadingIconUrl:l?"/minne/icon/icon-chevron-left-black.svg":void 0,trailingIconUrl:l?void 0:"/minne/icon/icon-chevron-right-black.svg",onClick:()=>e(t),disabled:s})}},h=[];h.push(_(1)),n>4&&h.push((0,i.jsx)("li",{children:(0,i.jsx)("span",{className:d().ellipsis,children:"..."})},"start-ellipsis"));for(let e=Math.max(2,n-2);e<=Math.min(l-1,n+2);e++)h.push(_(e));return n<l-3&&h.push((0,i.jsx)("li",{children:(0,i.jsx)("span",{className:d().ellipsis,children:"..."})},"end-ellipsis")),l>1&&h.push(_(l)),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("nav",{"aria-label":"ãã¼ã¸ãã¼ã·ã§ã³",className:d().mobileDisplayNone,children:(0,i.jsxs)("ul",{className:d().pagination,children:[(0,i.jsx)("li",{children:p("prev",n-1,"desktop",u)},"prev"),h,(0,i.jsx)("li",{children:p("next",n+1,"desktop",m)},"next")]})}),(0,i.jsx)("nav",{"aria-label":"ãã¼ã¸ãã¼ã·ã§ã³",className:d().desktopDisplayNone,children:(0,i.jsxs)("ul",{className:d().pagination,children:[(0,i.jsx)("li",{className:d().NavButtonWrapper,children:p("prev",n-1,"mobile",u)},"prev"),(0,i.jsx)("li",{children:(0,i.jsxs)("span",{className:d().pageNumber,children:[n,"/",l]})},"pageNumber"),(0,i.jsx)("li",{className:d().NavButtonWrapper,children:p("next",n+1,"mobile",m)},"next")]})})]})})},54469:e=>{e.exports={scrim:"MinneCreateLetterNotificationModal_scrim__LGgFQ",dialog:"MinneCreateLetterNotificationModal_dialog__I__l6",header:"MinneCreateLetterNotificationModal_header__C8LPb",heading:"MinneCreateLetterNotificationModal_heading__FgZmA",helpLink:"MinneCreateLetterNotificationModal_helpLink__eIyCk",contents:"MinneCreateLetterNotificationModal_contents__w8hfj",letter:"MinneCreateLetterNotificationModal_letter__uYq9X",image:"MinneCreateLetterNotificationModal_image__fNJnN",title:"MinneCreateLetterNotificationModal_title__qXSWj",list:"MinneCreateLetterNotificationModal_list__ho5_Y",listItem:"MinneCreateLetterNotificationModal_listItem__7GhT_",notificationCount:"MinneCreateLetterNotificationModal_notificationCount__1DyDN",notificationCountTitle:"MinneCreateLetterNotificationModal_notificationCountTitle__tjwSl",listLabel:"MinneCreateLetterNotificationModal_listLabel__tEF1R",listContent:"MinneCreateLetterNotificationModal_listContent__AL0rz",listContents:"MinneCreateLetterNotificationModal_listContents__1tuYR",noFollowerMessage:"MinneCreateLetterNotificationModal_noFollowerMessage__PhfBX",timeSelect:"MinneCreateLetterNotificationModal_timeSelect__F8JW8",dropdown:"MinneCreateLetterNotificationModal_dropdown__KFMCM",scheduled_at_error:"MinneCreateLetterNotificationModal_scheduled_at_error__
1ky2LY",timezone:"MinneCreateLetterNotificationModal_timezone__7dht2",share:"MinneCreateLetterNotificationModal_share__cMXBK",shareMessage:"MinneCreateLetterNotificationModal_shareMessage__s5omd",shareCopyURL:"MinneCreateLetterNotificationModal_shareCopyURL__r1AWv",shareCopyURLText:"MinneCreateLetterNotificationModal_shareCopyURLText__tkL7L",buttons:"MinneCreateLetterNotificationModal_buttons__A9yle",complate:"MinneCreateLetterNotificationModal_complate__OgtkH",complateButtons:"MinneCreateLetterNotificationModal_complateButtons__twJgs",closeButton:"MinneCreateLetterNotificationModal_closeButton__expVZ",submitButton:"MinneCreateLetterNotificationModal_submitButton___KVFA",outlined:"MinneCreateLetterNotificationModal_outlined__UOpEl",datePicker:"MinneCreateLetterNotificationModal_datePicker__SbV_W",icon:"MinneCreateLetterNotificationModal_icon__pk5CM",scheduledDate:"MinneCreateLetterNotificationModal_scheduledDate__H9QNW",notices:"MinneCreateLetterNotificationModal_notices__K57UE",notice:"MinneCreateLetterNotificationModal_notice__rvEtv"}},59437:(e,t,n)=>{"use strict";n.d(t,{A:()=>i.A});var i=n(66028)},60769:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>Q,default:()=>G});var i=n(37876),a=n(62917),s=n(57536),l=n(89099),r=n(14232),o=n(3378),c=n(56557),d=n.n(c);n(69776);var u=n(64301),m=n.n(u),_=n(71576),p=n.n(_);d().extend(p()),d().extend(m()),d().locale("ja"),d().tz.setDefault("Asia/Tokyo");let h=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYYå¹´MMæDDæ¥(dd) H:mm",i=d()(e).tz().format("YYYY-MM-DD")===d()(t).tz().format("YYYY-MM-DD"),a=d()(e).tz().format(n),s=i?d()(t).tz().format("H:mm"):d()(t).tz().format(n);return"".concat(a,"ã").concat(s)};var g=n(69241),x=n(68827),f=n.n(x),N=n(8779),v=n.n(N),j=n(99758);d().extend(p()),d().extend(m()),d().tz.setDefault("Asia/Tokyo");let L=(0,r.memo)(e=>{let{id:t,isPublished:n,shopPath:a,letterNotification:s,subscriptionBenefitsAvailability:l,handleClickCreateNotifyFollowers:r,handleClickDeleteNotifyFollowers:o,handleDeleteLetter:c,handleClickCopyLetterUrl:d}=e;return(0,i.jsxs)(i.Fragment,{children:[n&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("li",{className:v().listItem,children:(0,i.jsx)("a",{href:"".concat(a,"/letters/").concat(t),className:v().listItemLink,target:"_blank",rel:"noreferrer",children:"ã·ã§ããã§ç¢ºèª"})}),(0,i.jsx)("li",{className:v().listItem,children:(0,i.jsx)("button",{onClick:()=>{d("".concat(window.location.origin).concat(a,"/letters/").concat(t))},className:v().listItemButton,children:"ã¬ã¿ã¼ã®URLãã³ãã¼"})}),l&&l.isLetterPushNotificationSendable&&(null==s?void 0:s.status)!=="done"&&(s&&(null==s?void 0:s.status)!=="failed"?(0,i.jsx)("li",{className:v().listItem,children:(0,i.jsx)("button",{onClick:o,className:v().listItemButton,children:"éç¥äºç´ãåãæ¶ã"})}):(0,i.jsx)("li",{className:v().listItem,children:(0,i.jsx)("button",{onClick:r,className:v().listItemButton,children:"ãã©ãã¯ã¼ã«éç¥"})}))]}),(0,i.jsx)("li",{className:v().listItem,children:(0,i.jsx)("button",{onClick:()=>c(t),className:v().listItemButton,children:"åé¤"})})]})}),y=(0,r.memo)(e=>{let{id:t,title:n,status:a,reactionCount:s,letterViewCount:l,imageUrl:c,shopPath:u,letterNotification:m,subscriptionBenefitsAvailability:_,isDisplayLetterViewCountEnabled:p,handleDeleteLetter:x,handleClickCreateNotifyFollowers:N,handleClickDeleteNotifyFollowers:y,handleClickCopyLetterUrl:b}=e,[M,w]=(0,r.useState)(!1),A=(0,r.useRef)(null),C=(0,r.useCallback)(e=>{e.target!==A.current&&(w(!1),document.body.removeEventListener("click",C))},[]),k=(0,r.useCallback)(()=>{M&&document.body.removeEventListener("click",C),w(e=>!e),document.body.addEventListener("click",C)},[C,M]);(0,r.useEffect)(()=>()=>{document.body.removeEventListener("click",C)},[C]);let P=(0,r.useMemo)(()=>{switch(a){case"displayed":return"å
¬é";case"follower_only":return"ãã©ãã¯ã¼éå®å
¬é";case"hidden":return"éå
¬é";default:return null}},[a]),D=(0,r.useMemo)(()=>{let e="YYYY/MM/DD H:mm";switch(null==m?void 0:m.__typename){case"Waiting":return"".concat(h(m.startOfScheduledAt,m.endOfScheduledAt,e)," éç¥äºå®");case"Processing":return"".concat(h(m.startOfScheduledAt,m.endOfScheduledAt,e)," ãã©ãã¯ã¼éç¥é
ä¿¡ä¸");case"Failed":return"éç¥ã«å¤±æãã¾ãããå度ã試ããã ããã";case"Done":return"".concat(d()(m.notifiedAt).tz().format(e)," ãã©ãã¯ã¼éç¥æ¸ã¿");default:return null}},[m]),B=(0,r.useMemo)(()=>"displayed"===a||"follower_only"===a,[a]);return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:(0,g.A)(v().card,(null==m?void 0:m.status)==="processing"&&v().processing),children:[(0,i.jsx)("a",{href:"/account/letters/".concat(t,"/edit"),className:v().image,tabIndex:(null==m?void 0:m.status)==="processing"?-1:void 0,children:c?(0,i.jsx)(f(),{layout:"intrinsic",width:1200,height:630,objectFit:"cover",src:c,alt:"",unoptimized:!0,"data-testid":"letter-image"}):(0,i.jsx)("div",{"data-testid":"letter-default-image",children:(0,i.jsx)(o.A,{layout:"intrinsic",width:1200,height:630,src:"/model/image/picture/letter_empty.jpg",alt:""})})}),(0,i.jsxs)("div",{className:v().content,children:[P&&(0,i.jsx)("span",{className:(0,g.A)(v().status,v()["".concat(a)]),children:P}),(0,i.jsx)("a",{href:"/account/letters/".concat(t,"/edit"),className:v().title,tabIndex:(null==m?void 0:m.status)==="processing"?-1:void 0,children:n}),m&&(0,i.jsx)("p",{className:(0,g.A)(v().notificationText,v()["".concat(m.status)]),children:D})]}),(0,i.jsxs)("div",{className:v().menu,children:[(0,i.jsx)("button",{ref:A,className:v().menuButton,onClick:k,disabled:(null==m?void 0:m.status)==="processing",children:(0,i.jsx)("span",{className:v().menuButtonText,children:"ã¡ãã¥ã¼"})}),(0,i.jsx)("ul",{className:(0,g.A)(v().list,M&&v().isActive),children:(0,i.jsx)(L,{isPublished:B,id:t,shopPath:u,handleDeleteLetter:x,letterNotification:m,subscriptionBenefitsAvailability:_,handleClickCreateNotifyFollowers:N,handleClickDeleteNotifyFollowers:y,handleClickCopyLetterUrl:b})})]})]}),(0,i.jsxs)("div",{className:v().reportWrapper,children:[p&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:v().reportIconWrapper,children:(0,i.jsx)(o.A,{src:"/minne/page/pages/letters/gray-eye.svg",width:15,height:10,objectFit:"cover",alt:""})}),(0,i.jsx)("span",{className:v().reportValue,children:(null==l?void 0:l.count)?(0,j.y)(null==l?void 0:l.count):0})]}),((null==_?void 0:_.isUserCanReactLetter)||!!(null==s?void 0:s.totalCount))&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:v().reportIconWrapper,children:(0,i.jsx)(o.A,{src:"/minne/page/pages/letters/gray-smile.svg",width:13,height:13,objectFit:"cover",alt:""})}),(0,i.jsx)("span",{className:v().reportValue,children:(null==s?void 0:s.formattedTotalCount)||0})]})]}),m&&(0,i.jsx)("p",{className:(0,g.A)(v().notificationText,v()["".concat(m.status)],v()["only-sp"]),children:D})]})});var b=n(32311),M=n(48230),w=n.n(M),A=n(32050),C=n.n(A),k=n(21198),P=n(59437);d().extend(m()),d().extend(p());let D=e=>{let{viewer:t,beltBannerInfo:n,letters:a,shopPath:s,paginationInfo:l,deleted:c,isFailedDeleted:u,subscriptionBenefitsAvailability:m,isDisplayLetterViewCountEnabled:_,handleClickCreatePushNotificationToFollowers:p,handleClickDeletePushNotificationToFollowers:h,handleDeleteLetter:g,handleClickCopyLetterUrl:x,isShopStatusScheduleEnabled:f}=e,{currentPage:N,pageLength:v}
1=l,[j,L]=(0,r.useState)(void 0);return(0,r.useEffect)(()=>{L(d()().tz("Asia/Tokyo").format("YYYY-MM-DD HH:mm:ss"))},[]),(0,i.jsxs)(k.A,{viewer:t,activeNav:"letters",beltBannerInfo:n,isShopStatusScheduleEnabled:f,children:[c&&(0,i.jsx)("div",{className:C()["success-wrapper"],children:(0,i.jsx)("p",{className:C()["success-message"],children:"ã¬ã¿ã¼ã®åé¤ãå®äºãã¾ããã"})}),u&&(0,i.jsx)("div",{className:C()["failure-wrapper"],children:(0,i.jsx)("p",{className:C()["failure-message"],children:"ã¬ã¿ã¼ãåé¤ã§ãã¾ããã§ãããæéãããã¦ã試ããã ããã"})}),!!j&&d()("2024-06-01T00:00:00+09:00").tz("Asia/Tokyo").isAfter(j)&&(0,i.jsxs)("div",{className:C().minnePlusPrWrapper,children:[(0,i.jsx)("div",{className:C().minnePlusPrImageSmall,children:(0,i.jsx)("a",{className:C().minnePlusPrSmallLink,href:"/lp/minne-plus",target:"_blank",rel:"noopener noreferrer",children:(0,i.jsx)(o.A,{src:"/minne/page/pages/letters/minne_account_letter_sp.png",alt:"ã¬ã¿ã¼ããã£ã¨æ´»ç¨ãã¦è²©ä¿ã«ç¹ãã¾ãããï¼ã¬ã
1¿ã¼ããã©ãã¯ã¼éå®å
¬éããããã¬ã¿ã¼ã®é
ä¿¡ããã©ãã¯ã¼ã«éç¥ãããã¨ãã§ãããminnePLUSä¼å¡éå®ã®æ©è½ãããã¾ãã詳ããã¯ãã¡ãã",layout:"fill"})})}),(0,i.jsx)("div",{className:C().minnePlusPrImageLarge,children:(0,i.jsx)("a",{className:C().minnePlusPrLargeLink,href:"/lp/minne-plus",target:"_blank",rel:"noopener noreferrer",children:(0,i.jsx)(o.A,{src:"/minne/page/pages/letters/minne_account_letter.png",alt:"ã¬ã¿ã¼ããã£ã¨æ´»ç¨ãã¦è²©ä¿ã«ç¹ãã¾ãããï¼ã¬ã¿ã¼ããã©ãã¯ã¼éå®å
¬éããããã¬ã¿ã¼ã®é
ä¿¡ããã©ãã¯ã¼ã«éç¥ãããã¨ãã§ãããminnePLUSä¼å¡éå®ã®æ©è½ãããã¾ãã5/30ã¾ã§ãªãªã¼ã¹è¨å¿µã®ãå¾ãªãã£ã³ãã¼ã³ã宿½ä¸ï¼è©³ããã¯ãã¡ã",layout:"fill"})})})]}),(0,i.jsxs)("div",{className:C().container,children:[(0,i.jsxs)("div",{className:C()["title-wrapper"],children:[(0,i.jsx)(P.A,{title:"ã¬ã¿ã¼"}),(0,i.jsx)(w(),{href:"/account/letters/new",className:"".concat(C()["outline-primary-button"]," ").concat(C()["outline-primary-button-small"]," ").concat(C()["title-button"]),children:"ã¬ã¿ã¼ãæ¸ã"})]}),(0,i.jsxs)("section",{className:C()["letter-list-wrapper"],children:[0===a.length?(0,i.jsxs)("div",{className:C().emptyWrapper,children:[(0,i.jsx)("p",{className:C().emptyTitle,children:"ã¬ã¿ã¼ãããã¾ãã"}),(0,i.jsx)("p",{className:C().emptyDescription,children:"ãã¬ã¿ã¼ãã¯ããç¥ããããããã¨ãå¶ä½éç¨ãæã£ããã¨ãèªç±ã«ç¶´ããã客æ§ã«ãå±ããããã¨ãã§ãã販売è
éå®ã®æ©è½ã§ãã"}),(0,i.jsx)("div",{className:C().emptyImage,children:(0,i.jsx)(o.A,{src:"/minne/page/account/emptystate/letter.svg",alt:"",width:194,height:150,layout:"fixed"})})]}):(0,i.jsx)("ul",{className:C().list,children:a.map((e,t)=>{var n;return(0,i.jsx)("li",{className:C().listItem,children:(0,i.jsx)(y,{id:e.id,title:e.title,status:e.status,reactionCount:e.reactionCount,letterViewCount:e.letterViewCount,imageUrl:null==(n=e.image)?void 0:n.baseUrl,shopPath:s,subscriptionBenefitsAvailability:m,isDisplayLetterViewCountEnabled:_,handleClickCreateNotifyFollowers:()=>p(e),handleClickDeleteNotifyFollowers:()=>h(e),letterNotification:e.pushNotification||void 0,handleDeleteLetter:g,handleClickCopyLetterUrl:x})},t)})}),v>=2&&(0,i.jsx)("div",{className:C().pagination,children:(0,i.jsx)(b.A,{currentPage:N,pageLength:v,hrefBuilder:e=>({pathname:"/account/letters",query:{page:e}})})})]})]}),(0,i.jsx)("a",{href:"https://help.minne.com/hc/ja/articles/4406260041491",target:"_blank",rel:"noreferrer",className:C().helpLink,children:"ã¬ã¿ã¼ã®å©ç¨ã«ã¤ãã¦"}),(0,i.jsx)("div",{className:C()["pageback-wrapper"],children:(0,i.jsx)("a",{href:"/account",className:"".concat(C()["outline-secondary-button"]),children:"æ»ã"})})]})};var B=n(83243),S=n(30847),I=n.n(S);let T=(0,r.memo)(e=>{let{startOfScheduledAt:t,endOfScheduledAt:n,pushNotificationFollowerCount:a,onClickClose:s,onClickDelete:l}=e,o=h(t,n),c=e=>{"Escape"===e.key&&s()};return(0,r.useEffect)(()=>(document.body.addEventListener("keydown",c),()=>{document.body.removeEventListener("keydown",c)}),[]),(0,i.jsx)(B.A,{isOpened:!0,hasScrim:!0,children:(0,i.jsx)("div",{className:I().scrim,onClick:s,children:(0,i.jsxs)("div",{className:I().dialog,onClick:e=>e.stopPropagation(),children:[(0,i.jsx)("p",{className:I().title,children:"éç¥äºç´ãåãæ¶ãã¾ããï¼"}),(0,i.jsxs)("dl",{className:I().list,children:[(0,i.jsx)("dt",{className:I().listTitle,children:"é
ä¿¡æé"}),(0,i.jsx)("dd",{className:I().listDesc,children:o}),(0,i.jsx)("dt",{className:I().listTitle,children:"é
信対象"}),(0,i.jsxs)("dd",{className:I().listDesc,children:["æå¤§",a,"人"]})]}),(0,i.jsxs)("div",{className:I().buttons,children:[(0,i.jsx)("button",{className:I().closeButton,onClick:s,children:"éãã"}),(0,i.jsx)("button",{className:I().deleteButton,onClick:l,children:"åãæ¶ã"})]})]})})})});var Y=n(16831),E=n(64305),F=n(11692),U=n(56856);n(15833);var W=n(54469),H=n.n(W);let O=(0,r.memo)(e=>{let{title:t,imageUrl:n,pushNotificationFollowerCount:a,timeFrames:s,shopUrl:l,scheduledAt:o,excludeDates:c,handleClickReserveLetterPushNotification:d,handleClickClose:u}=e,m=e=>{"Escape"===e.key&&u()};return(0,r.useEffect)(()=>(document.body.addEventListener("keydown",m),()=>{document.body.removeEventListener("keydown",m)}),[]),(0,i.jsx)(B.A,{isOpened:!0,hasScrim:!0,children:(0,i.jsx)("div",{className:H().scrim,onClick:u,children:(0,i.jsx)("div",{className:H().dialog,onClick:e=>e.stopPropagation(),children:o?(0,i.jsx)(z,{scheduledAt:o,handleClickClose:u}):(0,i.jsx)(R,{title:t,imageUrl:n,pushNotificationFollowerCount:a,timeFrames:s,shopUrl:l,excludeDates:c,handleClickReserveLetterPushNotification:d,handleClickClose:u})})})})}),R=(0,r.memo)(e=>{var t;let{title:n,imageUrl:a,pushNotificationFollowerCount:s,timeFrames:l,shopUrl:c,excludeDates:u,handleClickReserveLetterPushNotification:m,handleClickClose:_}=e,p=()=>
1{if(!u)return new Date;let e=new Date;for(e.setHours(0,0,0,0);u.some(t=>t.getTime()===e.getTime());)e.setDate(e.getDate()+1);return e},[h,g]=(0,r.useState)(p()),[x,N]=(0,r.useState)(""),[v,j]=(0,r.useState)(!1),L=(0,E.d)(),y=new Date(new Date().getTime()+6e5),b=()=>l.find(e=>{let t=parseInt(e.label.split("-")[0].split(":")[0]);return y<=new Date(p().setHours(t,0,0,0))});return(0,r.useEffect)(()=>{let e=b();if(e)N(e.value);else{N(l[0].value);let e=h||new Date;e.setDate(e.getDate()+1),g(e)}},[]),(0,r.useEffect)(()=>{if(!h)return;let e=l.find(e=>e.value===x);if(!e)return;let t=new Date(h.setHours(parseInt(e.label.split("-")[0].split(":")[0]),0,0,0));j(new Date(new Date().getTime()+6e5)>=t)},[h,x]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:H().header,children:[(0,i.jsx)("p",{className:H().heading,children:"ãã©ãã¯ã¼ã«éç¥"}),(0,i.jsx)("a",{href:"https://help.minne.com/hc/ja/articles/28209874766483#_01HVGC17RV4KCZDPHZD4ED6WDT",target:"_blank",className:H().helpLink,rel:"noreferrer",children:(0,i.jsx)(o.A,{alt:"ãã¼ã«ããã",src:"/minne/icon/icon-question-orange.svg",width:20,height:20,layout:"fixed",className:H().tooltip})})]}),(0,i.jsxs)("div",{className:H().contents,children:[(0,i.jsxs)("div",{className:H().letter,children:[(0,i.jsx)("div",{className:H().image,children:a?(0,i.jsx)(f(),{layout:"intrinsic",width:120,height:63,objectFit:"cover",src:a,alt:"",unoptimized:!0,"data-testid":"letter-image"}):(0,i.jsx)("div",{"data-testid":"letter-default-image",children:(0,i.jsx)(o.A,{layout:"intrinsic",width:120,height:63,src:"/model/image/picture/letter_empty.jpg",alt:""})})}),(0,i.jsx)("p",{className:H().title,children:n})]}),(0,i.jsxs)("ul",{className:H().list,children:[(0,i.jsxs)("li",{className:H().listItem,children:[(0,i.jsxs)("div",{className:H().notificationCount,children:[(0,i.jsxs)("div",{className:H().notificationCountTitle,children:[(0,i.jsx)("p",{className:H().listLabel,children:"é
信対象"}),(0,i.jsx)(Y.A,{message:"ã·ã§ããã®ãã©ãã¯ã¼ã®ãã¡ãã¢ããªããã¦ã³ãã¼ããã端æ«ã§éç¥ãåãåãè¨å®ã«ãã¦ãã人ã対象ã§ãã",initialTooltipPosition:"top",size:20,describeElement:"tooltip-contribution"})]}),(0,i.jsx)("p",{className:H().listContent,children:s>0?"æå¤§".concat(s,"人"):"0人"})]}),s<=0&&(0,i.jsx)("p",{className:H().noFollowerMessage,children:"ãã©ãã¯ã¼ãããªããããäºç´ã§ãã¾ãã"})]}),(0,i.jsxs)("li",{className:H().listItem,children:[(0,i.jsx)("p",{className:H().listLabel,children:"é
ä¿¡æé"}),(0,i.jsxs)("div",{className:H().listContents,children:[(0,i.jsxs)("div",{className:H().dateContents,children:[(0,i.jsx)("p",{className:H().listContent,children:"æ¥ä»"}),(0,i.jsx)("div",{className:H().datePicker,children:(0,i.jsx)(U.Ay,{minDate:d()().toDate(),maxDate:d()().add(1,"year").toDate(),selected:h,onChange:e=>g(e),dateFormat:"yyyy/MM/dd(E)",locale:F.ja,excludeDates:u})})]}),(0,i.jsxs)("div",{className:H().timeContents,children:[(0,i.jsx)("p",{className:H().listContent,children:"æé"}),(0,i.jsx)("div",{className:H().timeSelect,children:(0,i.jsx)("select",{name:"",id:"",className:H().dropdown,defaultValue:(null==(t=b())?void 0:t.value)||l[0].value,onChange:e=>N(e.target.value),children:l.map(e=>(0,i.jsx)("option",{value:e.value,children:e.label},e.value))})})]})]})]})]}),v&&(0,i.jsx)("p",{className:H().scheduled_at_error,children:"é
ä¿¡æ¥æã¯10åå¾ä»¥éã鏿ãã¦ãã ãã"}),(0,i.jsx)("p",{className:H().timezone,children:"ã¿ã¤ã ã¾ã¼ã³ï¼æ¥æ¬æ¨æºæ"})]}),s<=30&&(0,i.jsxs)("div",{className:H().share,children:[(0,i.jsx)("p",{className:H().shareMessage,children:"ããããã®äººã«ã¬ã¿ã¼ãå±ããããã«ãSNSã§ã·ã§ããã®é
åãä¼ãã¦ãã©ãã¯ã¼ãå¢ããã¾ãããï¼"}),(0,i.jsxs)("button",{className:H().shareCopyURL,onClick:()=>{navigator.clipboard.writeText(c).then(()=>{L.showMessage("ã¯ãªãããã¼ãã«ã³ãã¼ãã¾ãã")}).catch(()=>{L.showMessage("ã¯ãªãããã¼ãã«ã³ãã¼ã§ãã¾ããã§ãã")})},children:[(0,i.jsx)(o.A,{alt:"",src:"/minne/icon/icon-link-gray.svg",width:20,height:20}),(0,i.jsx)("span",{className:H().shareCopyURLText,children:"ã·ã§ããURLãã³ãã¼"})]})]}),(0,i.jsxs)("div",{className:H().buttons,children:[(0,i.jsx)("button",{className:H().closeButton,onClick:_,children:"éãã"}),(0,i.jsx)("button",{className:H().submitButton,onClick:()=>m(h,x),disabled:s<=0||v,children:"éç¥ãäºç´"})]})]})}),z=(0,r.memo)(e=>{let{scheduledAt:t,handleClickClose:n}=e,a=h(t.startOfScheduledAt,t.endOfScheduledAt);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:H().header,children:(0,i.jsx)("p",{className:H().heading,children:"éç¥ãäºç´ãã¾ãã"})}),(0,i.jsx)("ul",{className:H().list,children:(0,i.jsxs)("li",{className:H().listItem,children:[(0,i.jsx)("p",{className:H().listLabel,children:"é
ä¿¡æé"}),(0,i.jsx)("p",{className:H().scheduledDate,children:a})]})}),(0,i.jsxs)("div",{className:H().notices,children:[(0,i.jsx)("p",{className:H().notice,children:"â»éç¥ã¯äºç´ããæéããé
ãããã¨ãããã¾ãã"}
1),(0,i.jsx)("p",{className:H().notice,children:"â»ã¬ã¿ã¼ãåé¤ããå ´åããéå
¬éã«è¨å®ããå ´åã¯ãäºç´ãåãæ¶ããã¾ãã"})]}),(0,i.jsx)("div",{className:(0,g.A)(H().buttons,H().complate),children:(0,i.jsx)("button",{className:(0,g.A)(H().closeButton,H().outlined),onClick:n,children:"éãã"})})]})});var V=n(47426),J=n(91695);let X=e=>{let{viewer:t,beltBannerInfo:n,letters:o,shopPath:c,paginationInfo:d,deleted:u,letterPushNotifications:m,letterPushNotificationTimeFrames:_,subscriptionBenefitsAvailability:p,isDisplayLetterViewCountEnabled:h,onRefresh:g,isShopStatusScheduleEnabled:x}=e,f=(0,l.useRouter)(),[N]=(0,s.eMM)(),[v]=(0,s.Ux4)(),[j]=(0,s.vWs)(),[L,y]=(0,r.useState)(!1),[b,M]=(0,r.useState)(!1),[w,A]=(0,r.useState)(),[C,k]=(0,r.useState)(!1),[P,B]=(0,r.useState)(!1),[S,I]=(0,r.useState)(),Y=(0,E.d)(),F=e=>e.map(e=>{if(!e)return null;switch(e.status){case"waiting":case"processing":{let t=new Date(e.startOfScheduledAt);return t.setHours(0,0,0,0),t}case"done":{let t=new Date(e.notifiedAt);return t.setHours(0,0,0,0),t}default:return null}}).filter(Boolean),[U,W]=(0,r.useState)(F(m));(0,r.useEffect)(()=>{W(F(m))},[m]);let[H,R]=(0,r.useState)({type:"success",message:""});(0,r.useEffect)(()=>{if(H.message){let e=setTimeout(()=>{R({message:"",type:"success"})},3e3);return()=>{clearTimeout(e)}}},[H]);let z=async(e,t)=>{S&&e&&await v({variables:{input:{date:(0,J.GP)(e,"yyyy-MM-dd"),letterId:S.id,timeFrame:t}},onCompleted(e){if(!_.find(e=>e.value===t)||!e.createLetterPushNotification)return;let n=e.createLetterPushNotification.letter.pushNotification;A({startOfScheduledAt:n.startOfScheduledAt,endOfScheduledAt:n.endOfScheduledAt}),g()},onError(e){k(!1),e.graphQLErrors.length>0&&e.graphQLErrors[0].extensions?R({type:"fail",message:e.graphQLErrors[0].extensions.user_message||e.graphQLErrors[0].message}):R({type:"fail",message:"ãã©ãã¯ã¼éç¥ã®äºç´ã«å¤±æãã¾ãã"})}})},X=async()=>{S&&await j({variables:{input:{letterId:S.id}},onCompleted(){B(!1),R({type:"success",message:"ãã©ãã¯ã¼éç¥ã®äºç´ãåãæ¶ãã¾ãã"}),g()},onError(){B(!1),R({type:"fail",message:"ãã©ãã¯ã¼éç¥ã®äºç´ã®åãæ¶ãã«å¤±æãã¾ãã"})}})};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.A,{title:"ã¬ã¿ã¼ä¸è¦§ | minne ä¼å¡ãã¼ã¸",description:"",canonicalHref:"",ogTitle:"",ogDescription:"",ogSiteName:"",ogType:"",ogImage:""}),(0,i.jsx)(D,{viewer:t,beltBannerInfo:n,letters:o,shopPath:c,paginationInfo:d,letterPushNotificationTimeFrames:_,deleted:u||L,isFailedDeleted:b,subscriptionBenefitsAvailability:p,isDisplayLetterViewCountEnabled:h,handleClickCreatePushNotificationToFollowers:e=>{I(e),k(!0)},handleClickDeletePushNotificationToFollowers:e=>{I(e),B(!0)},handleDeleteLetter:e=>{confirm("åé¤ãã¦ãããããã§ããï¼")&&N({variables:{input:{id:e}}}).then(async()=>{await g(),await f.push("/account/letters"),M(!1),y(!0),window.scrollTo({top:0})}).catch(()=>{M(!0),window.scrollTo({top:0})})},handleClickCopyLetterUrl:e=>{navigator.clipboard.writeText(e).then(()=>{Y.showMessage("ã¯ãªãããã¼ãã«ã³ãã¼ãã¾ãã")}).catch(()=>{Y.showMessage("ã¯ãªãããã¼ãã«ã³ãã¼ã§ãã¾ããã§ãã")})},isShopStatusScheduleEnabled:x}),C&&S&&(0,i.jsx)(O,{title:S.title,imageUrl:S.image?S.image.baseUrl:void 0,pushNotificationFollowerCount:t.followersCount,timeFrames:_,shopUrl:"".concat(window.location.origin,"/@").concat(t.name),scheduledAt:w,excludeDates:U,handleClickReserveLetterPushNotification:z,handleClickClose:()=>{k(!1),I(void 0),A(void 0)}}),P&&S&&S.pushNotification&&"waiting"===S.pushNotification.status&&(0,i.jsx)(T,{startOfScheduledAt:S.pushNotification.startOfScheduledAt,endOfScheduledAt:S.pushNotification.endOfScheduledAt,pushNotificationFollowerCount:t.followersCount,onClickDelete:X,onClickClose:()=>{B(!1),I(void 0),A(void 0)}}),(0,i.jsx)(V.A,{isDisplayed:!!H.message,message:H.message,type:H.type})]})};var Q=!0;let G=e=>{let{beltBannerInfo:t,paginationInfo:n,deleted:a,page:l,pushNotificationScheduledAtRange:r,isDisplayLetterViewCountEnabled:o,isShopStatusScheduleEnabled:c}=e,{data:d,refetch:u}=(0,s._oX)({variables:{page:l,limit:20,pushNotificationScheduledAtRange:r}}
1);return d&&d.viewer?(0,i.jsx)(X,{viewer:d.viewer,beltBannerInfo:t,letters:d.viewer.userPrivacy.letters.nodes,shopPath:d.viewer.shopPath,paginationInfo:n,deleted:a,letterPushNotifications:d.viewer.userPrivacy.letterPushNotifications,letterPushNotificationTimeFrames:d.letterPushNotificationTimeFrames,subscriptionBenefitsAvailability:d.viewer.userPrivacy.subscriptionBenefitsAvailability,isDisplayLetterViewCountEnabled:o,onRefresh:()=>{u()},isShopStatusScheduleEnabled:c}):null}},62917:(e,t,n)=>{"use strict";n.d(t,{A:()=>i.A});var i=n(39804)},66028:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(37876),a=n(73728),s=n.n(a);let l=e=>{let{title:t}=e;return(0,i.jsx)("h1",{className:"".concat(s().heading," ").concat(s().defaultColor),children:t})}},69776:function(e,t,n){e.exports=function(e){"use strict";var t={name:"ja",weekdays:"æ¥ææ¥_æææ¥_ç«ææ¥_æ°´ææ¥_æ¨ææ¥_éææ¥_åææ¥".split("_"),weekdaysShort:"æ¥_æ_ç«_æ°´_æ¨_é_å".split("_"),weekdaysMin:"æ¥_æ_ç«_æ°´_æ¨_é_å".split("_"),months:"1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ".split("_"),monthsShort:"1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ".split("_"),ordinal:function(e){return e+"æ¥"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYYå¹´MæDæ¥",LLL:"YYYYå¹´MæDæ¥ HH:mm",LLLL:"YYYYå¹´MæDæ¥ dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYYå¹´MæDæ¥",lll:"YYYYå¹´MæDæ¥ HH:mm",llll:"YYYYå¹´MæDæ¥(ddd) HH:mm"},meridiem:function(e){return e<12?"åå":"åå¾"},relativeTime:{future:"%så¾",past:"%så",s:"æ°ç§",m:"1å",mm:"%då",h:"1æé",hh:"%dæé",d:"1æ¥",dd:"%dæ¥",M:"1ã¶æ",MM:"%dã¶æ",y:"1å¹´",yy:"%då¹´"}};return(e&&"object"==typeof e&&"default"in e?e:{default:e}).default.locale(t,null,!0),t}(n(56557))},73728:e=>{e.exports={heading:"MinneAccountPageHeading_heading__cPQZE",defaultColor:"MinneAccountPageHeading_defaultColor__uBpMe"}},74433:e=>{e.exports={wrapper:"MinneBlockBar_wrapper___ncFH",icon:"MinneBlockBar_icon__53lAe",message:"MinneBlockBar_message__ES3Uf",link:"MinneBlockBar_link__OtOBe"}},75470:e=>{e.exports={wrapper:"AccountLayout_wrapper__hU0dL",headerWrapper:"AccountLayout_headerWrapper__48H_Y",sidebarLayout:"AccountLayout_sidebarLayout__h_i6S",contentWrapper:"AccountLayout_contentWrapper__aEFU_",content:"AccountLayout_content__ntBVM"}},83243:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(37876),a=n(14232),s=n(30632),l=n.n(s);let r=(0,a.memo)(e=>{let{children:t,isOpened:n,hasScrim:s=!1}=e,r=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(n){var e;null==(e=r.current)||e.focus(),document.body.style.overflow="hidden"}else document.body.style.overflow="";return()=>{document.body.style.overflow=""}},[n]),(0,i.jsx)(i.Fragment,{children:n&&(0,i.jsx)("div",{"aria-modal":"true",className:n?l().opened:l().closed,ref:r,role:"dialog","aria-labelledby":"modal-heading",tabIndex:-1,children:s?(0,i.jsx)("div",{className:l()["modal-scrim"],children:t}):t})})})},83377:(e,t,n)=>{"use strict";n.d(t,{A:()=>i.A});var i=n(24783)},90888:e=>{e.exports={"snackbar-fail":"MinneAccountLetterSnackbar_snackbar-fail__bokLm","snackbar-success":"MinneAccountLetterSnackbar_snackbar-success__4d_F8","snackbar-message":"MinneAccountLetterSnackbar_snackbar-message__XMaIG","snackbar-container":"MinneAccountLetterSnackbar_snackbar-container__OJTpW"}},99758:(e,t,n)=>{"use strict";n.d(t,{y:()=>i});let i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e12;if(isNaN(e))return"";let n=e<0,i=Math.abs(e),a=Math.max(t,1e4);if(i>=a)if(1e4===a)return"9,999+";else if(a<1e8){let e=Math.floor(a/1e4*10)/10;return"".concat(e%1==0?e.toFixed(0):e.toFixed(1),"ä¸+")}else{let e=Math.floor(a/1e8*10)/10;return"".concat(e%1==0?e.toFixed(0):e.toFixed(1),"å+")}if(i<1e4){let e=i.toLocaleString();return n?"-".concat(e):e}if(i<1e8){let e=Math.floor(i/1e4*10)/10,t="".concat(e%1==0?e.toFixed(0):e.toFixed(1),"ä¸");return n?"-".concat(t):t}let s=Math.floor(i/1e8*10)/10,l="".concat(s%1==0?s.toFixed(0):s.toFixed(1),"å");return n?"-".concat(l):l}}},e=>{e.O(0,[8513,1121,6701,8827,8230,3019,1126,8369,7458,847,4301,9543,636,6593,8792],()=>e(e.s=2297)),_N_E=e.O()}]);
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.