1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[60079],{24652:(e,l,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/buyer/me/billing_config",function(){return r(32387)}])},29971:(e,l,r)=>{"use strict";r.d(l,{L:()=>N,i:()=>y});var i=r(37876),o=r(89461),s=r(53869),n=r(9749),a=r(32056),d=r(96491),t=r(18387),c=r(14232),u=r(57503),g=r(42095),h=r(58986),x=r(44921),v=r(84308),p=r(51365);let m={background:"gds.white",color:"gds.black",borderStyle:"solid",borderRadius:"8px",boxShadow:"none",_disabled:{color:"gds.gray7",cursor:"not-allowed"},_focusVisible:{outline:"none"},_invalid:{borderColor:"gds.fadedorange"},_hover:{cursor:"pointer"},_placeholder:{color:"gds.gray7"}},f={initial:{_focus:{bgColor:"gds.gray2"},_active:{bgColor:"gds.gray2"},_disabled:{bgColor:"gds.gray4"}},error:{_focus:{bgColor:"gds.gray2"},_active:{bgColor:"gds.gray2"},_disabled:{bgColor:"gds.gray4"}}},b={initial:{borderColor:"gds.gray5",borderWidth:"1px",_hover:{borderColor:"gds.gray8"},_focus:{borderColor:"gds.gray9"},_active:{borderColor:"gds.gray9"},_disabled:{borderColor:"gds.gray3"}},error:{borderColor:"gds.fadedorange",borderWidth:"2px",_hover:{borderColor:"gds.macaronicheese"},_focus:{borderColor:"gds.macaronicheese"},_active:{borderColor:"gds.macaronicheese"},_disabled:{borderColor:"none"}}},j={normal:{py:"12px",px:"12px"}},C={normal:"16px"},_={_hover:{cursor:"pointer"},sx:{"::-webkit-calendar-picker-indicator":{cursor:"pointer"}}},N=(0,o.R)((e,l)=>{let{size:r="normal",type:o,status:t,isInvalid:N,children:y,label:w,hint:k,errorMessage:I,leftIcon:S,rightIcon:O,...R}=e,{t:E}=(0,v.yi)(),L=(0,s.Uc)(),P=(null==L?void 0:L.isInvalid)||N?"error":t||"initial",[B,M]=(0,c.useState)(!1);return(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[w&&(0,i.jsx)(u.Hel,{children:w}),(0,i.jsxs)(n.M,{children:[S&&(0,i.jsx)(a.W,{children:S}),(0,i.jsx)(d.p,{ref:l,type:"password"!==o?o:B?"text":"password",fontSize:C[r],onWheel:e=>{"number"===o&&e.target.blur()},...p.t.merge(m,f[P],b[P]),...j[r],h:"auto",...(0,x.yt)(R),..."date"===o?_:{},children:y}),O&&(0,i.jsx)(a.t,{h:"100%",children:O}),!O&&"password"===o&&(0,i.jsx)(a.t,{h:"100%",children:B?(0,i.jsx)(h.cW,{width:C[r],height:C[r],_hover:{cursor:"pointer"},onClick:()=>M(!B)}):(0,i.jsx)(h.ep,{width:C[r],height:C[r],_hover:{cursor:"pointer"},onClick:()=>M(!B)})})]}),k&&(0,i.jsx)("div",{className:"text-gds-s text-gray7",children:k}),I&&(0,i.jsx)(u.WtO,{children:(()=>{let e=String(I);if(e.includes("INSTAGRAM_URL_GUIDE")){let l="INSTAGRAM_URL_GUIDE",r=e.indexOf(l),o=e.substring(0,r),s=e.substring(r+l.length);return(0,i.jsxs)(i.Fragment,{children:[o,(0,i.jsx)(g.N,{href:"https://buzzcollege.net/instagram/113",isExternal:!0,variant:"emphasis",children:E("ãã¡ãã®è¨äº")}),s]})}return I})()})]})});N.displayName="BuyerProfileInput";let y=e=>(0,i.jsxs)(t.I,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",...e,children:[(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.9232 6.07611C14.2487 6.40155 14.2487 6.92918 13.9232 7.25462L7.25657 13.9213C6.93114 14.2467 6.4035 14.2467 6.07806 13.9213C5.75263 13.5959 5.75263 13.0682 6.07806 12.7428L12.7447 6.07611C13.0702 5.75067 13.5978 5.75067 13.9232 6.07611Z",fill:"#212729"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.07806 6.07611C6.4035 5.75067 6.93114 5.75067 7.25657 6.07611L13.9232 12.7428C14.2487 13.0682 14.2487 13.5959 13.9232 13.9213C13.5978 14.2467 13.0702 14.2467 12.7447 13.9213L6.07806 7.25462C5.75263 6.92918 5.75263 6.40155 6.07806 6.07611Z",fill:"#212729"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 1.66667C5.39763 1.66667 1.66667 5.39763 1.66667 10C1.66667 14.6024 5.39763 18.3333 10 18.3333C14.6024 18.3333 18.3333 14.6024 18.3333 10C18.3333 5.39763 14.6024 1.66667 10 1.66667ZM0 10C0 4.47715 4.47715 0 10 0C15.5228 0 20 4.47715 20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10Z",fill:"#212729"})]})},32387:(e,l,r)=>{"use strict";r.r(l),r.d(l,{__N_SSP:()=>y,default:()=>w});var i=r(37876),o=r(24836),s=r(14232),n=r(88992),a=r(91408),d=r(57503),t=r(86287),c=r(14428),u=r(48277),g=r(3207),h=r(29971),x=r(27398),v=r(75597),p=r(84308),m=r(58461),f=r(73228),b=r(30179),j=r(34379),C=r(99087);let _=e=>{var l,r;let{t:o}
1=(0,p.yi)(),[t,c]=(0,s.useState)(!1),u=(0,f.oc)(),g=a.Ik().shape({invoiceName:a.Yj().trim().max(255,o("è«æ±æ¸ã®å®åã¯255æå以å ã§å ¥åãã¦ãã ãã")).nullable()}),v=(0,n.mN)({defaultValues:{invoiceName:e.invoiceName},mode:"onBlur",resolver:(0,b.N)(g)}),m=async l=>{try{c(!0);let i=await u.updateBuyerInvoiceName({input:{invoiceName:(0,x.eA)(l.invoiceName)}});if("OK"===i.updateBuyerInvoiceName.status){var r;C.o.success(o("è«æ±æ¸ã®å®åãæ´æ°ãã¾ãã"));let i={invoiceName:null!=(r=l.invoiceName)?r:null};e.onUpdate(i),e.onClose()}else throw Error()}catch(e){C.o.error(o("è«æ±æ¸ã®å®åã®æ´æ°ã«å¤±æãã¾ãããæéãããã¦å度ã試ããã ããã"))}finally{c(!1)}};return(0,i.jsx)(d.QJ5,{size:"small",title:o("ãè«æ±é£çµ¡å æ å ±ã®å¤æ´"),footerLeftButton:(0,i.jsx)(j.$,{gds:!0,variant:"outline",loading:t,onClick:e.onClose,children:o("ãã£ã³ã»ã«")}),footerRightButton:(0,i.jsx)(j.$,{gds:!0,loading:t,onClick:v.handleSubmit(m),children:o("æ´æ°")}),isOpen:e.isOpen,onClose:e.onClose,autoFocus:!1,children:(0,i.jsx)("div",{className:"px-4 pt-6 pb-12",children:(0,i.jsxs)(d.AN8,{isInvalid:!!v.formState.errors.invoiceName,isOptional:!0,children:[(0,i.jsx)(d.Hel,{pb:"space-8",children:o("è«æ±æ¸ã®å®å")}),(0,i.jsx)(h.L,{errorMessage:null==(l=v.formState.errors.invoiceName)?void 0:l.message,defaultValue:(null==(r=v.formState.defaultValues)?void 0:r.invoiceName)||void 0,...v.register("invoiceName")})]})})})},N=e=>{var l,r,n,a,t,c,g;let{t:h}=(0,p.yi)(),x=(0,o.j)(),f=(0,o.j)(),{isSp:b}=(0,m.Y0)(),[C,N]=(0,s.useState)((null==(r=e.buyerProfile)||null==(l=r.invoiceName)?void 0:l.v)||null),[y,w]=(0,s.useState)(null!=(g=null==(a=e.buyerProfile)||null==(n=a.billingEmail)?void 0:n.v)?g:""),k=null==(c=e.buyerProfile.buyerBusinessProfile)||null==(t=c.businessName)?void 0:t.v,I=C||k;return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"flex flex-col",children:(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:"bg-white rounded-xl",children:(0,i.jsxs)("div",{className:"flex flex-col gap-4 py-4 px-6",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsx)(d.cvg,{contrast:"high",label:h("è«æ±æ¸ã®å®å")}),I?(0,i.jsx)("div",{className:"text-gds-m",children:I}):(0,i.jsx)("div",{className:"text-gds-m text-gray7",children:h("æªè¨å®")})]}),(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsx)(d.cvg,{contrast:"high",label:h("æç´°æ¸éä»ã¡ã¼ã«ã¢ãã¬ã¹")}),(0,i.jsx)("div",{className:"text-gds-m",children:y})]})]})}),(0,i.jsxs)("div",{className:"flex justify-center gap-2 pt-6",children:[(0,i.jsx)(j.$,{gds:!0,variant:"outline",size:b?"sm":"default",onClick:x.onOpen,children:h("è«æ±æ¸ã®å®å夿´",{context:"billingInformation"})}),(0,i.jsx)(j.$,{gds:!0,variant:"outline",size:b?"sm":"default",onClick:f.onOpen,children:h("ã¡ã¼ã«ã¢ãã¬ã¹å¤æ´",{context:"billingInformation"})}),(0,i.jsx)(_,{invoiceName:C,onUpdate:e=>N(e.invoiceName),isOpen:x.isOpen,onClose:x.onClose}),(0,i.jsx)(u.j,{updateEmailType:v.k9Q.BUYER_BILLING_EMAIL,onUpdate:e=>w(e),isOpen:f.isOpen,onClose:f.onClose})]})]})})})};var y=!0;function w(e){let{t:l}=(0,p.yi)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.A,{title:l("è«æ±é£çµ¡å æ å ±è¨å®")}),(0,i.jsxs)(c.oP,{headerData:e.headerData,children:[(0,i.jsx)(g.j,{title:l("è«æ±é£çµ¡å æ å ±è¨å®")}),(0,i.jsx)(N,{buyerProfile:e.buyerProfile})]})]})}}},e=>{e.O(0,[80184,96415,81300,79454,93164,47576,81838,95328,80682,10505,26170,34815,98324,88,19716,67442,74159,9118,12923,53399,90636,46593,38792],()=>e(e.s=24652)),_N_E=e.O()}]); 2//# sourceMappingURL=billing_config-220ba30217ba3753.js.map
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.