PageSourceSearch

https://assets.minne.com/_next/static/chunks/pages/account/shop_status-8181587246fb1b67.js

js minne.com collected 2026-09-24 08:38:49 UTC 16,723 bytes, 1 lines download raw bytes

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]="b9e55ca0-db75-4dbf-856c-eba108f78ef6",e._sentryDebugIdIdentifier="sentry-dbid-b9e55ca0-db75-4dbf-856c-eba108f78ef6")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6977],{2255:(e,t,a)=>{"use strict";a.d(t,{A:()=>n.A});var n=a(58283)},7328:e=>{e.exports={modal:"MyModalV2_modal__64wEc",fullScreen:"MyModalV2_fullScreen__GFjRt","fade-in":"MyModalV2_fade-in__DMVzf"}},12666:(e,t,a)=>{"use strict";a.d(t,{A:()=>n.A});var n=a(86681)},21198:(e,t,a)=>{"use strict";a.d(t,{A:()=>g});var n=a(37876),s=a(3378),l=a(27705),c=a.n(l);let o={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"},r=e=>{let{beltBannerInfo:t}=e,a={small:(null==t?void 0:t.smallImagePath)||o.small,large:(null==t?void 0:t.largeImagePath)||o.large},l=(null==t?void 0:t.alt)||o.alt,r=(null==t?void 0:t.url)||o.url;return(0,n.jsx)("div",{className:c().beltBanner,children:(0,n.jsxs)("a",{href:r,className:c().beltBannerLink,"data-tracking-category":"ベルトバナー","data-tracking-action":"minne PLUSへ遷移","data-tracking-label":"minne PLUS",children:[(0,n.jsx)("span",{className:c().beltBannerImageSmall,children:(0,n.jsx)(s.A,{src:a.small,alt:l,layout:"fill",objectFit:"cover"})}),(0,n.jsx)("span",{className:c().beltBannerImageLarge,children:(0,n.jsx)(s.A,{src:a.large,alt:l,layout:"fill",objectFit:"contain"})})]})})};var i=a(2255),d=a(37553),u=a(12666),_=a(42201),h=a(83377),m=a(14232),p=a(75470),b=a.n(p);let g=(0,m.memo)(e=>{let{viewer:t,activeNav:a,children:s,isBlocked:l=!1,beltBannerInfo:c,isShopStatusScheduleEnabled:o}=e,[p,g]=(0,m.useState)(!1);return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:b().wrapper,children:[(0,n.jsx)("div",{className:b().headerWrapper,inert:p,children:(0,n.jsx)(h.A,{withAccountDrawerMenu:!0,onOpenDrawer:()=>g(!0)})}),"creator"===t.enumUserType&&("letters"===a||"plus"===a||"ads"===a||"friends"===a)&&(0,n.jsx)(r,{beltBannerInfo:c}),(0,n.jsxs)("div",{className:b().sidebarLayout,children:[(0,n.jsx)(u.A,{viewer:t,activeNavItem:a,isShopStatusScheduleEnabled:o}),(0,n.jsx)(i.A,{viewer:t,isOpened:p,activeNavItem:a,isShopStatusScheduleEnabled:o,onCloseDrawer:()=>g(!1)}),(0,n.jsxs)("div",{className:b().contentWrapper,children:[l&&(0,n.jsx)(_.A,{linkUrl:"https://help.minne.com/hc/ja/articles/9194846322323",linkText:"詳しく見る"}),(0,n.jsx)("div",{className:b().content,inert:p,children:s})]})]}),(0,n.jsx)("div",{inert:p,children:(0,n.jsx)(d.A,{})})]})})})},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"}},37553:(e,t,a)=>{"use strict";a.d(t,{A:()=>n.A});var n=a(65235)},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,a)=>{"use strict";a.d(t,{A:()=>_});var n=a(37876),s=a(14232),l=a(48230),c=a.n(l),o=a(74433),r=a.n(o),i=a(3378),d=a(98369),u=a.n(d);let _=(0,s.memo)(e=>{let{message:t="ブロック中",linkUrl:a,linkText:s}=e;return(0,n.jsxs)("div",{className:r().wrapper,children:[(0,n.jsx)("div",{className:r().icon,children:(0,n.jsx)(i.A,{alt:"ブロック中",src:"/minne/icon/icon-block-white.svg",width:20,height:20})}),(0,n.jsx)("span",{className:r().message,children:t}),a&&(0,n.jsx)(c(),{href:(e=>{try{let t=new URL(e);return"https:"===t.protocol}catch(e){return!1}})(a)?u()(a):"#",className:r().link,children:s})]})})},42377:(e,t,a)=>{"use strict";a.d(t,{A:()=>n.A});var n=a(43308)},43308:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var n=a(37876),s=a(69241),l=a(14232),c=a(7328),o=a.n(c);let r=e=>{let{isOpen:t=!1,children:a,onClose:c,ariaLabel:r="モーダルウィンドウ",isFullScreen:i=!1}=e,d=(0,l.useRef)(null);return(0,l.useEffect)(()=>{let e=d.current;if(!e)return;let a=e=>{e.preventDefault(),c()};return e.addEventListener("cancel",a),t&&!e.open?(document.body.style.overflow="hidden",e.showModal(),e.scrollTop=0):!t&&e.open&&(document.body.style.overflow="",e.close()),()=>{document.body.style.overflow="",e.removeEventListener("cancel",a)}},[t,c]),(0,n.jsx)("dialog",{ref:d,className:(0,s.A)(o().modal,i&&o().fullScreen),onClick:e=>{e.target===d.current&&c()},"aria-label":r,children:a})}},49599:(e,t,a)=>{"use strict";a.d(t,{A:()=>n.A});var n=a(21198)},54664:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSP:()=>B,default:()=>L});var n=a(37876),s=a(64305),l=a(57536),c=a(56557),o=a.n(c),r=a(64301),i=a.n(r),d=a(71576),u=a.n(d),_=a(14232),h=a(49599),m=a(59437),p=a(83243),b=
1a(42377),g=a(69241),S=a(11692);a(69776);var x=a(56856);a(15833);var v=a(59730),A=a.n(v);o().extend(u()),o().extend(i()),o().tz.setDefault("Asia/Tokyo"),o().locale("ja");let y="Asia/Tokyo",j=Array.from({length:24},(e,t)=>t),f=[0,15,30,45],w=e=>new Date(e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()),N=()=>w(o()().tz(y)),M=()=>{let e=o()().tz(y),t=15-e.minute()%15;return w(e.add(t,"minute").set("second",0).set("millisecond",0))},k=(0,_.memo)(e=>{let{viewer:t,onChangeNow:a,onScheduleChange:s,onCancelSchedule:l,isProcessing:c=!1}=e,r=t.shopDesign.businessState,i="open"===r,d="open"===r?"販売中":"販売お休み中",u=i?"closed":"open",v=i?"CLOSE":"OPEN",k=t.shopDesign.shopStatusSchedule,[P,B]=(0,_.useState)(!1),[L,Y]=(0,_.useState)(!1),[C,D]=(0,_.useState)("now"),[T,E]=(0,_.useState)(()=>M()),[H,I]=(0,_.useState)(""),O=T.getHours(),F=T.getMinutes(),W=(0,_.useMemo)(()=>o()(T).isAfter(o()(N())),[T]),U=()=>{c||(B(!1),I(""))},z=async()=>{if("now"===C){try{await a(u),B(!1)}catch(e){}return}if(!W)return void I("現在より後の日時を指定してください。");try{await s(v,T),B(!1)}catch(e){}},V=()=>{c||Y(!1)},R=async()=>{if(k)try{await l(k.id),Y(!1)}catch(e){}};return(0,n.jsxs)(h.A,{viewer:t,activeNav:"setting",isShopStatusScheduleEnabled:!0,children:[(0,n.jsxs)("section",{className:A().container,children:[(0,n.jsx)(m.A,{title:"ショップ販売ステータス"}),(0,n.jsxs)("div",{className:A().statusPanel,children:[(0,n.jsxs)("div",{className:A().statusPanelContent,children:[(0,n.jsx)("span",{className:(0,g.A)(A().statusIcon,i?A().open:A().closed),"aria-hidden":"true"}),(0,n.jsxs)("div",{className:A().statusTexts,children:[(0,n.jsxs)("p",{className:A().currentStatus,children:["あなたのショップは「",d,"」です"]}),k&&(0,n.jsx)("p",{className:A().scheduleText,children:(e=>{let t="OPEN"===e.action?"販売中":"販売お休み中";return"".concat(o()(e.scheduledAt).tz().format("YYYY年M月D日(ddd) H:mm"),"に「").concat(t,"」へ切り替わります")})(k)})]})]}),k?(0,n.jsx)("button",{type:"button",className:A().outlineButton,onClick:()=>{Y(!0)},disabled:c,children:"予約を取り消す"}):(0,n.jsx)("button",{type:"button",className:A().outlineButton,onClick:()=>{D("now"),E(M()),I(""),B(!0)},disabled:c,children:"変更"})]}),(0,n.jsxs)("p",{className:A().description,children:["「販売お休み中」では、新規注文の受付が停止されます。",(0,n.jsx)("span",{children:"ショップや作品の表示は引き続き表示され、受注済みの注文も通常どおり対応できます。"})]})]}),(0,n.jsx)("div",{className:A().backButtonWrapper,children:(0,n.jsx)("a",{className:A().backButton,href:"/account/setting",children:"戻る"})}),(0,n.jsx)(p.A,{isOpened:P,hasScrim:!0,children:(0,n.jsx)("div",{className:A().modalOutside,onClick:U,children:(0,n.jsxs)("div",{className:A().modalContainer,onClick:e=>e.stopPropagation(),children:[(0,n.jsxs)("h2",{id:"modal-heading",className:A().modalTitle,children:["ショップを「",i?"販売お休み中":"販売中","」に変更"]}),(0,n.jsxs)("div",{className:A().radioGroup,role:"radiogroup","aria-label":"変更タイミング",children:[(0,n.jsxs)("label",{className:A().radioLabel,htmlFor:"shop-status-change-now",children:[(0,n.jsx)("input",{id:"shop-status-change-now",type:"radio",name:"change-timing",value:"now","aria-label":"今すぐ切替",checked:"now"===C,onChange:()=>{D("now"),I("")}}),"今すぐ切替"]}),(0,n.jsxs)("label",{className:A().radioLabel,htmlFor:"shop-status-change-scheduled",children:[(0,n.jsx)("input",{id:"shop-status-change-scheduled",type:"radio",name:"change-timing",value:"scheduled","aria-label":"変更日時を指定",checked:"scheduled"===C,onChange:()=>{D("scheduled"),I("")}}),"変更日時を指定"]})]}),(0,n.jsxs)("div",{className:(0,g.A)(A().scheduleFields,"now"===C&&A().disabledFields),"aria-disabled":"now"===C,children:[(0,n.jsx)("div",{className:A().datePickerWrapper,children:(0,n.jsx)(x.Ay,{selected:T,onChange:e=>{e&&(e.setHours(O),e.setMinutes(F),e.setSeconds(0),e.setMilliseconds(0),E(e),I(""))},onFocus:e=>{e.target.readOnly=!0,e.target.blur()},minDate:N(),maxDate:w(o()().tz(y).add(180,"day")),dateFormat:"yyyy/MM/dd(E)",locale:S.ja,disabled:"now"===C})}),(0,n.jsx)("select",{className:A().timeSelect,"aria-label":"時",value:O,onChange:e=>(e=>{let t=new Date(T);t.setHours(Number(e)),E(t),I("")})(e.target.value),disabled:"now"===C,children:j.map(e=>(0,n.jsx)("option",{value:e,children:String(e).padStart(2,"0")},e))}),(0,n.jsx)("span",{className:A().timeSeparator,children:":"}),(0,n.jsx)("select",{className:A().timeSelect,"aria-label":"分",value:F,onChange:e=>(e=>{let t=new Date(T);t.setMinutes(Number(e)),E(t),I("")})(e.target.value),disabled:"now"===C,children:f.map(e=>(0,n.jsx)("option",{value:e,children:String(e).padStart(2,"0")},e))})]}),H&&(0,n.jsx)("p",{className:A().validationMessage,children:H}),(0,n.jsxs)("div",{className:A().modalActions,children:[(0,n.jsx)("button",{type:"button",className:A().cancelButton,onClick:U,disabled:c,
1children:"キャンセル"}),(0,n.jsx)("button",{type:"button",className:A().submitButton,onClick:z,disabled:c,children:"変更"})]})]})})}),(0,n.jsx)(b.A,{isOpen:L,onClose:V,ariaLabel:"予約取り消し確認",children:(0,n.jsxs)("div",{className:A().modalContainer,children:[(0,n.jsx)("h2",{className:A().modalTitle,children:"予約を取り消します、よろしいですか?"}),(0,n.jsxs)("p",{className:A().cancelScheduleModalText,children:["ショップは引き続き「",d,"」となります。"]}),(0,n.jsxs)("div",{className:A().modalActions,children:[(0,n.jsx)("button",{type:"button",className:A().cancelButton,onClick:V,disabled:c,children:"キャンセル"}),(0,n.jsx)("button",{type:"button",className:A().submitButton,onClick:R,disabled:c,children:"取り消す"})]})]})})]})});o().extend(u()),o().extend(i()),o().tz.setDefault("Asia/Tokyo");let P=e=>{var t;let{viewer:a}=e,{data:c,refetch:r}=(0,l.o6C)(),[i,d]=(0,l.GOW)(),[u,h]=(0,l.kb)(),[m,p]=(0,l.p3X)(),{showMessage:b}=(0,s.d)(),g=null!=(t=null==c?void 0:c.viewer)?t:a,S=d.loading||h.loading||p.loading,x=(0,_.useCallback)(e=>{var t,a,n;b((null==e||null==(n=e.graphQLErrors)||null==(a=n[0])||null==(t=a.extensions)?void 0:t.user_message)||"販売ステータスの変更に失敗しました。時間を空けて再度お試しください。")},[b]),v=(0,_.useCallback)(async()=>{await r()},[r]),A=(0,_.useCallback)(async e=>{try{await i({variables:{input:{businessState:e}}}),await v(),b("販売ステータスを変更しました")}catch(e){throw x(e),e}},[v,x,b,i]),y=(0,_.useCallback)(async(e,t)=>{try{await u({variables:{input:{action:e,scheduledAt:o().tz(o()(t).format("YYYY-MM-DDTHH:mm:ss")).format()}}}),await v(),b("販売ステータスの変更を予約しました")}catch(e){throw x(e),e}},[u,v,x,b]),j=(0,_.useCallback)(async e=>{try{await m({variables:{input:{id:e}}}),await v(),b("販売ステータスの変更予約を取り消しました")}catch(e){x(e)}},[m,v,x,b]);return(0,n.jsx)(k,{viewer:g,onChangeNow:A,onScheduleChange:y,onCancelSchedule:j,isProcessing:S})};var B=!0;let L=e=>{let{viewer:t}=e;return(0,n.jsx)(P,{viewer:t})}},59437:(e,t,a)=>{"use strict";a.d(t,{A:()=>n.A});var n=a(66028)},59730:e=>{e.exports={container:"AccountShopStatusPage_container__qSXWJ",statusPanel:"AccountShopStatusPage_statusPanel__DDwtC",statusPanelContent:"AccountShopStatusPage_statusPanelContent__i4O21",statusIcon:"AccountShopStatusPage_statusIcon__PV9qD",open:"AccountShopStatusPage_open__c57pB",closed:"AccountShopStatusPage_closed__WR5AT",statusTexts:"AccountShopStatusPage_statusTexts__ifxat",currentStatus:"AccountShopStatusPage_currentStatus__5p0bI",scheduleText:"AccountShopStatusPage_scheduleText__j2AsV",description:"AccountShopStatusPage_description__SI4Pm",outlineButton:"AccountShopStatusPage_outlineButton__a3bdI",backButtonWrapper:"AccountShopStatusPage_backButtonWrapper__JtHED",backButton:"AccountShopStatusPage_backButton__qkTMu",modalOutside:"AccountShopStatusPage_modalOutside__M7XhF",modalContainer:"AccountShopStatusPage_modalContainer__KUOzi",modalTitle:"AccountShopStatusPage_modalTitle__L7dUY",radioGroup:"AccountShopStatusPage_radioGroup__ycb7G",radioLabel:"AccountShopStatusPage_radioLabel__Mcbyr",scheduleFields:"AccountShopStatusPage_scheduleFields__KUNCE",disabledFields:"AccountShopStatusPage_disabledFields__Hh4R3",datePickerWrapper:"AccountShopStatusPage_datePickerWrapper__Nm6wu",timeSelect:"AccountShopStatusPage_timeSelect__8Dz7n",timeSeparator:"AccountShopStatusPage_timeSeparator__F6_oE",validationMessage:"AccountShopStatusPage_validationMessage__gr4wV",cancelScheduleModalText:"AccountShopStatusPage_cancelScheduleModalText__UX1MG",modalActions:"AccountShopStatusPage_modalActions__vL9Lt",cancelButton:"AccountShopStatusPage_cancelButton__VJpRB",submitButton:"AccountShopStatusPage_submitButton__bia7n"}},66028:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var n=a(37876),s=a(73728),l=a.n(s);let c=e=>{let{title:t}=e;return(0,n.jsx)("h1",{className:"".concat(l().heading," ").concat(l().defaultColor),children:t})}},69776:function(e,t,a){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}(a(56557))},70592:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/shop_status",function(){return a(54664)}])},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,a)=>{"use strict";a.d(t,{A:()=>
1o});var n=a(37876),s=a(14232),l=a(30632),c=a.n(l);let o=(0,s.memo)(e=>{let{children:t,isOpened:a,hasScrim:l=!1}=e,o=(0,s.useRef)(null);return(0,s.useEffect)(()=>{if(a){var e;null==(e=o.current)||e.focus(),document.body.style.overflow="hidden"}else document.body.style.overflow="";return()=>{document.body.style.overflow=""}},[a]),(0,n.jsx)(n.Fragment,{children:a&&(0,n.jsx)("div",{"aria-modal":"true",className:a?c().opened:c().closed,ref:o,role:"dialog","aria-labelledby":"modal-heading",tabIndex:-1,children:l?(0,n.jsx)("div",{className:c()["modal-scrim"],children:t}):t})})})},83377:(e,t,a)=>{"use strict";a.d(t,{A:()=>n.A});var n=a(24783)}},e=>{e.O(0,[8513,1121,6701,8827,8230,3019,1126,8369,7458,847,4301,9543,636,6593,8792],()=>e(e.s=70592)),_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.