PageSourceSearch

https://ssj.net/component---src-pages-member-account-dev-tsx-2da5bc9bf9d89b064407.js

js ssj.net collected 2026-09-25 06:04:15 UTC 13,386 bytes, 2 lines download raw bytes

vendor: 4,008 bytes, line 1
1(self.webpackChunksjf=self.webpackChunksjf||[]).push([[1452,5274],{9387:function(t){t.exports=function(){"use strict";var t={year:0,month:1,day:2,hour:3,minute:4,second:5},e={};return function(s,n,r){var i,a=function(t,s,n){void 0===n&&(n={});var r=new Date(t),i=function(t,s){void 0===s&&(s={});var n=s.timeZoneName||"short",r=t+"|"+n,i=e[r];return i||(i=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:n}),e[r]=i),i}(s,n);return i.formatToParts(r)},o=function(e,s){for(var n=a(e,s),i=[],o=0;o<n.length;o+=1){var l=n[o],c=l.type,u=l.value,d=t[c];d>=0&&(i[d]=parseInt(u,10))}var f=i[3],m=24===f?0:f,h=i[0]+"-"+i[1]+"-"+i[2]+" "+m+":"+i[4]+":"+i[5]+":000",x=+e;return(r.utc(h).valueOf()-(x-=x%1e3))/6e4},l=n.prototype;l.tz=function(t,e){void 0===t&&(t=i);var s=this.utcOffset(),n=this.toDate(),a=n.toLocaleString("en-US",{timeZone:t}),o=Math.round((n-new Date(a))/1e3/60),l=r(a,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(n.getTimezoneOffset()/15)-o,!0);if(e){var c=l.utcOffset();l=l.add(s-c,"minute")}return l.$x.$timezone=t,l},l.offsetName=function(t){var e=this.$x.$timezone||r.tz.guess(),s=a(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return s&&s.value};var c=l.startOf;l.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return c.call(this,t,e);var s=r(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return c.call(s,t,e).tz(this.$x.$timezone,!0)},r.tz=function(t,e,s){var n=s&&e,a=s||e||i,l=o(+r(),a);if("string"!=typeof t)return r(t).tz(a);var c=function(t,e,s){var n=t-60*e*1e3,r=o(n,s);if(e===r)return[n,e];var i=o(n-=60*(r-e)*1e3,s);return r===i?[n,r]:[t-60*Math.min(r,i)*1e3,Math.max(r,i)]}(r.utc(t,n).valueOf(),l,a),u=c[0],d=c[1],f=r(u).utcOffset(d);return f.$x.$timezone=a,f},r.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},r.tz.setDefault=function(t){i=t}}}()},178:function(t){t.exports=function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,s=/([+-]|\d\d)/g;return function(n,r,i){var a=r.prototype;i.utc=function(t){return new r({date:t,utc:!0,args:arguments})},a.utc=function(e){var s=i(this.toDate(),{locale:this.$L,utc:!0});return e?s.add(this.utcOffset(),t):s},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var o=a.parse;a.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),o.call(this,t)};var l=a.init;a.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else l.call(this)};var c=a.utcOffset;a.utcOffset=function(n,r){var i=this.$utils().u;if(i(n))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof n&&(n=function(t){void 0===t&&(t="");var n=t.match(e);if(!n)return null;var r=(""+n[0]).match(s)||["-",0,0],i=r[0],a=60*+r[1]+ +r[2];return 0===a?0:"+"===i?a:-a}(n),null===n))return this;var a=Math.abs(n)<=16?60*n:n,o=this;if(r)return o.$offset=a,o.$u=0===n,o;if(0!==n){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(a+l,t)).$offset=a,o.$x.$localOffset=l}else o=this.utc();return o};var u=a.format;a.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,e)},a.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var d=a.toDate;a.toDate=function(t){return"s"===t&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var f=a.diff;a.diff=function(t,e,s){if(t&&this.$u===t.$u)return f.call(this,t,e,s);
1var n=this.local(),r=i(t).local();return f.call(n,r,e,s)}}}()},9625:function(t,e,s){"use strict";var n=s(5268),r=s(7118),i=s(1955),a=s(8538),o=s(7590),l=s(4861),c=s(5893);e.Z=t=>{let{component:e,isUseBirthday:s=!1,birthday:u,birthday_old:d,birthday_new:f,isLimitedPage:m=!1,...h}=t;const x=(0,n.useLocation)();if(!(0,o.jU)())return null;if(!(0,o.jl)()){const t=x.href;return i.Z.set("connect_redirect",t,{path:"/",expires:1/24}),(0,r.c4)("/connect/"),null}const v=(0,o.PR)();if(!v){const t=x.href;return i.Z.set("connect_redirect",t,{path:"/",expires:1/24}),(0,r.c4)("/connect/"),null}if(v._onePeriodExtension&&"/member/account/memberid/"!==x.pathname)return(0,c.jsx)(a.MemberIdContent,{});if(s)try{const{isWeekBirthday:t,version:e}=(0,l.I)({birthday:v.Birthday,offsetDays:7});if(!t)return(0,r.c4)("/404/"),null;if(e){const t="/member/birthday/"+e+"/";if(x.pathname!==t)return(0,r.c4)(t),null}}catch(p){return(0,r.c4)("/404/"),null}return(0,c.jsx)(e,{...h})}},6620:function(t,e,s){"use strict";s.r(e),s.d(e,{Head:function(){return x},MemberDevContent:function(){return h},default:function(){return m}});var n=s(5268),r=(s(574),s(7294)),i=s(7536),a=s(8572),o=s(9625),l=s(1356),c=s(31),u=s(1604),d=s(2456),f=s(5893);function m(){return(0,f.jsxs)("div",{children:[(0,f.jsx)(a.o,{}),(0,f.jsxs)(l.Z,{children:[(0,f.jsx)(c.Z,{title:"MEMBER ID",className:"mb-6"}),(0,f.jsx)(n.Router,{basepath:"/member/account",children:(0,f.jsx)(o.Z,{path:"/dev/",component:h})}),(0,f.jsx)(u.Z,{topTo:"/member/"})]})]})}function h(){var t,e;const{setValue:s,register:n,handleSubmit:a,watch:o,formState:{errors:l,isSubmitting:c},reset:u,setError:d}=(0,i.cI)(),{0:m,1:h}=(0,r.useState)(null),{0:x,1:v}=(0,r.useState)([]),{0:p,1:b}=(0,r.useState)(0);(0,r.useEffect)((()=>{m&&v(((t,e)=>{const s=[];for(let n=0;n<t.length;n+=e)s.push(t.slice(n,n+e));return s})(m,50))}),[m]),(0,r.useEffect)((()=>{}),[x]);return(0,f.jsxs)("div",{children:[(0,f.jsxs)("form",{onSubmit:a((async t=>{const e=new FileReader;e.readAsDataURL(t.file[0]),s("current",t.current||0),e.onload=t=>{try{var e;const s=JSON.parse((t=>{try{const e=atob(t.split(",")[1]);return decodeURIComponent(Array.from(e).map((t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2))).join(""))}catch(e){return alert(e),null}})(null===(e=t.target)||void 0===e?void 0:e.result)||"");h(s)}catch(s){alert(s)}}})),children:[(0,f.jsx)("input",{type:"file",...n("file")}),(0,f.jsx)("br",{}),(0,f.jsx)("button",{className:"bg-black text-white px-2 py-1",type:"submit",children:"ファイルの選択"})]}),(0,f.jsxs)("div",{className:"mt-4",children:[m&&(0,f.jsx)("div",{className:"my-4",children:(0,f.jsx)("form",{onSubmit:a((async t=>{b(Number(t.current||0))})),children:(0,f.jsxs)("p",{children:["ページ: ",(0,f.jsx)("input",{type:"number",...n("current")}),"/",null!=m&&m.length?Math.floor(m.length/50):0,(0,f.jsx)("button",{className:"ml-4 bg-black text-white leading-none py-1 px-1",type:"submit",children:"ページの選択"})]})})}),(0,f.jsxs)("div",{className:"my-4",children:[(0,f.jsxs)("p",{children:["表示数: ",null===(t=x[p])||void 0===t?void 0:t.length]}),(0,f.jsxs)("p",{children:["総数: ",null==m?void 0:m.length," "]})]}),(0,f.jsx)("div",{className:"flex flex-col gap-4",children:null===(e=x[p])||void 0===e?void 0:e.map(((t,e)=>{let{id:s,encrypted:n,n1:r,n2:i}=t;return(0,f.jsxs)("div",{children:[(0,f.jsxs)("p",{children:[s," : ",r," ",i]}),(0,f.jsx)("img",{className:"",width:300,src:"https://ssj-member-image.s3.us-east-2.amazonaws.com/"+n+".png",alt:"card"})]},s)}))})]})]})}const x=()=>(0,f.jsx)(d.Z,{subtitle:"MEMBER ID",slug:"/member/account/dev"})},8538:function(t,e,s){"use strict";s.r(e),s.d(e,{Head:function(){return N},MemberIdContent:function(){return y},default:function(){return g}});var n=s(5268),r=s(512),i=s(574),a=s(7294),o=s(4480),l=s(4959),c=s(8572),u=s(9911),d=s(9625),f=s(1356),m=s(31),h=s(1604),x=s(4079),v=s(2456),p=s(7590),b=s(548),j=s(5893);function g(){return(0,j.jsxs)("div",{children:[(0,j.jsx)(c.o,{}),(0,j.jsxs)(f.Z,{children:[(0,j.jsx)(m.Z,{title:"MEMBER ID",className:"mb-6"}),(0,j.jsx)(n.Router,{basepath:"/member/account",children:(0,j.jsx)(d.Z,{path:"/memberid/",component:y})}),(0,j.jsx)(h.Z,{topTo:"/member/"})]})]})}function y(){const[t,e]=(0,o.FV)(b.E),{location:s}=n.globalHistory,c=(0,i.useStaticQuery)("2360266289"),{0:d,1:f}=(0,a.useState)({id:"SSJ13X021",start:"202x.12.31",limit:"202x.01.31",onePeriodExtension:!1,cryptoId:null}),{0:m,1:h}=(0,a.useState)(!1),{0:v,1:g}=(0,a.useState)(null),{0:y,1:N}=(0,a.useState)(!1);(0,a.useEffect)((()=>{d.cryptoId&&g("https://ssj-member-image.s3.us-east-2.amazonaws.com/"+d.cryptoId+".png")}),[d]),(0,a.useEffect)((()=>
1{if(!v)return;const t=document.createElement("img");t.src=v,t.onload=()=>{h(!0)},t.onerror=()=>{h(!1)}}),[v]),(0,a.useEffect)((()=>{m&&e({...t,isSwitchingCard:y})}),[v,y]),(0,a.useEffect)((()=>{N(t.isSwitchingCard)}),[]),(0,a.useEffect)((()=>{const t=(0,p.PR)();if(!t)return;const{Name1:e,Name2:s,FcElement:n,_onePeriodExtension:r,cryptoId:i}=t,{FcNo:a,FcJoinDate:o,FcExpDate:l,FcDuration:c}=n,u=(Number(c),a),d=o.replace(/\//g,"."),m=l.replace(/\//g,".");f({id:u,start:d,limit:m,onePeriodExtension:r,cryptoId:i})}),[]);const S=(0,j.jsxs)("div",{className:"relative",children:[(0,j.jsx)("figure",{className:"",children:(0,j.jsx)(l.Z,{className:"w-full h-auto",data:c.card})}),(0,j.jsx)("div",{className:"absolute top-1/2 left-0 w-full translate-y-[-100%]",children:(0,j.jsx)("div",{className:(0,r.Z)("relative text-right pl-[50%] pr-[14%] text_enbos"),children:(0,j.jsxs)("div",{className:"relative text-[5vw] tb:text-[40px] font-en font-bold leading-none",children:[d.id,(0,j.jsx)("div",{className:"absolute bottom-[125%] right-0 text-[8px] font-en font-extrabold leading-none",children:"SSJ MEMBER ID"}),(0,j.jsxs)("div",{className:"absolute top-[125%] right-0 text-[1vw] tb:text-[12px] font-normal flex justify-end flex-wrap gap-x-4 leading-none",children:[(0,j.jsxs)("div",{children:[(0,x.lt)("memberid_lbl_01")," / ",(0,j.jsx)("span",{className:"font-en",children:d.start})]}),(0,j.jsxs)("div",{children:[(0,x.lt)("memberid_lbl_02")," / ",(0,j.jsx)("span",{className:"font-en",children:d.limit})]})]})]})})})]}),w=(0,j.jsxs)("div",{className:"relative",children:[(0,j.jsx)("figure",{className:"",children:(0,j.jsx)("img",{className:"w-full h-auto",src:v,alt:"card"})}),(0,j.jsxs)("div",{className:"absolute top-[8%] left-[7%] text-[1vw] tb:text-[12px] font-normal flex justify-end flex-wrap gap-x-4 leading-none",children:[(0,j.jsxs)("div",{children:[(0,x.lt)("memberid_lbl_01")," / ",(0,j.jsx)("span",{className:"font-en",children:d.start})]}),(0,j.jsxs)("div",{children:[(0,x.lt)("memberid_lbl_02")," / ",(0,j.jsx)("span",{className:"font-en",children:d.limit})]})]}),(0,j.jsx)("div",{className:"absolute top-[58%] left-0 w-full translate-y-[-100%]",children:(0,j.jsx)("div",{className:(0,r.Z)("relative text-left pl-[50%] pr-[14%] text-black font-bold"),children:(0,j.jsx)("div",{className:"absolute top-0 right-[7%] w-[40%] text-[5vw] tb:text-[40px] font-en font-bold leading-none",children:(0,j.jsx)($,{str:d.id})})})})]});return(0,j.jsxs)("div",{className:(0,r.Z)("/member/"===s.pathname&&"mt-20 tb:mt-[124px] px-4"),children:[d.onePeriodExtension&&(0,j.jsxs)("div",{className:"tb:mt-10 font-bold text-sm text-center text-red-500",children:["会員の有効期限が切れています。期限切れの翌月末までこのページは確認できます。",(0,j.jsx)("a",{className:"underline",href:"https://mypage.ssj.net/v2/member/MyPage.aspx?ccode=ssj",children:"更新はこちら"})]}),(0,j.jsxs)("div",{className:"relative mt-6 tb:mt-10 mb-16 max-w-[716px] mx-auto",children:[m?(0,j.jsx)(j.Fragment,{children:y?S:w}):S,(0,j.jsxs)("div",{className:"mt-6 flex flex-col gap-y-4",children:[m&&(0,j.jsx)(u.Z,{isBorderd:!0,className:"mx-auto",onClick:()=>{N(!y)},children:(0,x.lt)("memberid_btn_02")}),(0,j.jsx)(u.Z,{className:"mx-auto",to:"https://mypage.ssj.net/v2/member/MyPage.aspx?ccode=ssj",children:(0,x.lt)("memberid_btn_01")})]})]})]})}function $(t){let{str:e}=t;const s=e.replace("SSJ","").split("");return(0,j.jsxs)("div",{className:"flex justify-end relative",children:[(0,j.jsx)("img",{className:"w-[30%]",src:"/assets/images/memberId__img__drow-ssj.png",alt:"SSJ"}),s.map(((t,e)=>(0,j.jsx)("img",{className:"w-[10%] h-auto",src:"/assets/images/memberId__img__drow-"+t+".png",alt:t},e)))]})}const N=()=>(0,j.jsx)(v.Z,{subtitle:"MEMBER ID",slug:"/member/account/memberid"})},4861:function(t,e,s){"use strict";s.d(e,{I:function(){return a}});var n=s(7484),r=s.n(n);r().extend(s(9387)),r().extend(s(178)),r().locale("Asia/Tokyo");const i=864e5;function a(t){let{birthday:e,offsetDays:s}=t;if(!e||"string"!=typeof e)throw new Error("Invalid birthday format");const n=r()().locale("jp").startOf("day"),a=n.year(),o=e.split("/");if(3!==o.length)throw new Error("Birthday must be in YYYY/MM/DD format");let l=r()(a+"/"+o[1]+"/"+o[2]).startOf("day");const{version:c}=function(t){let e=2023;for(let s=2023;s<2053;s++){const n=r()(s+"-10-02").startOf("day"),i=r()(s+1+"-10-01").endOf("day"),a=t.isAfter(n)||t.isSame(n),o=t.isBefore(i)||t.isSame(i);if(a&&o)return e=s,{version:e}}return{version:e}}(l),u=i*s,d=l.add(u,"millisecond"),f=l.diff(n);return{isNowBirthday:0===f,isWeekBirthday:n.diff(d)<=0&&f<=0,version:c}}}}]);
2//# sourceMappingURL=component---src-pages-member-account-dev-tsx-2da5bc9bf9d89b064407.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.