PageSourceSearch

https://www.foresight.jp/_next/static/chunks/5642-b3e97b78da47ad6d.js

js foresight.jp collected 2026-10-02 17:03:07 UTC 56,053 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5642],{41460:function(e,t,i){var c=i(85893),n=i(67294),l=i(25675),a=i.n(l);let s=()=>(0,c.jsxs)("div",{className:"c-paidy-contents",children:[(0,c.jsx)(a(),{src:"/img/price/paidy/paidy-logo.svg",alt:"Paidy Logo",width:142,height:56}),(0,c.jsx)("h2",{className:"c-paidy-contents__title",children:"使い方は簡単。たったの4ステップ。"}),(0,c.jsxs)("div",{className:"c-paidy-steps",children:[(0,c.jsxs)("div",{className:"c-paidy-step l-grid-row",children:[(0,c.jsx)("div",{className:"c-paidy-step__number l-col-3",children:(0,c.jsx)("label",{children:"1"})}),(0,c.jsxs)("div",{className:"c-paidy-step__content l-col-7",children:[(0,c.jsx)("div",{className:"c-paidy-step__icon",children:(0,c.jsx)(a(),{src:"/img/price/paidy/cart-icon.svg",alt:"ショッピングカート",width:184,height:184})}),(0,c.jsx)("p",{className:"c-paidy-step__text",children:"ショップのお支払い方法で「あと払い(ペイディ)」を選択し、メアドと携帯番号を入力。"})]})]}),(0,c.jsxs)("div",{className:"c-paidy-step l-grid-row",children:[(0,c.jsx)("div",{className:"c-paidy-step__number l-col-3",children:(0,c.jsx)("label",{children:"2"})}),(0,c.jsxs)("div",{className:"c-paidy-step__content l-col-7",children:[(0,c.jsx)("div",{className:"c-paidy-step__icon",children:(0,c.jsx)(a(),{src:"/img/price/paidy/sms-code.svg",alt:"認証コード",width:184,height:184})}),(0,c.jsx)("p",{className:"c-paidy-step__text",children:"SMSで送信される4桁の認証コードを入力してお買い物完了。"})]})]}),(0,c.jsxs)("div",{className:"c-paidy-step l-grid-row",children:[(0,c.jsx)("div",{className:"c-paidy-step__number l-col-3",children:(0,c.jsx)("label",{children:"3"})}),(0,c.jsxs)("div",{className:"c-paidy-step__content l-col-7",children:[(0,c.jsx)("div",{className:"c-paidy-step__icon",children:(0,c.jsx)(a(),{src:"/img/price/paidy/invoice.svg",alt:"請求書",width:184,height:184})}),(0,c.jsx)("p",{className:"c-paidy-step__text",children:"翌月1日~5日にメールとSMSでご請求金額をお知らせ。"})]})]}),(0,c.jsxs)("div",{className:"c-paidy-step l-grid-row",children:[(0,c.jsx)("div",{className:"c-paidy-step__number l-col-3",children:(0,c.jsx)("label",{children:"4"})}),(0,c.jsxs)("div",{className:"c-paidy-step__content l-col-7",children:[(0,c.jsx)("div",{className:"c-paidy-step__icon",children:(0,c.jsx)(a(),{src:"/img/price/paidy/payment.svg",alt:"支払い",width:184,height:184})}),(0,c.jsx)("p",{className:"c-paidy-step__text",children:"翌月27日までに、コンビニ払い、銀行振込、口座振替でお支払いください。"})]})]})]})]});t.Z=e=>{var t,i;let{price:l}=e,[r,o]=(0,n.useState)(!1),d=(0,n.useRef)(null);(0,n.useEffect)(()=>{let e=e=>{d.current&&!d.current.contains(e.target)&&o(!1)};return r?(document.addEventListener("mousedown",e),document.body.style.overflow="hidden"):(document.removeEventListener("mousedown",e),document.body.style.overflow="auto"),()=>{document.removeEventListener("mousedown",e),document.body.style.overflow="auto"}},[r]);let u=Number((null==l?void 0:null===(t=l.value)||void 0===t?void 0:t.replace(/,/g,""))||(null==l?void 0:null===(i=l.price_value)||void 0===i?void 0:i.replace(/,/g,""))),p=(u/(u>=12e3?12:3)).toFixed(0).toLocaleString("ja-JP");return(0,c.jsxs)("div",{className:"c-paidy-info",children:[(0,c.jsx)("div",{className:"c-paidy-info__logo",children:(0,c.jsx)(a(),{src:"/img/price/paidy/paidy-logo.svg",alt:"Paidy Logo",width:142,height:56})}),(0,c.jsxs)("p",{children:["なら",(0,c.jsxs)("span",{className:"u-fw-bold",children:["月々",p,"円"]}),"から。分割手数料無料"]}),(0,c.jsx)("span",{className:"c-paidy-info__icon",onClick:()=>{o(!0)},children:(0,c.jsx)(a(),{src:"/img/price/paidy/info.svg",alt:"Info Icon",width:24,height:24})}),r&&(0,c.jsx)("div",{className:"c-paidy-popup__overlay",children:(0,c.jsxs)("div",{className:"c-paidy-popup",ref:d,children:[(0,c.jsx)("button",{className:"c-paidy-popup__close",onClick:()=>{o(!1)},children:"\xd7"}),(0,c.jsx)("div",{className:"c-paidy-popup__content",children:(0,c.jsx)(s,{})})]})})]})}},96591:function(e,t,i){i.d(t,{lT:function(){return s},Ik:function(){return $},yU:function(){return o},d4:function(){return ey},wV:function(){return m},Kz:function(){return eN},gd:function(){return L},Z0:function(){return C},aD:function(){return f},j$:function(){return eh},_q:function(){return ex},L2:function(){return w},Hu:function(){return ef},p4:function(){return F},FO:function(){return z},gq:function(){return Z},NO:function(){return D},zo:function(){return eg},P5:function(){return ej},av:function(){return I},z2:function(){return b},dS:function(){return eb}});var c=i(85893),n=i(12937),l=i(21978);let a=(e,t)=>{var i,n,a;let s;let r=((null===(i=e.discount_text)||void 0===i?void 0:i.split(/(\{discount_value\})/g))||[]).map((t,i)=>"{discount_value}
1"===t?(0,c.jsx)("span",{children:e.discount_value.toLocaleString()},"discount-value-".concat(i)):t);return(0,c.jsxs)("a",{href:"#".concat(e.product.anchor),children:[(0,c.jsxs)("div",{className:"c-price-campaign__item",children:[(0,c.jsxs)("div",{className:"c-price-campaign__item--left",children:[(0,c.jsxs)("div",{className:"c-price-campaign__header",children:[(0,c.jsx)("p",{className:"u-fs-2",children:e.recommendation}),(0,c.jsx)("b",{className:"c-price-campaign__name",children:e.product.name})]}),(0,c.jsx)("b",{className:"c-price-campaign__discount u-text-red-primary u-fs-3",children:r})]}),(0,c.jsx)("div",{className:"c-price-campaign__item--right",children:(0,c.jsxs)("b",{className:"c-price-campaign__price u-text-red-primary u-fs-7",children:[(s=e.product,(0,l._N)(!0,e.discount_value||0,s.price_info)),(0,c.jsx)("span",{className:"u-fs-4",children:(null===(a=e.product)||void 0===a?void 0:null===(n=a.price_info_with_dvd)||void 0===n?void 0:n.value)?"円~":"円"})]})})]}),(0,c.jsx)("div",{className:"c-price-campaign__down-arrow icon icon-s--arrow_drop_down"})]},"campaign-button-".concat(t))};var s=e=>{let{campaign:t}=e,{expiration_date:i}=t;if(!i||new Date>new Date(i))return null;let{discount_snippet:s,discount_event_children:r}=t,o=(null==r?void 0:r.data)||[];if(0===o.length)return null;let d=Array.isArray(s)&&s.length>0?s[0]:{},u=(0,l.aD)(o);u=u.sort((e,t)=>e.product.recommendOrder-t.product.recommendOrder);let{month:p,day:_,time:v}=n.Z.ParseDateTime(t.expiration_date),[h,m]=v?v.split(":"):["",""];return(0,c.jsxs)("div",{className:"c-price-campaign",children:[(0,c.jsxs)("div",{className:"c-price-campaign__title u-bg-red-primary",children:[(0,c.jsxs)("p",{className:" u-text-white u-fs-5 u-fw-bold u-text-center",children:[p,"月",_,"日",h,"時",m,"分まで!"]}),(0,c.jsx)("h2",{className:"u-text-white c-title-accent c-title-accent--white",children:d.header_text||"キャンペーン対象商品はこちら"})]}),(0,c.jsx)("div",{className:"l-contents c-price-campaign__contents u-bg-red-primary",children:u.map((e,t)=>a(e,t))})]})},r=i(67294),o=e=>{let{title:t,label:i,children:n}=e,[l,a]=(0,r.useState)(!1),s=()=>{a(!l)};return(0,c.jsxs)("div",{className:"c-price-common-accordion",children:[(0,c.jsxs)("div",{className:"c-price-common-accordion__title",onClick:s,children:[(0,c.jsx)("b",{className:"u-fw-bold u-text-white",children:t}),(0,c.jsx)("span",{className:"icon icon-size--sm ".concat(l?"icon-e--keyboard_arrow_up":"icon-e--keyboard_arrow_down"," u-fs-1 u-text-black"),children:i})]}),(0,c.jsx)("div",{className:"c-price-common-accordion__contents u-bg-gray-light ".concat(l?"is-open":"is-close"),children:(0,c.jsx)("div",{children:(0,c.jsx)("div",{className:"l-contents",children:r.Children.map(n,e=>r.isValidElement(e)&&"string"!=typeof e.type?r.cloneElement(e,{toggleAccordion:s}):e)})})})]})},d=i(41664),u=i.n(d);let p={code_label:"クーポンコード:",copied_button_text:"コピーしました!",default_button_text:"コードをコピーする",product_links_label:"対象講座",header_text:"今ならクーポンで{discount_value}円OFF!"},_=e=>{let{expiration_date:t,discountSnippet:i,groupedProductByCode:l}=e,{month:a,day:s,time:r}=n.Z.ParseDateTime(t),o=!(l.length>1)||(null==i?void 0:i.header_text)?"":"最大",d=(null==i?void 0:i.header_text)||p.header_text,u=Math.max(...l.map(e=>e.discount_value)).toLocaleString(),_=d.split(/(\{discount_value\}円)/g);return(0,c.jsxs)("div",{className:"c-price-coupon__header-wrapper",children:[(0,c.jsx)("b",{className:"c-price-coupon__title u-text-white",children:_.map((e,t)=>"{discount_value}円"===e?(0,c.jsx)("span",{children:"".concat(o).concat(u,"円")},t):e)}),(0,c.jsxs)("b",{className:"c-price-coupon__deadline u-bg-white u-text-red-primary",children:[(0,c.jsx)("span",{className:"c-fs--accent",children:a}),(0,c.jsx)("span",{className:"c-fs--base",children:"月"}),(0,c.jsx)("span",{className:"c-fs--accent",children:s}),(0,c.jsx)("span",{className:"c-fs--base",children:"日"}),(0,c.jsx)("span",{className:"c-fs--base u-fs-4-pc",children:r}),(0,c.jsx)("span",{className:"c-fs--base u-fs-4-pc u-fw-normal",children:"まで"})]})]})},v=e=>{let{block:t,blockIndex:i,discountSnippet:n,isCopied:l,onCopy:a,showLinks:s}=e;return(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)("div",{className:"c-price-coupon__code-container ".concat(s?"l-col-12 l-col-pc-6":"l-col-12"),children:[(0,c.jsx)("div",{className:"c-price-coupon__label",children:(0,c.jsxs)("p",{className:"c-price-coupon__code u-fs-2",children:[(null==n?void 0:n.code_label)||p.code_label,(0,c.jsx)("span",{className:"u-fs-6 u-fw-bold",children:t.code})]})}),(0,c.jsx)("button",{onClick:()=>a(i,t.code),className:"c-btn-thirdly",children:l[i]?(null==n?void 0:n.copied_button_text)||p.copied_button_text:(null==n?void 0:n.default_button_text)||p.default_button_text})]})})},h=e=>{let{block:t,blockIndex:i,discountSnippet:n}=e;return(0,c.jsxs)("div",{className:"c-price-coupon__links u-bg-white l-col-12 l-col-pc-6",children:[(0,c.jsx)("div",{className:"c-price-coupon__links-label u-fs-2",children:(null==n?void 0:n.product_links_label)||p.product_links_label}),(0,c.jsx)("div",{className:"c-price-coupon__links-list",children:t.products.map((e,t)=>(0,c.jsx)("div",{className:"c-price-coupon__link-item ".concat(e.name.length>9?"c-price-coupon__link-item--long u-text-center":"c-price-coupon__link-item--short"),children:(0,c.jsx)(u(),{href:"#".concat(e.anchor),
1children:(0,c.jsx)("span",{className:"c-price-coupon__link",children:e.name})})},"".concat(i,"-").concat(t)))})]})};var m=e=>{var t;let{coupon:i,showLinks:n=!0}=e,{expiration_date:a,discount_snippet:s}=i||{},o=(null==i?void 0:null===(t=i.discount_event_children)||void 0===t?void 0:t.data)||[];if(!a||0===o.length)return null;let d=s?s[0]:{},u=(0,l.RD)(o);if(0===u.length)return null;let[p,m]=(0,r.useState)(Array(u.length).fill(!1));if(new Date>new Date(i.expiration_date))return null;let x=(0,r.useCallback)((e,t)=>{navigator.clipboard.writeText(t),m(t=>{let i=[...t];return i[e]=!0,i})},[]);return(0,c.jsx)("div",{className:"c-price-coupon",children:(0,c.jsxs)("div",{className:"c-price-coupon__wrapper",children:[(0,c.jsx)("div",{className:"c-price-coupon__header u-bg-red-primary",children:(0,c.jsx)("div",{className:"c-title-accent c-title-accent--white",children:(0,c.jsx)(_,{expiration_date:a,discountSnippet:d,groupedProductByCode:u})})}),(0,c.jsx)("div",{className:"c-price-coupon__contents u-bg-red-light",children:u.map((e,t)=>(0,c.jsxs)("div",{className:"c-price-coupon__block l-grid-row",children:[(0,c.jsx)(v,{block:e,blockIndex:t,discountSnippet:d,isCopied:p,onCopy:x,showLinks:n}),n&&e.products.length>0&&(0,c.jsx)(h,{block:e,blockIndex:t,discountSnippet:d})]},t))})]})})},x=i(25675),j=i.n(x),f=e=>{var t,i,n;let{flowchart:l}=e;if(!(null==l?void 0:null===(n=l.img)||void 0===n?void 0:null===(i=n.data)||void 0===i?void 0:null===(t=i.attributes)||void 0===t?void 0:t.url))return null;let{section_title:a,img:s,top_question:r,answer_list:o,answer_list_sp:d,note:p}=l;return(0,c.jsxs)("div",{className:"c-price-flowchart",children:[(0,c.jsx)("div",{className:"c-price-flowchart__title",children:a}),(0,c.jsxs)("div",{className:"c-price-flowchart__contents",children:[(0,c.jsx)("div",{className:"c-price-flowchart__top-question",children:r}),(0,c.jsx)("div",{className:"c-price-flowchart__image",children:(0,c.jsx)(j(),{src:s.data.attributes.url,width:s.data.attributes.width,height:s.data.attributes.height,alt:s.data.attributes.alternativeText||"フローチャート"})}),(0,c.jsxs)("div",{className:"c-price-flowchart__answers u-display-pc u-text-decoration-underline",children:[(0,c.jsxs)("div",{className:"c-price-flowchart__answer",children:[(0,c.jsx)(u(),{href:o[0].link,children:o[0].text}),(0,c.jsx)(u(),{href:o[1].link,children:o[1].text}),(0,c.jsx)(u(),{href:o[2].link,children:o[2].text})]}),(0,c.jsx)("div",{className:"c-price-flowchart__answer",children:(0,c.jsx)(u(),{href:o[3].link,children:o[3].text})}),(0,c.jsx)("div",{className:"c-price-flowchart__answer",children:(0,c.jsx)(u(),{href:o[4].link,children:o[4].text})})]}),(0,c.jsxs)("div",{className:"c-price-flowchart__answers u-display-sp u-text-decoration-underline",children:[(0,c.jsxs)("div",{className:"c-price-flowchart__answer",children:[(0,c.jsx)(u(),{href:d[0].link,children:d[0].text}),(0,c.jsx)(u(),{href:d[1].link,children:d[1].text}),(0,c.jsx)(u(),{href:d[2].link,children:d[2].text})]}),(0,c.jsx)("div",{className:"c-price-flowchart__answer",children:(0,c.jsx)(u(),{href:d[3].link,children:d[3].text})}),(0,c.jsx)("div",{className:"c-price-flowchart__answer",children:(0,c.jsx)(u(),{href:d[4].link,children:d[4].text})})]}),(0,c.jsx)("div",{className:"c-price-flowchart__note",children:(0,c.jsx)("p",{className:"c-text-caption u-text-start",children:p})})]})]})},b=e=>{let{testPreparation:t}=e,{tagged_text:i,after_text:n,btn_list:l}=t,a="c-price-test-preparation__item l-col-12";return a+=l.length>=2?" l-col-pc-6":"",(0,c.jsxs)("div",{className:"l-block",children:[(0,c.jsx)("hr",{}),(0,c.jsx)("div",{className:"l-contents",children:(0,c.jsxs)("div",{className:"c-price-test-preparation u-fw-bold",children:[(0,c.jsx)("h3",{className:"c-price-test-preparation__text",children:(0,c.jsxs)("label",{children:[(0,c.jsx)("span",{className:"u-text-red-primary",children:i}),n]})}),(0,c.jsx)("div",{className:"c-price-test-preparation__items l-grid-row l-contents u-bg-gray-light",children:l.map((e,t)=>(0,c.jsx)("div",{className:a,children:(0,c.jsx)(u(),{href:e.link,className:"c-btn-primary c-btn--next c-btn--sm",passHref:!0,children:(0,c.jsx)("span",{className:"c-button-block__text",children:e.text})})},t))})]})})]})},g=i(27426),N=i(89097);let y=(e,t)=>{var i,c,n;if(!t||!t.length||!e)return{};let l=t.find(e=>{var t;return(null==e?void 0:null===(t=e.attributes)||void 0===t?void 0:t.type)==="campaign"});if(!l)return{};let a=null==l?void 0:null===(n=l.attributes)||void 0===n?void 0:null===(c=n.discount_event_children)||void 0===c?void 0:null===(i=c.data)||void 0===i?void 0:i.find(t=>{var i,c,n,l;return(null==t?void 0:null===(l=t.attributes)||void 0===l?void 0:null===(n=l.product)||void 0===n?void 0:null===(c=n.data)||void 0===c?void 0:null===(i=c.attributes)||void 0===i?void 0:i.anchor)===e.anchor});return a?null==a?void 0:a.attributes:{}},k=(e,t,i,n)=>{var l,a;if(!e)return null;let s=(null==i?void 0:null===(l=i.attributes)||void 0===l?void 0:l.discount_value)||0,r=e.split(/(\{discounted_price\})/g)||[],o=Number(null==t?void 0:null===(a=t.price_info_with_dvd)||void 0===a?void 0:a.value.replace(/,/g,"")),d=(i?o-s-n:o-n).toLocaleStr
1ing();return(0,c.jsx)("p",{className:"c-price-kyufu__attention u-text-red-primary u-bg-white",children:r.map(e=>"{discounted_price}"===e?d:e)})};var w=e=>{var t,i;let{kyufu:n,product:l,isDVD:a=!1,discountEvent:s=[]}=e,{header_first_text_strong:r,header_first_text_base:o,header_second_text_before:d,header_second_value_strong:u,header_second_text_after:p,middle_description:_,dvd_price_text:v,note:h,btn:m}=n,x=y(l,s),j=null==l?void 0:null===(t=l.price_info)||void 0===t?void 0:t.value,f=(null==l?void 0:null===(i=l.price_info)||void 0===i?void 0:i.unit)||"円";if(!j)return null;let b=(0,N._N)(!!x,(null==x?void 0:x.discount_value)||0,null==l?void 0:l.price_info),w=(.8*Number(b.replace(/,/g,""))).toLocaleString(),z=.2*Number(b.replace(/,/g,""));return(0,c.jsxs)("div",{className:"c-price-kyufu l-contents",children:[(0,c.jsxs)("div",{className:"c-price-kyufu__header-text u-text-red-primary",children:[(0,c.jsxs)("p",{children:[(0,c.jsx)("span",{className:"u-fw-bold c-price-kyufu__strong c-price-kyufu__strong--pc",children:r}),(0,c.jsx)("span",{children:o})]}),(0,c.jsxs)("p",{children:[d,(0,c.jsx)("span",{className:"u-fw-bold c-price-kyufu__strong",children:u}),p]})]}),(0,c.jsx)("div",{className:"c-price-kyufu__middle-description",children:(0,c.jsx)(g.UG,{children:_})}),(0,c.jsxs)("div",{className:"c-price-kyufu__discount l-contents u-text-white",children:[(0,c.jsxs)("p",{className:"c-price-kyufu__discount--before u-fs-4",children:["受講料",(0,c.jsx)("br",{}),(0,c.jsx)("span",{className:"u-text-decoration-line-through",children:b}),(0,c.jsx)("label",{className:"u-fs-5",children:f})]}),(0,c.jsx)("div",{className:"icon u-fs-4 "}),(0,c.jsxs)("p",{className:"c-price-kyufu__discount--after",children:["受講料実質負担額",(0,c.jsx)("br",{}),(0,c.jsx)("span",{className:"u-fw-bold",children:w}),(0,c.jsx)("label",{className:"u-fs-5 u-fw-bold",children:f})]})]}),a&&k(v,l,x,z),(0,c.jsx)("div",{className:"c-price-kyufu__note c-text-caption",children:(0,c.jsx)(g.UG,{children:h})}),(0,c.jsx)("div",{className:"c-price-kyufu__button",children:(0,c.jsx)("a",{href:m.link,className:"c-btn-primary c-btn--next c-btn--sm",children:(0,c.jsx)("b",{className:"c-button-block__text",children:m.text})})})]})},z=e=>{let{sample:t}=e,{recommend_text:i,recommend_title:n,img:l,img_link:a}=t;return(0,c.jsxs)("div",{className:"c-present-sample",children:[(0,c.jsxs)("div",{className:"c-present-sample__wrapper",children:[(0,c.jsx)("p",{className:"c-present-sample__text",children:i}),(0,c.jsx)("h2",{className:"c-title-accent",children:n})]}),(0,c.jsx)(u(),{href:a,passHref:!0,children:(0,c.jsx)(j(),{src:l.data.attributes.url,alt:l.data.attributes.alternativeText||"Sample image",width:l.data.attributes.width,height:l.data.attributes.height})})]})},T=i(85507);let S=e=>{let{item:t,index:i}=e,[n,l]=(0,r.useState)(!1);return(0,c.jsxs)("div",{className:"c-faq-item c-faq-item--accordion",children:[(0,c.jsx)("div",{className:"c-faq-item__title ".concat(n?"js-accordion--active":""),onClick:()=>l(!n),children:(0,c.jsx)("p",{children:t.question})}),(0,c.jsx)("div",{className:"c-faq-item__wrapper ".concat(n?"is-open":""),children:(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"c-faq-item__body",children:(0,c.jsx)(T.Z,{content:t.answer})}),(0,c.jsx)("hr",{})]})})]},i)};var C=e=>{let{title:t,list:i,button:n}=e;return(0,c.jsxs)("div",{className:"c-faq c-price-faq",children:[(0,c.jsx)("h2",{className:"c-title-line-center",children:t}),(0,c.jsx)("div",{className:"c-faq__list",children:i&&i.map((e,t)=>(0,c.jsx)(S,{item:e,index:t},t))}),(0,c.jsx)("a",{href:n.link,className:"c-btn-primary c-btn--next c-btn--md",children:(0,c.jsx)("b",{className:"c-button-block__text",children:n.text})})]})},L=e=>{let{contents:t}=e,{img:i,link:n}=t;return(0,c.jsx)("div",{className:"c-price-exercise-exam",children:(0,c.jsx)(u(),{href:n,className:"c-price-exercise-exam__link",passHref:!0,children:(0,c.jsx)(j(),{className:"c-price-exercise-exam__image",src:i.data.attributes.url,alt:i.data.attributes.alternativeText||"過去問一問一答",width:i.data.attributes.width,height:i.data.attributes.height})})})},D=e=>{let{refund:t}=e,{img:i,description:n,btn:l}=t;return(0,c.jsxs)("div",{className:"c-price-refund",children:[(0,c.jsx)(j(),{className:"c-price-refund__image",src:i.data.attributes.url,alt:i.data.attributes.alternativeText||"もしも不合格なら、受講料を全額返金保証",width:i.data.attributes.width,height:i.data.attributes.height}),(0,c.jsxs)("div",{className:"c-price-refund__contents u-bg-gray-light",children:[(0,c.jsx)(T.Z,{className:"c-price-refund__description",content:n}),(0,c.jsx)("div",{className:"c-price-refund__button",children:(0,c.jsx)(u(),{href:l.link,className:"c-btn-primary c-btn--next c-btn--sm",passHref:!0,children:(0,c.jsx)("b",{className:"c-button-block__text u-fs-3",children:l.text})})})]})]})};let E=e=>{let{note:t}=e;return(0,c.jsx)("div",{className:"c-price-special-offer__note",children:(0,c.jsx)(g.UG,{children:t})})},A=e=>{let{specialOffer:t}=e,{text:i,note:n}=t;return(0,c.jsxs)("div",{className:"c-price-special-offer__amazon l-contents u-bg-gray-light",children:[(0,c.jsx)(T.Z,{content:i}),n&&(0,c.jsx)(E,{note:n})]})},O=e=>{let{specialOffer:t}=e,{text:i,img:n,note:l}=t;return(0,c.jsxs)("div",{className:"c-price-special-offer__goods l-contents u-bg-gray-light",children:[(0,c.jsx)(T.Z,{content:i}),(0,c.jsx)(j(),{className:"c-price-special-offer__image",src:n.data.attributes.url,alt:n.data.attributes.alternativeText||"Special offer image",width:n.data.attributes.width,height:n.data.attributes.height}),l&&(0,c.jsx)(E,{note:l})]})};var I=e=>{let{specialOfferList:t}=e;return t&&t.length?(0,c.jsx)("div",{className:"c-price-special-offer",children:t.map((e,t)=>"price.special-offer-amazon"===e.__component?(0,c.jsx)(A,{specialOffer:e},t):"price.special-offer-original-goods"===e.__component?(0,c.jsx)(O,{specialOffer:e},t):null)}):null};let U=e=>{let t=e.product_info[0];if(null==t?void 0:t.price_info_with_dvd)return{value:t.price_info.value,unit:"".concat(t.price_info.unit,"~")};if(null==t?void 0:t.price_info)return t.price_info;let i=t.section_info_list;return i&&i.length>0?{value:Math.min(...i.map(e=>
1Number(e.price_value.replace(/,/g,"")))).toLocaleString("ja-JP"),unit:"".concat(i[0].unit,"~")}:{value:"",unit:""}},P=e=>{let{product:t,url:i,currentProductSlug:n}=e,{name:l,type:a,slug:s}=t.product_name.data.attributes,{value:r,unit:o}=U(t);return(0,c.jsx)(u(),{href:"".concat(i,"/price/course/").concat(s),className:"l-col-pc-6 l-col-12",passHref:!0,children:(0,c.jsxs)("div",{className:"c-price-other-products__item u-fw-bold",children:[(0,c.jsx)("p",{className:"u-text-red-primary",children:l}),(0,c.jsxs)("p",{className:"u-text-black-primary",children:[(0,c.jsxs)("span",{children:[r," ",o]}),(0,c.jsx)("span",{className:"icon icon-e--keyboard_arrow_right icon-size--md"})]})]})})},q=e=>{let{title:t,products:i,productType:n,url:l,currentProductSlug:a}=e,s=i.filter(e=>e.attributes.product_name.data.attributes.type===n&&e.attributes.product_name.data.attributes.slug!==a);return 0===s.length?null:(0,c.jsxs)("div",{className:"c-price-other-products__section",id:"other-products-".concat(n),children:[(0,c.jsx)("div",{className:"c-title-within-line",children:(0,c.jsx)("h3",{className:"c-title-within-line__text",children:t})}),(0,c.jsx)("div",{className:"c-price-other-products__items l-contents l-grid-row",children:s.map((e,t)=>(0,c.jsx)(P,{product:e.attributes,url:l,currentProductSlug:a},a+t))})]})};var F=e=>{let{props:t}=e,{contents:i,productList:n,url:l,currentProductSlug:a}=t,s=[{title:i.value_set_subtitle,productType:"value_set"},{title:i.for_experienced_subtitle,productType:"for_experienced"},{title:i.single_koza_subtitle,productType:"single_koza"}];return(0,c.jsx)("div",{className:"c-price-other-products__contents",children:s.map((e,t)=>(0,c.jsx)(q,{title:e.title,products:n,productType:e.productType,url:l,currentProductSlug:a},t))})},Z=e=>{let{contents:t}=e;if(!t)return null;let{title:i,contents_list:n}=t,l="c-price-re-challenge__item l-col-12 l-contents u-bg-gray-light";return n.length>=2&&(l+=" l-col-pc-6"),(0,c.jsxs)("div",{className:"c-price-re-challenge",children:[(0,c.jsx)("div",{className:"c-title-within-line c-price-re-challenge__header",children:(0,c.jsx)("h3",{className:"c-title-within-line__text",children:i})}),(0,c.jsx)("div",{className:"l-grid-row c-price-re-challenge__contents",children:n.map((e,t)=>(0,c.jsxs)("div",{className:l,children:[(0,c.jsx)("h3",{className:"u-fw-bold c-price-re-challenge__title",children:e.re_challenge_title}),(0,c.jsx)(j(),{className:"c-price-re-challenge__image",src:e.re_challenge_img_webp.data.attributes.url,width:e.re_challenge_img_webp.data.attributes.width,height:e.re_challenge_img_webp.data.attributes.height,alt:e.re_challenge_img_webp.data.attributes.alternativeText||"再チャレンジ教材".concat(t+1)}),(0,c.jsxs)("div",{className:"c-price-re-challenge__text-wrapper",children:[(0,c.jsx)("p",{className:"c-price-re-challenge__text",children:e.re_challenge_text}),(0,c.jsx)("p",{className:"c-price-re-challenge__note c-text-caption",children:e.note})]})]},t))})]})},R=i(45697),M=i.n(R);let J=e=>{var t,i;let{product:l,discount:a}=e,{expiration_date:s,discount_event_children:r}=a;if(!s||!r)return null;let o=(null==r?void 0:null===(i=r.data)||void 0===i?void 0:null===(t=i.find(e=>{var t,i,c,n;return(null==e?void 0:null===(n=e.attributes)||void 0===n?void 0:null===(c=n.product)||void 0===c?void 0:null===(i=c.data)||void 0===i?void 0:null===(t=i.attributes)||void 0===t?void 0:t.anchor)===(null==l?void 0:l.anchor)}))||void 0===t?void 0:t.attributes)||{};if(!o||!o.discount_value)return null;let d=(null==o?void 0:o.discount_value).toLocaleString("ja-JP"),{month:u,day:p,time:_}=n.Z.ParseDateTime(s),[v,h]=_.split(":");return(0,c.jsx)("div",{className:"c-price-campaign-balloon",children:(0,c.jsx)("div",{className:"c-price-campaign-balloon__content",children:(0,c.jsxs)("p",{className:"c-price-campaign-balloon__text",children:[(0,c.jsxs)("span",{className:"c-price-campaign-balloon__highlight",children:[d,"円引"]}),"キャンペーン中!",(0,c.jsx)("br",{}),(0,c.jsxs)("span",{className:"c-price-campaign-balloon__highlight",children:[u,"月",p,"日",v,"時",h,"分"]}),"まで"]})})})};J.propTypes={product:M().object.isRequired,discount:M().object.isRequired};var $=J,H=i(11163),K=e=>{let{labels:t}=e;return(0,c.jsxs)("div",{className:"c-koza-product__option-label",children:[(null==t?void 0:t.is_subject_to_refund)&&(0,c.jsx)("div",{className:"c-label c-label--refund",children:t.label_refund_text}),(null==t?void 0:t.is_subject_to_kyufu)&&(0,c.jsx)("div",{className:"c-label c-label--kyufu",children:t.label_kyufu_text}),(null==t?void 0:t.is_accredited_fp_koza)&&(0,c.jsx)("div",{className:"c-label c-label--fp",children:t.label_fp_text})]})},V=i(85527);let G=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{let t=localStorage.getItem("TRACK_COOKIE_ID");t||(t="".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9)),localStorage.setItem("TRACK_COOKIE_ID",t));let i=window.location.pathname+window.location.search,c=new URLSearchParams(window.location.search),n=Object.fromEntries(c.entries()),l=(0,V.vF)(i,n),a=e.coupon_code,s=localStorage.getItem("PREVIOUS_URL")||document.referrer||"direct",r=window.location.href,o=new Date().toISOString(),d={COOKIE_ID:t,KOZA_ID:l.KOZA_ID,KOZA_DOMAIN:l.KOZA_DOMAIN,COUPON_ID:a,TFS_STEP:"purchase_click",TFS_REFERER_URI:s,TFS_REQUEST_URI:r,TFS_UA:navigator.userAgent,TFS_CREATE_DATE:o,TFS_LEAVE_FLAG:0,page_title:document.title,session_duration:Date.now()-(Number.parseInt(localStorage.getItem("SESSION_START_TIME"))||Date.now()),viewport_size:"".concat(window.innerWidth,"x").concat(window.innerHeight),screen_resolution:"".concat(screen.width,"x").concat(screen.height)};await fetch("/internal-api/analytics/track",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(d),keepalive:!0})}catch(e){console.error("[trackPurchaseClick] Error tracking purchase click:",e)}};var Y=e=>{let{button:t,defaultCartLink:i="/",ga4:n,discountEventChild:l={}}=e,{text:a,link:s}=(null==t?void 0:t.order_button)||{text:"",link:""},o=(0,r.useCallback)(()=>{G({coupon_code:null==l?void 0:l.code}),window.gtag&&window.gtag("event","add_to_cart",{ecommerce:{currency:"JPY",value:(null==n?void 0:n.price)||"",promotion_id:"",promotion_name:"",items:[{item_id:"",item_name:(null==n?void 0:n.name)||"",price:(null==n?void 0:n.price)||"",quantity:1,affiliation:(null==n?void 0:n.url)||"",currency:"JPY",item_variant:(null==n?void 0:n.year)||"",item_brand:"toC",item_category:(null==n?void 0:n.category)||"",item_category2:(null==n?void 0:n.course)||""}]}})},[n,l]);return(0,c.jsx)("div",{className:"c-product-item__addcart",children:(0,c.jsx)(u(),{href:s||i,className:"c-btn-primary but-order",onClick:o,children:(0,c.jsx)("span",{className:"c-button-block__text",children:a||"受講手続きへ"})})})},X=e=>{let{title:t,top:i,isPositionLeft:n=!1}=e;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",{className:"c-koza-product__name ".concat(n?"c-koza-product__name--left":""),children:t}),(0,c.jsx)(K,{labels:i})]})},Q=e=>{let{kyozai:t}=e;return(0,c.jsx)("div",{className:"l-grid-row c-koza-product-kyozai__contents",children:t.map((e,t)=>(0,c.jsxs)("div",{className:"l-col-12 l-col-pc-6",children:[(0,c.jsx)("div",{className:"c-koza-product-kyozai__topic",children:e.title}),(0,c.jsx)("ul",{children:e.kyozai_detail[0].children.map((e,t)=>(0,c.jsx)("li",{className:"c-koza-product-kyozai__item",children:e.children[0].text},t))})]},t))})},B=e=>
1{let{kyozai_name:t,kyozai_detail:i,shipmentText:n}=e;return(0,c.jsxs)("div",{className:"c-product-kyozai-info-box",children:[(0,c.jsxs)("div",{className:"c-product-kyozai-info-box__wrapper",children:[(0,c.jsx)("div",{className:"c-product-kyozai-info-box__topic",children:t}),(0,c.jsx)("ul",{children:i[0].children.map((e,t)=>(0,c.jsx)("li",{className:"c-product-kyozai-info-box__item",children:e.children[0].text},t))})]}),n&&(0,c.jsx)("div",{className:"c-product-kyozai-info-box__shipment u-bg-gray-light u-text-center u-fs-2",children:n})]})};let W=(e,t)=>(0,c.jsx)("span",{style:{color:"#E60012"},children:e.replace(/==/g,"")},t),ee=e=>{let t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.split(/(==.*?==)/g).map((e,i)=>e.match(/^==.*==$/)?W(e,t+i):(0,c.jsx)(r.Fragment,{children:e},t+i))};return"string"==typeof e?t(e):Array.isArray(e)?e.map((e,i)=>"string"==typeof e?t(e,i):r.cloneElement(e,{key:i})):e},et=e=>{let{children:t}=e;return(0,c.jsx)(g.UG,{components:{p:e=>{let{children:t}=e;return(0,c.jsx)("p",{children:ee(t)})}},children:t})};var ei=e=>{let{note:t}=e;return(0,c.jsx)("div",{className:"c-koza-product__notice",children:(0,c.jsx)(et,{children:t})})},ec=e=>{let{price_info:t,discountTextList:i,discount_status:n="default",discountEventChild:l={}}=e,a=(0,N.$i)(i,n),s=(0,N.vJ)(t,a,l.discount_value),r=(0,N._N)("campaign"===n,l.discount_value||0,t),o=l.discount_value>0||s,d="coupon"===n,u=null;return o&&!d&&(u="campaign"===n?"campaign_label":"set_label"),(0,c.jsxs)("div",{className:"c-product-item__price",children:[s,(0,c.jsxs)("div",{children:[!d&&u&&(0,c.jsx)(j(),{className:"c-price-label",src:"/img/course/price/".concat(u,".svg"),width:"set_label"===u?107:148,height:26,alt:"割引価格ラベル"}),(0,c.jsxs)("p",{className:"c-price-value",children:[r||t.value,(0,c.jsx)("span",{children:t.unit})]}),(0,c.jsx)("p",{className:"c-price-tax",children:t.tax_text})]})]})},en=e=>{let{subtitle:t,set:i}=e;return(0,c.jsxs)("div",{className:"c-koza-product-set",children:[(0,c.jsx)("div",{className:"c-koza-product-set__title",children:(0,c.jsx)("span",{children:t})}),(0,c.jsx)("div",{className:"c-koza-product-set__list",children:i.map((e,t)=>(0,c.jsx)("div",{className:"c-list-item ".concat(e.is_included?"":"c-list-item--none"),children:(0,c.jsx)("span",{children:e.label})},t))})]})},el=e=>{let{shipment:t}=e;return(0,c.jsx)("div",{className:"c-product-item__shipment-info",children:(0,c.jsx)("p",{children:t.shipment_text})})};let ea=(e,t)=>({template:"default"===t?e.default_template:e.coupon_template,amount:"default"===t?e.default_amount:""}),es=e=>({value:e.price_value,unit:e.unit,tax_text:e.tax_text}),er=e=>({text:e.order_btn_text,link:e.order_link});var eo=e=>{let{product:t,discountType:i="default",discountEventChild:n={},defaultCartLink:l="",ga4:a={}}=e,s=ea(t,i),o=es(t),d=er(t),p="";"coupon"===i&&s.template?p=(0,N.TQ)(o,s,null==n?void 0:n.discount_value):s.amount>0&&(p=(0,N.Vf)(o,s));let _="coupon"===i,v=null;p&&!_&&(v="campaign"===i?"campaign_label":"set_label");let h=(0,r.useCallback)(()=>{G({coupon_code:null==n?void 0:n.code}),window.gtag&&window.gtag("event","add_to_cart",{ecommerce:{currency:"JPY",value:(null==a?void 0:a.price)||"",promotion_id:"",promotion_name:"",items:[{item_id:"",item_name:(null==a?void 0:a.name)||"",price:(null==a?void 0:a.price)||"",quantity:1,affiliation:(null==a?void 0:a.url)||"",currency:"JPY",item_variant:(null==a?void 0:a.year)||"",item_brand:"toC",item_category:(null==a?void 0:a.category)||"",item_category2:(null==a?void 0:a.course)||""}]}})},[a,n]),m=d.link||l;return(0,c.jsxs)("div",{className:"c-product-price-action-box",children:[p,(0,c.jsxs)("div",{className:"c-product-price-action-box__wrapper",children:[v&&(0,c.jsx)(j(),{className:"c-price-label",src:"/img/course/price/".concat(v,".svg"),width:"set_label"===v?107:148,height:26,alt:"割引価格ラベル"}),(0,c.jsxs)("p",{className:"c-price-value",children:[o.value,(0,c.jsx)("span",{children:o.unit})]}),(0,c.jsx)("p",{className:"c-price-tax u-pb-3",children:o.tax_text})]}),(0,c.jsx)(u(),{href:m,className:"c-btn-primary but-order",onClick:h,children:(0,c.jsx)("span",{className:"c-button-block__text",children:d.text})})]})};let ed=(e,t)=>t?{subtitle:e.dvd_set_subtitle,price_info:e.price_info_with_dvd,order_button:e.order_button_with_dvd,discountTextList:Array.isArray(e.discountTextList)?e.discountTextList.filter(e=>!0===e.is_dvd):[]}:{subtitle:e.normal_set_subtitle,price_info:e.price_info,order_button:e.order_button,discountTextList:Array.isArray(e.discountTextList)?e.discountTextList.filter(e=>!1===e.is_dvd):[]},eu=(e,t)=>
1"c-product-price-action-box"+(t?" u-gap-1":"")+(e?" c-product-price-action-box--with-dvd":"");var ep=e=>{let{product:t,isDVD:i,ga4:n,discountType:l="default",discountEventChild:a={},defaultCartLink:s=""}=e,{subtitle:o,price_info:d,order_button:p,discountTextList:_}=ed(t,i),{type:v}=t,h=(0,N.$i)(_,l),m=(0,N.vJ)(d,h,null==a?void 0:a.discount_value),x="campaign"===l,f=(0,N._N)(x,(null==a?void 0:a.discount_value)||0,d),b="coupon"===l,g=null;(h||x)&&!b&&("campaign"===l?g="campaign_label":"single_koza"!==v&&(g="set_label"));let y=(0,r.useCallback)(()=>{let e=(null==a?void 0:a.code)||null;window.setCouponId&&window.setCouponId(e),window.triggerAnalyticsTracking&&window.triggerAnalyticsTracking(),G({coupon_code:e}),window.gtag&&window.gtag("event","add_to_cart",{ecommerce:{currency:"JPY",value:(null==n?void 0:n.price)||"",promotion_id:"",promotion_name:"",items:[{item_id:"",item_name:(null==n?void 0:n.name)||"",price:(null==n?void 0:n.price)||"",quantity:1,affiliation:(null==n?void 0:n.url)||"",currency:"JPY",item_variant:(null==n?void 0:n.year)||"",item_brand:"toC",item_category:(null==n?void 0:n.category)||"",item_category2:(null==n?void 0:n.course)||""}]}})},[n,a]),k=(null==p?void 0:p.link)||s||"";return(0,c.jsxs)("div",{className:eu(o,h),children:[o&&(0,c.jsx)("b",{className:"c-koza-product__sub-header c-product-price-action-box__sub-header",children:o}),m,(0,c.jsxs)("div",{className:"c-product-price-action-box__wrapper",children:[g&&(0,c.jsx)(j(),{className:"c-price-label",src:"/img/course/price/".concat(g,".svg"),width:"set_label"===g?107:148,height:26,alt:"割引価格ラベル"}),(0,c.jsxs)("p",{className:"c-price-value",children:[f||d.value,(0,c.jsx)("span",{children:d.unit})]}),(0,c.jsx)("p",{className:"c-price-tax u-pb-3",children:d.tax_text})]}),(0,c.jsx)(u(),{href:k,className:"c-btn-primary but-order",onClick:y,children:(0,c.jsx)("span",{className:"c-button-block__text",children:(null==p?void 0:p.text)||"受講手続きへ"})})]})},e_=i(41460);let ev=e=>{let{subtitle:t,children:i}=e,[n,l]=(0,r.useState)(!1);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("button",{className:"c-koza-product-accordion c-btn-thirdly",onClick:()=>{l(!n)},children:[(0,c.jsx)("span",{className:"c-koza-product-accordion__text",children:t}),(0,c.jsx)("span",{className:"icon ".concat(n?"icon-e--remove_circle":"icon-e--add_circle")})]}),(0,c.jsx)("div",{className:"c-shopping-sub-accordion__contents ".concat(n?"is-open":"is-close"),children:i})]})};var eh=e=>{var t,i,n,l;let{product:a,discountEvent:s={}}=e,r=!(0,H.useRouter)().query.product&&(null===(t=a.top)||void 0===t?void 0:t.description),o=null==s?void 0:null===(l=s.discount_event_children)||void 0===l?void 0:null===(n=l.data)||void 0===n?void 0:null===(i=n.find(e=>{var t,i,c;return(null==e?void 0:null===(c=e.attributes)||void 0===c?void 0:null===(i=c.product)||void 0===i?void 0:null===(t=i.data)||void 0===t?void 0:t.id)===(null==a?void 0:a.id)}))||void 0===i?void 0:i.attributes,d=o?null==s?void 0:s.type:"default",u=(0,N.qs)(a,o,"campaign"===d);return(0,c.jsxs)("div",{className:"c-koza-product",id:a.anchor,children:[(0,c.jsx)(X,{title:a.name,top:a.top}),(0,c.jsxs)("div",{className:"c-koza-product__body l-contents",children:[r&&(0,c.jsx)("div",{className:"c-koza-product__description",children:(0,c.jsx)(T.Z,{content:a.top.description})}),(0,c.jsx)("div",{className:"c-product-item",children:(0,c.jsxs)("div",{className:"c-koza-product__course",children:[(0,c.jsx)(ec,{price_info:a.price_info,discountTextList:a.discountTextList,discount_status:d,discountEventChild:o}),(0,c.jsx)(Y,{button:a,defaultCartLink:u,discountEventChild:o})]})}),(0,c.jsxs)("div",{className:"c-koza-product__wrapper",children:[(0,c.jsx)(e_.Z,{price:a.price_info}),(0,c.jsx)(en,{subtitle:a.set_subtitle,set:a.set})]}),(0,c.jsx)("div",{className:"c-koza-product-kyozai",children:(0,c.jsx)(ev,{subtitle:a.kyozai_subtitle,children:(0,c.jsx)(Q,{kyozai:a.kyozai_contents})})}),(0,c.jsx)(ei,{note:a.note})]})]})};let em=e=>{let{subtitle:t,children:i}=e,[n,l]=(0,r.useState)(!1);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("button",{className:"c-koza-product-accordion c-btn-thirdly",onClick:()=>{l(!n)},children:[(0,c.jsx)("span",{className:"c-koza-product-accordion__text",children:t}),(0,c.jsx)("span",{className:"icon ".concat(n?"icon-e--remove_circle":"icon-e--add_circle")})]}),(0,c.jsx)("div",{className:"c-shopping-sub-accordion__contents ".concat(n?"is-open":"is-close"),children:i})]})};var ex=e=>{var t,i,n,l,a;let{product:s,discountEvent:r={}}=e,o=!(0,H.useRouter)().query.product&&(null===(t=s.top)||void 0===t?void 0:t.description),d=null==r?void 0:null===(l=r.discount_event_children)||void 0===l?void 0:null===(n=l.data)||void 0===n?void 0:null===(i=n.find(e=>{var t,i,c;return(null==e?void 0:null===(c=e.attributes)||void 0===c?void 0:null===(i=c.product)||void 0===i?void 0:null===(t=i.data)||void 0===t?void 0:t.id)===(null==s?void 0:s.id)}))||void 0===i?void 0:i.attributes,u=d?null==r?void 0:r.type:"default",p=(0,N.qs)(s,d,"campaign"===u),_=(0,N.qs)({...s,shopify_id:s.shopify_id_with_dvd},d,"campaign"===u);return(0,c.jsxs)("div",{className:"c-koza-product",id:s.anchor,children:[(0,c.jsx)(X,{title:s.name,top:s.top}),(0,c.jsxs)("div",{className:"c-koza-product__body l-contents",children:[o&&(0,c.jsx)("div",{className:"c-koza-product__description",children:(0,c.jsx)(T.Z,{content:s.top.description})}),(0,c.jsx)("div",{className:"c-product-item",children:(0,c.jsxs)("div",{className:"c-koza-product__course",children:[(0,c.jsx)(ep,{product:s,isDVD:!1,discountType:u,discountEventChild:d,defaultCartLink:p}),(0,c.jsx)(ep,{product:s,isDVD:!0,discountType:u,discountEventChild:d,defaultCartLink:_})]})}),(0,c.jsxs)("div",{className:"c-koza-product__wrapper",children:[(0,c.jsx)(e_.Z,{price:s.price_info}),(null==s?void 0:null===(a=s.set)||void 0===a?void 0:a.length)>0&&(0,c.jsx)(en,{subtitle:s.set_subtitle,set:s.set})]}),(0,c.jsx)("div",{className:"c-koza-product-kyozai",children:(0,c.jsx)(em,{subtitle:s.kyozai_subtitle,children:(0,c.jsx)(Q,{kyozai:s.kyozai_contents})})}),(0,c.jsx)(ei,{note:s.note})]})]})},ej=e=>{var t,i,n,l;let{product:a,isAccordion:s=!0,isPositionLeft:o=!0,discountEvent:d={}}=e,[u,p]=(0,r.useState)(!s),_="c-koza-product__name".concat(s?" c-product-single-koza__name":"").concat(o?" c-koza-product__name--left":""),v=!(0,H.useRouter)().query.product&&(null===(t=a.top)||void 0===t?void 0:t.description),h=null==d?void 0:null===(l=d.discount_event_children)||void 0===l?void 0:null===(n=l.data)||void 0===n?void 0:null===(i=n.find(e=>{var t,i,c;return(null==e?void 0:null===(c=e.attributes)||void 0===c?void 0:null===(i=c.product)||void 0===i?void 0:null===(t=i.data)||void 0===t?void 0:t.id)===(null==a?void 0:a.id)}))||void 0===i?void 0:i.attributes,m=h?null==d?void 0:d.type:"default",x=(0,N.qs)(a,h,"campaign"===m);return(0,c.jsxs)("div",{className:"c-koza-product",id:a.anchor,children:[(0,c.jsx)("div",{onClick:()=>{s&&p(e=>!e)},children:(0,c.jsxs)("p",{className:_,children:[a.name,s&&(0,c.jsx)("span",{className:"icon ".concat(u?"icon-e--remove_circle":"icon-e--add_circle")})]})}),(0,c.jsx)("div",{className:"c-product-single-koza ".concat(u?"is-open":"is-close"),children:(0,c.jsxs)("div",{className:"c-product-single-koza__wrapper",children:[(0,c.jsx)(K,{labels:a.top}),(0,c.jsxs)("div",{className:"c-koza-product__body",children:[v&&(0,c.jsx)("div",{className:"c-koza-product__description",children:(0,c.jsx)(T.Z,{content:a.top.description})}),(0,c.jsx)("div",{className:"c-product-item",children:(0,c.jsxs)("div",{className:"c-koza-product__course",children:[(0,c.jsx)(ec,{price_info:a.price_info,discountTextList:a.discountTextList,discount_status:m,discountEventChild:h}),(0,c.jsx)(Y,{button:a,defaultCartLink:x,discountEventChild:h}),a.shipment_text&&(0,c.jsx)(el,{shipment:a})]})}),(0,c.jsxs)("div",{className:"c-koza-product-kyozai l-grid-row",children:[(0,c.jsxs)("div",{className:"c-koza-product__wrapper l-col-12",children:[(0,c.jsx)(e_.Z,{price:a.price_info}),(0,c.jsx)("div",{className:"c-koza-product-kyozai__title l-col-12",children:(0,c.jsx)("p",{children:a.kyozai_subtitle})})]}),(0,c.jsx)(Q,{kyozai:a.kyozai_contents})]}),a.note&&(0,c.jsx)(ei,{note:a.note})]})]})})]})},ef=e=>{var t,i,n;let{product:l,isAccordion:a=!0,discountEvent:s={}}=e,{name:o,section_info_list:d,note:u}=l,[p,_]=(0,r.useState)(!a),v=null==s?void 0:null===(n=s.discount_event_children)||void 0===n?void 0:null===(i=n.data)||void 0===i?void 0:null===(t=i.find(e=>{var t,i,c;return(null==e?void 0:null===(c=e.attributes)||void 0===c?void 0:null===(i=c.product)||void 0===i?void 0:null===(t=i.data)||void 0===t?void 0:t.id)===(null==l?void 0:l.id)}
1))||void 0===t?void 0:t.attributes,h=v?null==s?void 0:s.type:"default";return(0,c.jsxs)("div",{className:"c-koza-product",id:l.anchor,children:[(0,c.jsx)("div",{onClick:()=>{a&&_(e=>!e)},children:(0,c.jsxs)("p",{className:"c-koza-product__name".concat(a?" c-product-single-koza__name c-koza-product__name--left":""),children:[o,a&&(0,c.jsx)("span",{className:"icon ".concat(p?"icon-e--remove_circle":"icon-e--add_circle")})]})}),(0,c.jsx)("div",{className:"c-product-single-koza ".concat(p?"is-open":"is-close"),children:(0,c.jsx)("div",{className:"c-product-single-koza__wrapper",children:(0,c.jsxs)("div",{className:"c-koza-product__body u-gap-2 l-contents",children:[d.map((e,t)=>{let i=e.shopify_id?(0,N.qs)({...l,shopify_id:e.shopify_id},v,"campaign"===h):"";return(0,c.jsxs)("div",{className:"c-product-single-koza__multiple-section",children:[(0,c.jsxs)("div",{className:"c-product-multiple-section__sub-header",children:[(0,c.jsx)("b",{children:e.title}),(0,c.jsx)("p",{className:"u-pb-3 ".concat(e.label?"u-text-center":""),children:e.description})]}),(0,c.jsxs)("div",{className:"c-koza-product__course u-gap-0",children:[(0,c.jsx)(B,{kyozai_name:e.kyozai_name,kyozai_detail:e.kyozai_detail,shipmentText:e.shipment_text}),(0,c.jsx)(eo,{product:{...e,anchor:l.anchor,type:l.type},discountType:h,discountEventChild:v,defaultCartLink:i}),(0,c.jsx)(e_.Z,{price:{value:e.price_value,unit:e.unit,tax_text:e.tax_text}})]})]},t)}),(0,c.jsx)(ei,{note:u})]})})})]})},eb=e=>{let{table:t}=e;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(T.Z,{content:t.table}),(0,c.jsx)("div",{className:"c-text-caption",children:(0,c.jsx)(g.UG,{children:t.note})})]})},eg=e=>{let{table:t}=e;return(0,c.jsxs)("div",{className:"c-price-shipping-schedule",id:"schedule",children:[(0,c.jsx)(T.Z,{content:t.table}),t.note&&(0,c.jsx)("div",{className:"c-price-shipping-schedule__note c-text-caption",children:(0,c.jsx)(g.UG,{children:t.note})})]})},eN=e=>{let{table:t}=e;return(0,c.jsxs)("div",{className:"c-price-e-learning-feature",children:[(0,c.jsx)("div",{className:"c-price-e-learning-feature__table u-fs-2",children:(0,c.jsx)(T.Z,{content:t.table})}),t.note&&(0,c.jsx)("div",{className:"c-price-e-learning-feature__note c-text-caption",children:(0,c.jsx)(g.UG,{children:t.note})})]})},ey=e=>{let{contents:t,toggleAccordion:i}=e;return(0,c.jsxs)("div",{className:"c-contents-volume-table",children:[(0,c.jsx)("div",{className:"c-contents-volume-table__wrapper",children:t.contents_volume_table_list.map((e,t)=>(0,c.jsxs)("div",{className:"c-contents-volume-table__contents",children:[(0,c.jsx)("div",{className:"c-contents-volume-table__title u-text-white",children:(0,c.jsx)("p",{children:e.title})}),(0,c.jsx)(T.Z,{content:e.table}),(0,c.jsx)(g.UG,{className:"c-text-caption u-text-end",children:e.note})]},t))}),(0,c.jsx)("button",{className:"c-btn-thirdly",onClick:i,children:(0,c.jsx)("p",{children:t.close_btn})})]})}},89097:function(e,t,i){i.d(t,{_N:function(){return u._N},aL:function(){return n},$i:function(){return u.$i},m6:function(){return u.m6},v3:function(){return d},T4:function(){return r},sF:function(){return a},zn:function(){return l},qs:function(){return s},XM:function(){return c.XM},dX:function(){return u.dX},TQ:function(){return u.TQ},vJ:function(){return u.vJ},Vf:function(){return u.Vf},kc:function(){return m},A1:function(){return v},LA:function(){return h}});var c=i(57552);let n=e=>{let t=e&&(null==e?void 0:e.match(/(\d{4})(?=å¹´)/));return t?t[0]:null};function l(e){return e.map(e=>a(e))}function a(e){var t,i,c,n,l,a;let s=null==e?void 0:null===(t=e.attributes)||void 0===t?void 0:t.product_info[0],r=null==e?void 0:null===(i=e.attributes)||void 0===i?void 0:i.product_name.data.attributes,o=null==e?void 0:null===(c=e.attributes)||void 0===c?void 0:c.re_challenge_contents,d=null==e?void 0:null===(n=e.attributes)||void 0===n?void 0:n.discount_text_list;return{anchor:null==e?void 0:null===(l=e.attributes)||void 0===l?void 0:l.anchor,discount_status:null==e?void 0:null===(a=e.attributes)||void 0===a?void 0:a.discount_status,...s,...r,reChallengeContents:o,discountTextList:d,id:null==e?void 0:e.id}}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c=(null==t?void 0:t.code)||"",n=e.shopify_id;return"https://cart.foresight.jp/cart/".concat(n,":1?").concat(c&&i?"discount=".concat(c,"&"):"","storefront=true")}let r=e=>{let{isCampaign:t,productInfo:i,discountEventChild:c}=e;if(!(null==i?void 0:i.price_info)&&!(null==i?void 0:i.section_info_list))return"";let n="";return i.price_info?n=(0,u._N)(t,(null==c?void 0:c.discount_value)||0,null==i?void 0:i.price_info):i.section_info_list&&(n=o(i.section_info_list)),n},o=e=>{if(!e||0===e.length)return"";try{let t=e.map(e=>{let t=e.price_value.trim().replace(/,/g,"");return isNaN(t)||""===t?1/0:Number(t)}),i=Math.min(...t);
1return i===1/0?"":i.toLocaleString()}catch(e){return console.error("価格計算エラー:",e),""}},d=e=>{if(!e)return"";let t=Number(e.replace(/,/g,""));return isNaN(t)?"":Math.round(t/12).toLocaleString()};var u=i(21978),p=i(85893),_=i(96591);let v=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],c=!(arguments.length>3)||void 0===arguments[3]||arguments[3];if(!(null==e?void 0:e.__component))return null;switch(e.__component){case"product.style-set-koza":return(0,p.jsx)(_.j$,{product:e,discountEvent:t});case"product.style-set-with-dvd-koza":return(0,p.jsx)(_._q,{product:e,discountEvent:t});case"product.style-single-koza":return(0,p.jsx)(_.P5,{product:e,isAccordion:i,isPositionLeft:c,discountEvent:t});case"product.style-single-with-dvd-koza":return(0,p.jsx)(_._q,{product:e,isAccordion:i,isPositionLeft:c,discountEvent:t});case"product.style-multiple-koza":return(0,p.jsx)(_.Hu,{product:e,isAccordion:i,discountEvent:t});default:return console.error("Unknown product component:",e.__component),null}},h=e=>{switch(e.__component){case"price.contents-volume-accordion":return(0,p.jsx)(_.d4,{contents:e});case"price.compare-value-set-accordion":return(0,p.jsx)(_.dS,{table:e});case"price.e-leaning-feature-accordion":return(0,p.jsx)(_.Kz,{table:e});case"price.shipping-schedule-accordion":return(0,p.jsx)(_.zo,{table:e});default:return console.error("Unknown accordion component:",e.__component),null}},m=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];switch(e.__component){case"price.kyufu-box":return(0,p.jsx)(_.L2,{kyufu:e,product:t,isDVD:i,discountEvent:c});case"price.refund-box":return(0,p.jsx)(_.NO,{refund:e});case"price.exercise-exam-img":return(0,p.jsx)(_.gd,{contents:e});default:return console.error("Unknown accordion component:",e.__component),null}}},57552:function(e,t,i){i.d(t,{XM:function(){return l}});var c=i(79631),n=i(21978);async function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"*",i=new Date().toISOString(),l={course:{slug:e}};"*"!==t&&(l.sales_status={$eq:t});let a=await (0,c.Io)("/discount-events",{filters:{courses:{slug:e},start_date:{$lte:i},$or:[{expiration_date:{$gte:i}},{expiration_date:{$null:!0}}]},populate:{courses:{fields:["slug","name"]},discount_snippet:{populate:!0},discount_event_children:{fields:["discount_value","code"],populate:{discount_snippet:!0,products:{filters:l,fields:["anchor","sales_status"],populate:{course:{fields:["slug"]},product_name:{fields:["name","slug"]},product_info:{populate:{price_info:"*",Recommend:"*",price_info_with_dvd:"*",section_info_list:"*"}}}}}}}});return a.data.forEach(e=>{e.attributes&&e.attributes.discount_event_children&&e.attributes.discount_event_children.data&&(e.attributes.discount_event_children.data=(0,n.SC)(e.attributes.discount_event_children.data))}),a.data}},21978:function(e,t,i){i.d(t,{$i:function(){return l},Ms:function(){return h},RD:function(){return u},SC:function(){return d},TQ:function(){return r},Vf:function(){return o},_N:function(){return a},aD:function(){return p},dX:function(){return v},m6:function(){return _},vJ:function(){return s}});var c=i(85893),n=i(12937);function l(e,t){if(!Array.isArray(e)||!t)return null;let i=e.find(e=>{var i;return(null===(i=e.__component)||void 0===i?void 0:i.split(".")[1])===t}),c=e.find(e=>{var t;return"default"===(null===(t=e.__component)||void 0===t?void 0:t.split(".")[1])});return i||c||null}function a(e,t,i){let c=Number(i.value.replace(/,/g,""));return e?(c-t).toLocaleString():c.toLocaleString()}function s(e,t){var i;let c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t?"coupon"===(null===(i=t.__component)||void 0===i?void 0:i.split(".")[1])?r(e,t,c):o(e,t,c):""}function r(e,t,i){let n=e.value,{template:l}=t;return(0,c.jsx)("div",{className:"c-price-off c-price-off--coupon u-fs-1",children:(0,c.jsx)("p",{children:l.replace("{discount_value}
1",i.toLocaleString()).replace("{base_price}",n.toLocaleString())})})}function o(e,t,i){let n=e.value,{template:l,amount:a}=t,s=l.split(/(\{amount\}|\{base_price\}|\{discount_value\})/g);return(0,c.jsx)("div",{className:"c-price-off u-fs-1",children:(0,c.jsx)("p",{children:s.map((e,t)=>"{amount}"===e?(0,c.jsx)("span",{className:"u-fs-3",children:a.toLocaleString()},t):"{base_price}"===e?(0,c.jsx)("span",{className:"u-fs-3",children:n.toLocaleString()},t):"{discount_value}"===e?(0,c.jsx)("span",{className:"u-fs-3",children:i.toLocaleString()},t):e)})})}function d(e){return Array.isArray(e)?e.flatMap(e=>{let{products:t,...i}=(null==e?void 0:e.attributes)||{};return((null==t?void 0:t.data)||[]).map(t=>({...e,attributes:{...i,product:{data:t}}}))}):[]}function u(e){return Array.isArray(e)?e.reduce((e,t)=>{var i;let{attributes:c}=t,{code:n,discount_value:l,product:a}=c,s=null==a?void 0:null===(i=a.data)||void 0===i?void 0:i.attributes;if(!s)return e;let r=e.find(e=>e.code===n);return r||(r={code:n,discount_value:l,products:[]},e.push(r)),r.products.push({name:s.product_name.data.attributes.name,anchor:s.anchor}),e},[]):[]}function p(e){return Array.isArray(e)?e.map(e=>{var t,i,c,n;let{attributes:l}=e,{code:a,discount_value:s,product:r,discount_snippet:o}=l,d=null==r?void 0:null===(t=r.data)||void 0===t?void 0:t.attributes;return{code:a,discount_value:s,product:{name:d.product_name.data.attributes.name,anchor:d.anchor,price_info:d.product_info[0].price_info,price_info_with_dvd:d.product_info[0].price_info_with_dvd||{},recommendOrder:null!==(n=null===(c=d.product_info[0])||void 0===c?void 0:null===(i=c.Recommend)||void 0===i?void 0:i.order)&&void 0!==n?n:9999},...o[0]}}):[]}let _=(e,t)=>{var i,c;if(!e||!t)return{};let n=null===(c=e.discount_event_children)||void 0===c?void 0:null===(i=c.data)||void 0===i?void 0:i.find(e=>{var i,c,n,l,a,s,r,o,d,u;let p=null==e?void 0:null===(c=e.attributes)||void 0===c?void 0:null===(i=c.product)||void 0===i?void 0:i.data,_=null==p?void 0:p.attributes;if((null==p?void 0:p.id)!=null&&(null==t?void 0:t.id)!=null&&p.id===t.id)return!0;let v=(null==_?void 0:_.anchor)===t.anchor,h=null==_?void 0:null===(s=_.course)||void 0===s?void 0:null===(a=s.data)||void 0===a?void 0:null===(l=a[0])||void 0===l?void 0:null===(n=l.attributes)||void 0===n?void 0:n.slug,m=null==t?void 0:null===(u=t.course)||void 0===u?void 0:null===(d=u.data)||void 0===d?void 0:null===(o=d[0])||void 0===o?void 0:null===(r=o.attributes)||void 0===r?void 0:r.slug,x=null!=_&&!!_.sales_status&&!!t.sales_status&&_.sales_status===t.sales_status;return v&&!!(h&&m)&&h===m&&x});return(null==n?void 0:n.attributes)||{}};function v(e,t,i){if(!e||!t||!(null==i?void 0:i.discount_value))return"";let c={coupon:{label:"クーポン配布中",period:"{discount_period}まで",discount1:"今なら",discount2:"{discount_value}",discount3:"円OFF"},campaign:{label:"キャンペーン中",period:"{discount_period}まで",discount1:"今なら",discount2:"{discount_value}",discount3:"円OFF"}}[t];if(!c)return"";if(e.expiration_date){let{month:t,day:l,time:a}=n.Z.ParseDateTime(e.expiration_date),s="".concat(t,"月").concat(l,"日").concat(a);return{label:c.label,period:c.period.replace("{discount_period}",s),discount1:c.discount1,discount2:c.discount2.replace("{discount_value}",i.discount_value),discount3:c.discount3}}return{label:c.label,period:null,discount1:c.discount1,discount2:c.discount2.replace("{discount_value}",i.discount_value),discount3:c.discount3}}function h(e){var t;let i=null,c=!1,n=(null==e?void 0:null===(t=e.find(e=>"coupon"===e.attributes.type||"campaign"===e.attributes.type))||void 0===t?void 0:t.attributes)||{},l=null==n?void 0:n.type,a=null==n?void 0:n.bundle_name,s=null==n?void 0:n.start_date,r=null==n?void 0:n.expiration_date;if(("campaign"===l||"coupon"===l)&&n.discount_event_children&&n.discount_event_children.data){let e=n.discount_event_children.data.map(e=>e.attributes.discount_value);i=Math.max(...e),c=e.length>1&&!e.every(t=>t===e[0])}return{maxDiscountValue:i,hasMaxDiscount:c,discountType:l,discountName:a,startDate:s,expirationDate:r}}},12937:function(e,t){t.Z={ParseDateTimeUpToTheHour:e=>{let t=new Date(e),i=t.getUTCMonth()+1,c=t.getUTCDate(),n=t.getUTCHours()+9,l=t.getUTCMinutes(),a=c,s=i,r=n;return n>=24&&(r=n-24,(a=c+1)>new Date(t.getUTCFullYear(),i,0).getDate()&&(a=1,(s=i+1)>12&&(s=1))),{month:s,day:a,hour:0==l?r:r+1}},ParseDateTime:e=>{let t=new Date(e),i=t.getUTCMonth()+1,c=t.getUTCDate(),n=t.getUTCHours()+9,l=t.getUTCMinutes(),a=c,s=i,r=n;return n>=24&&(r=n-24,(a=c+1)>new Date(t.getUTCFullYear(),i,0).getDate()&&(a=1,(s=i+1)>12&&(s=1))),{month:s,day:a,time:"".concat(r,":").concat(l<10?"0".concat(l):l)}}}}}]);

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.