1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[244],{33275:function(e,t,r){"use strict";var s=r(42508),n=r(85893);t.Z=function(e){var t=e.image,r=e.color,a=e.size,i=void 0===a?56:a;return(0,n.jsx)("div",{style:{width:i,height:i,minWidth:i,backgroundColor:r},className:"flex justify-center items-center rounded-full",children:(0,n.jsx)("div",{style:{width:i-8,height:i-8,minWidth:i-8},className:"flex justify-center items-center rounded-full bg-white",children:(0,n.jsx)("div",{style:{width:i-12,height:i-12,minWidth:i-12},className:"relative rounded-full overflow-hidden",children:(0,n.jsx)(s.Z,{src:t,alt:"Icon",layout:"fill",objectFit:"cover"})})})})}},47783:function(e,t,r){"use strict";var s=r(19521),n=r(76891),a=r(85893),i=s.ZP.div.withConfig({displayName:"EditorNote__EditorNoteContainer",componentId:"sc-hmnrjs-0"})(["max-width:720px;margin:24px auto 48px;padding:18px 22px;display:block;background-color:white;color:",";border-radius:8px;box-shadow:rgb(50 50 93 / 25%) 0px 6px 12px -2px,rgb(0 0 0 / 30%) 0px 3px 7px -3px;p{margin:0;margin-top:12px;line-height:1.6;&:first-child{margin-top:0;}}.editor-note-inner{width:100%;display:flex;align-items:center;.editor-profile{max-width:20%;margin-right:30px;align-self:flex-start;display:flex;flex-direction:column;align-items:center;.editor-profile-img{width:80px;height:80px;img{max-height:unset;margin:0px;width:100%;height:100%;border-radius:50%;}}}.editor-content{max-width:80%;display:flex;flex-direction:column;justify-content:center;}.editor-image{margin-left:16px;height:200px;border-radius:6px;}}@media only screen and (max-device-width:480px){.editor-note-inner{flex-direction:column;.editor-profile{margin-right:0;margin-bottom:16px;align-self:initial;}.editor-content{max-width:initial;margin-bottom:8px;text-align:center;}.editor-image{margin-left:0;margin-top:16px;}}}"],n.Z.darkGray),l=function(e){switch(e){case"Auran":return"/images/editors/auran.jpg";case"Nate":return"/images/editors/nate.jpg";case"Don":return"/images/editors/don.jpg"}};t.Z=function(e){var t=e.editorName,r=e.image,s=e.imageAlt,n=e.children;return(0,a.jsx)(i,{children:(0,a.jsxs)("div",{className:"editor-note-inner",children:[t&&(0,a.jsxs)("div",{className:"editor-profile",children:[(0,a.jsx)("div",{className:"editor-profile-img",children:(0,a.jsx)("img",{src:l(t),alt:"".concat(t," profile")})}),(0,a.jsx)("span",{children:t})]}),(0,a.jsx)("div",{className:"editor-content",children:n}),r&&(0,a.jsx)("img",{className:"editor-image",src:r,alt:s||""})]})})}},81393:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return ie},default:function(){return le}});var s=r(19521),n=r(76891),a=s.ZP.div.withConfig({displayName:"Costs__Container",componentId:"sc-1sxvdtv-0"})(["margin-bottom:48px;color:",";.description{margin:42px 0 36px;padding:0 48px;p{font-size:15px;}}.subtle,.warning{margin-top:4px;color:",";line-height:1.2;}.subtle{font-size:13px;}.warning{font-size:14px;font-weight:bold;color:",";font-style:italic;}.error{align-self:flex-end;margin-top:12px;color:",";}a{color:",";}.steps-visual{margin-bottom:24px;display:flex;justify-content:center;.step-bit{width:24px;height:14px;&:first-child{border-top-left-radius:4px;border-bottom-left-radius:4px;}&:last-child{border-top-right-radius:4px;border-bottom-right-radius:4px;}}}@media only screen and (max-device-width:480px){.description{padding:0 24px;font-size:1em;}.subtle,.warning{font-size:0.9em;}}"],n.Z.darkGray,n.Z.gray7,n.Z.gray7,n.Z.warningRed,n.Z.blue8),i=r(86085),l=r(67294),o=r(56225),c=r(47783),d=r(41664),m=r.n(d),u=r(25675),p=r.n(u),h=r(28891),x=r(33275),g=r(85893),f=function(e){return(0,g.jsxs)("div",{className:"z-50 mb-2 flex justify-between",children:[(0,g.jsxs)("div",{className:"mb-2 max-w-[580px] flex flex-col",children:[(0,g.jsxs)("div",{className:"mb-1",children:[e.name," ",e.recommended&&(0,g.jsx)("span",{className:"ml-2 text-xs italic text-cyan-700",children:"(Recommended)"})]}),!!e.note&&(0,g.jsx)("span",{className:"text-gray-400 text-sm",children:e.note})]}),(0,g.jsx)("div",{className:"font-bold whitespace-nowrap",children:e.price||e.min?"\xa5".concat(e.price||e.min+(e.max?" - \xa5".concat(e.max):"+")):"Varied"})]},e.name)},b=function(e){var t=h.T[e];return h.d[e].subcategories?h.d[e].subcategories.map((function(r,s){var n=t.filter((function(e){return e.subcategory===r})),a=h.d[e].iconSrc[s];return(0,g.jsxs)("div",{children:[(0,g.jsx)("h4",{className:"my-2 text-lg text-slate-800",children:r}),(0,g.jsxs)("div",{className:"p-3",children:[!!a&&(0,g.jsx)("img",{className:"absolute w-2/5 max-w-[260px] right-0 bottom-0 opacity-30",src:a,alt:"".concat(e," ").concat(r," icon")}),n.map((function(e){return f(e)}))]})]},s)})):(0,g.jsxs)("div",{className:"expense-category",children:[(0,g.jsx)("img",{className:"absolute w-2/5 max-w-[260px] right-0 bottom-0 opacity-30",src:h.d[e].iconSrc,alt:"".concat(e," icon")}),h.T[e].map((function(e){return f(e)}))]})},j=function(){return(0,g.jsxs)(o.D,{className:"no-padding",children:[(0,g.jsxs)("div",{className:"p-10 pt-12 w-full flex items-center bg-slate-50",children:[(0,g.jsx)(x.Z,{image:"/images/shikoku-pilgrimage/icons/calculator-notebook.png",color:"#5ea095"}),(0,g.jsxs)("div",{className:"ml-3 grow",children:[(0,g.jsx)("h2",{children:"How to Budget for the Shikoku Pilgrimage"}),(0,g.jsx)("div",{className:"mt-3 w-full h-[4px] bg-[#5ea095]"})]})]}),(0,g.jsxs)(o.I,{id:"costs-overview",className:"bg-slate-50",children:[(0,g.jsx)("p",{className:"title",children:"The amount each pilgrim spends on their journey can vary greatly. Here are a few significant considerations:"}),(0,g.jsxs)("ul",{children:[(0,g.jsxs)("li",{children:[(0,g.jsx)("b",{children:"Mode of transportation"}),": Will you walk, bike, drive, hire a taxi, or do the pilgrimage by bus?"]}),(0,g.jsxs)("li",{children:["For ",(0,g.jsx)("strong",{children:"how many days"})," will you be on pilgrimage? How many kilometers will you go per day?"]}),(0,g.jsxs)("li",{children:["How often will you opt for ",(0,g.jsx)(m(),{href:"/shikoku-pilgrimage/where-to-stay#campgrounds",children:"campgrounds"})," versus nicer Japanese inns or hotels?"]}),(0,g.jsxs)("li",{children:[(0,g.jsx)("strong",{children:"Quality of food"}),": Will you ",(0,g.jsx)(m(),{href:"/shikoku-pilgrimage/food#lodging-meals",children:"eat often at minshuku or ryokan"}),"? Will you buy ",(0,g.jsx)(m(),{href:"/shikoku-pilgrimage/food#convenience-stores",children:"food from the convenience store?"})]}),(0,g.jsxs)("li",{children:["What ",(0,g.jsx)("strong",{children:"pilgrim gear"})," will you buy?"]}),(0,g.jsxs)("li",{children:["How much will you spend at ",(0,g.jsx)("strong",{children:"temples"}),"? Will you make donations and collect ",(0,g.jsx)(m(),{href:"/shikoku-pilgrimage/customs-etiquette#calligraphy-stamps",children:"pilgrim stamps"}),"?"]}),(0,g.jsxs)("li",{children:["Will you buy ",(0,g.jsx)("strong",{children:(0,g.jsx)(m(),{href:"/shikoku-pilgrimage/other#wifi",children:"cellular or data service"})})," instead of relying on maps and telephone booths?"]}),(0,g.jsxs)("li",{children:["Will you travel to ",(0,g.jsx)("strong",{children:"points of interest or buy souvenirs"})," along the way?"]}),(0,g.jsxs)("li",{children:["What are your ",(0,g.jsx)("strong",{children:"ATM fees and currency conversion rates"})," when you withdraw cash?"]})]})]}),(0,g.jsxs)(o.I,{className:"bg-slate-200",children:[(0,g.jsx)("h2",{className:"mb-6",children:"Expense Estimates by Category"}),Object.keys(h.T).map((function(e,t){var r=h.d[e],s=r.name,n=r.description;return(0,g.jsxs)("div",{id:e,className:"w-full mb-6 p-8 relative bg-white rounded-lg border border-slate-200",children:[(0,g.jsx)("div",{className:"expense-category-title",children:(0,g.jsxs)("div",{className:"mb-3",children:[(0,g.jsx)("h3",{className:"my-0 font-bold text-xl",children:s}),!!n&&(0,g.jsx)("div",{className:"text-gray-400 text-sm",children:n})]})}),b(e)]},e)}))]}),(0,g.jsxs)(o.I,{id:"atms-cards",className:"bg-slate-50",children:[(0,g.jsx)("h2",{children:"ATMs & Cards"}),(0,g.jsx)("h3",{children:"Credit Cards"}),(0,g.jsx)("p",{children:"Credit cards only work at certain establishments in Japan, such as popular convenient stores, large hotel chains, and shops in bigger cities and around train stations. Public transportation services often accept cash only. Some stores impose a minimum amount in order to use a credit card, usually around \xa52,000 to \xa53,000."}),(0,g.jsx)(c.Z,{editorName:"Auran",children:(0,g.jsx)("p",{children:"Almost every Japanese inn I stayed at accepted cash only. People in Japan are accustomed to carrying around larger amounts of cash than most Americans, Europeans, or other Asians. I started the pilgrimage carrying about \xa580,000 (worth about $780 USD at the time) and an international ATM card, then withdrew cash (around \xa520,000 to \xa530,000 at a time) whenever I began to run out at post office ATMs."})}),(0,g.jsx)("h3",{children:"ATMs and ATM Fees"}),(0,g.jsxs)("p",{children:["Most of the pilgrimage path is rural and suburban, so it will be wise to know where you may find ATMs that are able to process foreign ATM and debit cards. Your best bet will be ATMs at ",(0,g.jsx)("b",{children:"7-11s, post office
1s, and larger roadside stations"})," (michinoeki)."]}),(0,g.jsxs)("div",{className:"content-image",children:[(0,g.jsx)(p(),{src:"/images/shikoku-pilgrimage/info/itano-michinoeki-atm.jpg",alt:"An ATM at the Itano Roadside Station in Shikoku, Japan",width:480,height:360}),(0,g.jsx)(p(),{src:"/images/shikoku-pilgrimage/info/japan-post-office-atm.jpg",alt:"An ATM at a post office in Takamatsu, Japan",width:378,height:360})]}),(0,g.jsx)("p",{children:"In order to withdraw cash from an overseas account, check whether the ATM machine shows the logo of the service provider printed on your ATM or debit card. Be aware that you will be asked to choose which account to withdraw from \u2013 \u201cCheckings\u201d, \u201cSavings\u201d,\u201cCredit\u201d, or sometimes even a list of your accounts with their last digits."}),(0,g.jsx)("div",{className:"content-image",children:(0,g.jsx)(p(),{src:"/images/shikoku-pilgrimage/info/bank-service-providers-notice.jpg",alt:"A sticker on an ATM in Japan that shows the service providers that can be used to withdraw cash",width:480,height:360})}),(0,g.jsx)("p",{children:"Restrictions and fees can vary widely depending on the ATM being used and the origin bank account where your funds are located. 7-11, for example, limits withdrawals to \xa5100,000 each day. If you\u2019d prefer to withdraw funds at post offices, you can check online to see if they will accept your card. But be forewarned: just because a post office worked for other foreigners does not mean it will work for you."}),(0,g.jsx)("h3",{children:"Traveler\u2019s Checks"}),(0,g.jsx)("p",{children:"Cashing traveler\u2019s checks in Shikoku is not very practical. While bigger banks in cities will probably be able to cash them, smaller banks probably won\u2019t (which make up the majority of branches in Shikoku)."})]})]})},y=r(59499),v=r(49020),w=r(59818),N=r(26289);function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach((function(t){(0,y.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var S=function(e){var t=e.inputs,r=e.setInputs,s=e.updateErrorMessage;return(0,l.useEffect)((function(){s(t.country_code?null:"Please select a country")}),[t.country_code]),(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{className:"mb-6 flex flex-col md:flex-row md:justify-between",children:[(0,g.jsxs)("div",{className:"mb-4 md:mb-0",children:[(0,g.jsx)("p",{children:"Where will you be traveling from?"}),(0,g.jsx)("span",{className:"text-sm text-red-600 italic",children:"Required for currency conversion"})]}),(0,g.jsx)("div",{className:"md:ml-4",children:(0,g.jsxs)("select",{name:"country",id:"country",className:"cursor-pointer p-2 text-center rounded-lg border-2 border-gray-300 focus:outline-none focus:border-gray-blue-400",value:t.country_code||"",onChange:function(e){return r(k(k({},t),{},{country_code:e.currentTarget.value}))},children:[(0,g.jsx)("option",{value:"",disabled:!0,children:"Select a country"}),N.Z.map((function(e){return(0,g.jsx)("option",{value:e.code,children:e.name},e.code)}))]})})]}),(0,g.jsxs)("div",{className:"flex flex-col md:flex-row md:justify-between",children:[(0,g.jsxs)("div",{className:"mb-4 md:mb-0",children:[(0,g.jsxs)("p",{children:["How much do you estimate it will cost to ",(0,g.jsx)("i",{children:"get to Japan"}),"?"]}),(0,g.jsx)("span",{className:"text-sm text-gray-500",children:"For most people, this will be the cost of the plane ticket from your home country to the Narita or Kansai International Airport."}),(0,g.jsx)("span",{className:"text-sm text-gray-500",children:"If you are already in Japan, ignore this field."})]}),(0,g.jsx)("div",{className:"md:ml-4",children:(0,g.jsxs)("div",{className:"flex",children:[(0,g.jsx)("span",{className:"mr-2",children:"\xa5"}),(0,g.jsx)("input",{type:"number",className:"p-2 text-center rounded-lg border-2 border-gray-300 focus:outline-none focus:border-gray-blue-400",value:t.transportation.air_tickets||"",onChange:function(e){return r(k(k({},t),{},{transportation:k(k({},t.transportation),{},{air_tickets:parseInt(e.currentTarget.value)})}
1))}})]})})]})]})};function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach((function(t){(0,y.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var _=function(e){var t=e.inputs,r=e.setInputs;return(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{className:"mb-6 flex flex-col md:flex-row md:justify-between",children:[(0,g.jsxs)("div",{className:"mb-4 md:mb-0",children:[(0,g.jsx)("p",{children:"If you wil travel by air to Japan, which airport will you arrive at?"}),(0,g.jsx)("span",{className:"text-sm text-gray-500",children:"The Kansai International Airport in Osaka is the closest international airport to Shikoku."})]}),(0,g.jsx)("div",{className:"md:ml-4",children:(0,g.jsxs)("select",{name:"airport",id:"airport",className:"p-2 text-center rounded-lg border-2 border-gray-300 focus:outline-none focus:border-gray-blue-400",value:t.transportation.from_airport||"none",onChange:function(e){return r(T(T({},t),{},{transportation:T(T({},t.transportation),{},{from_airport:e.currentTarget.value})}))},children:[(0,g.jsx)("option",{value:"none",children:"Not applicable or not listed"}),(0,g.jsx)("option",{value:"NRT",children:"Narita or Haneda International Airport"}),(0,g.jsx)("option",{value:"KIX",children:"Kansai International Airport"})]})})]}),(0,g.jsxs)("div",{className:"flex flex-col md:flex-row md:justify-between",children:[(0,g.jsxs)("div",{className:"mb-4 md:mb-0",children:[(0,g.jsx)("p",{children:"Will you need to store your baggage at an airport or train station? (Baggage storage service or coin lockers)?"}),(0,g.jsxs)("span",{className:"text-sm text-gray-500",children:["Note that many baggage services and coin lockers have a maximum storage period of 30 days. ",(0,g.jsx)(m(),{href:"/shikoku-pilgrimage/other#baggage",target:"_blank",children:"Please check beforehand."})]})]}),(0,g.jsx)("div",{className:"md:ml-4",children:(0,g.jsxs)("select",{name:"baggage-storage",id:"baggage-storage",className:"cursor-pointer p-2 text-center rounded-lg border-2 border-gray-300 focus:outline-none focus:border-gray-blue-400",value:t.transportation.baggage_storage?"yes":"no",onChange:function(e){return r(T(T({},t),{},{transportation:T(T({},t.transportation),{},{baggage_storage:"yes"===e.currentTarget.value})}))},children:[(0,g.jsx)("option",{value:"no",children:"No"}),(0,g.jsx)("option",{value:"yes",children:"Yes"})]})})]})]})};function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(Object(r),!0).forEach((function(t){(0,y.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var A=function(e){var t=e.inputs,r=e.setInputs;return(0,g.jsx)("div",{className:"py-6",children:(0,g.jsxs)("div",{className:"mb-6 flex flex-col",children:[(0,g.jsxs)("div",{className:"mb-4 md:mb-0",children:[(0,g.jsx)("p",{children:"Which of the following pilgrimage items do you plan to purchase?"}),(0,g.jsxs)("span",{className:"underline text-sm text-gray-500",children:[(0,g.jsx)(m(),{href:"/shikoku-pilgrimage/terms-phrases",target:"_blank",children:"Learn more about pilgrim supplies and where to get them"}),"."]})]}),(0,g.jsx)("div",{className:"",children:["Items","Clothing","Accessories"].map((function(e){return(0,g.jsxs)("div",{children:[(0,g.jsx)("h4",{className:"my-4 font-bold text-gray-700",children:e}),(0,g.jsx)("div",{className:"flex flex-wrap items-stretch",children:h.T.pilgrim.filter((function(t){return!!t.key&&t.subcategory===e})).map((function(e){var s=e.price?"\xa5".concat(e.price):"\xa5".concat(e.min," - \xa5").concat(e.max),n=!!t.pilgrim&&t.pilgrim[e.key];return(0,g.jsxs)("div",{className:"cursor-pointer m-1 px-2 md:px-3 py-1 min-w-[72px] max-w-[280px] flex flex-col rounded-lg border-2 ".concat(n?"border-gray-blue-500":"border-gray-300 hover:border-gray-400"),selected:n,onClick:function(){return r(C(C({},t),{},{pilgrim:C(C({},t.pilgrim),{},(0,y.Z)({},e.key,!n))}))},children:[(0,g.jsx)("span",{className:"mb-1",children:e.name}),e.recommended&&(0,g.jsx)("span",{className:"mb-1 text-xs text-gray-500 italic",children:"Recommended"}),!!e.note&&(0,g.jsx)("span",{className:"mb-1 text-xs text-gray-500",children:e.note}),(0,g.jsx)("span",{className:"text-sm",children:s})]},e.key)}))})]},e)}))})]})})};function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?I(Object(r),!0).forEach((function(t){(0,y.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var M=function(e){var t=e.inputs,r=e.setInputs,s=e.updateErrorMessage,n=(0,l.useState)(0===t.temples.amount),a=n[0],i=n[1],o=(0,l.useMemo)((function(){return t.temples.end&&t.temples.start?Math.abs(t.temples.end-t.temples.start)+1:t.temples.amount||88}),[t.temples]);return(0,l.useEffect)((function(){if(t.temples.end&&t.temples.start){var e=t.temples.start>=1&&t.temples.start<=88,r=t.temples.end>=1&&t.temples.end<=88;s(e?r?null:"End temple must be between 1 and 88":"Start temple must be between 1 and 88")}}),[o]),(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{className:"mb-6 flex flex-col md:flex-row md:justify-between",children:[(0,g.jsxs)("div",{className:"mb-4 md:mb-0 flex flex-col",children:[(0,g.jsx)("p",{children:"Which temples do you plan to visit?"}),(0,g.jsx)("span",{className:"text-sm text-red-600 italic",children:"Required"}),(0,g.jsxs)("span",{className:"text-sm text-gray-500",children:["Bekkaku are designated temples outside of the main 88 temples of the Shikoku Pilgrimage. Some of them are fairly close to the main pilgrim route. ",(0,g.jsx)(m(),{href:"/shikoku-pilgrimage/religious-sites#bekkaku",target:"_blank",children:"Learn about bekkaku temples"})]})]}),(0,g.jsxs)("div",{className:"md:ml-4 flex flex-col",children:[(0,g.jsxs)("select",{name:"temples",id:"temples",className:"p-2 text-center rounded-lg border-2 border-gray-300 focus:outline-none focus:border-gray-blue-400",value:t.temples.amount,onChange:function(e){var s=parseInt(e.currentTarget.value);0===s?(i(!0),r(E(E({},t),{},{temples:E(E({},t.temples),{},{amount:s,start:1,end:88})}))):(i(!1),r(E(E({},t),{},{temples:E(E({},t.temples),{},{amount:s,start:null,end:null})})))},children:[(0,g.jsx)("option",{value:88,children:"All 88 main temples"}),(0,g.jsx)("option",{value:108,children:"All 88 plus the 20 Bekkaku"}),(0,g.jsx)("option",{value:0,children:"Custom"})]}),a&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"mt-2 flex items-center justify-end",children:[(0,g.jsx)("span",{className:"mr-2",children:"From temple #:"}),(0,g.jsx)("input",{type:"number",min:"1",max:"88",className:"p-2 text-center rounded-lg border-2 border-gray-300 focus:outline-none focus:border-gray-blue-400",value:t.temples.start||1,onChange:function(e){r(E(E({},t),{},{temples:E(E({},t.temples),{},{start:parseInt(e.currentTarget.value)})}))}})]}),(0,g.jsxs)("div",{className:"mt-2 flex items-center justify-end",children:[(0,g.jsx)("span",{className:"mr-2",children:"To temple #:"}),(0,g.jsx)("input",{type:"number",min:"1",max:"88",className:"p-2 text-center rounded-lg border-2 border-gray-300 focus:outline-none focus:border-gray-blue-400",value:t.temples.end||88,onChange:function(e){r(E(E({},t),{},{temples:E(E({},t.temples),{},{end:parseInt(e.currentTarget.value)})}))}})]})]})]})]}),(0,g.jsxs)("div",{className:"mb-6 flex flex-col md:flex-row md:justify-between",children:[(0,g.jsxs)("div",{className:"mb-4 md:mb-0",children:[(0,g.jsx)("p",{children:"Do you plan to purchase a stamp at each temple?"}),(0,g.jsx)("span",{className:"italic text-sm text-gray-500",children:"Each temple has a stamp office (n\u014dky\u014dsho) where the office staff will write a beautiful calligraphy stamp in your stamp book or elsewhere. The latest price as of April 1, 2024 is \xa5500 per stamp (\xa5200 for restamps and \xa51,000 for scroll stamps)."})]}),(0,g.jsx)("div",{className:"md:ml-4",children:(0,g.jsxs)("select",{name:"temple-stamps",id:"temple-stamps",className:"cursor-pointer p-2 text-center rounded-lg border-2 border-gray-300 focus:outline-none focus:border-gray-blue-400",value:t.temples.stamps?"yes":"no",onChange:function(e){return r(E(E({},t),{},{temples:E(E({},t.temples),{},{stamps:"yes"===e.currentTarget.value})}))},children:[(0,g.jsx)("option",{value:"yes",children:"Yes"}),(0,g.jsx)("option",{value:"no",children:"No"})]})})]}),(0,g.jsxs)("div",{className:"flex flex-col md:flex-row md:justify-between",children:[(0,g.jsxs)("div",{className:"mb-4 md:mb-0 flex flex-col",children:[(0,g.jsx)("p",{children:"On average, how much do you plan to donate at each temple?"}),(0,g.jsx)("span",{className:"mb-1 text-sm text-gray-500",children:"A donation is optional at each temple. Visitors usually throw one or more coins into a designated box after finishing a prayer."}),(0,g.jsx)("span",{className:"text-sm text-gray-500",children:"A good baseline is \xa550-\xa5100 per temple visit."})]}),(0,g.jsx)("div",{className:"md:ml-4",children:(0,g.jsxs)("div",{className:"flex",children:[(0,g.jsx)("span",{className:"mr-2",children:"\xa5"}),(0,g.jsx)("input",{type:"number",id:"temple-donations",name:"temple-donations",min:"0",className:"p-2 text-center rounded-lg border-2 border-gray-300 focus:outline-none focus:border-gray-blue-400",value:t.temples.donations||"",onChange:function(e){var s=parseInt(e.currentTarget.value);r(E(E({},t),{},{temples:E(E({},t.temples),{},{donations:isNaN(s)||s<0?0:s})}))}})]})})]})]})};function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?L(Object(r),!0).forEach((function(t){(0,y.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Z=function(e){var t=e.inputs,r=e.setInputs;return(0,g.jsx)("div",{children:(0,g.jsxs)("div",{className:"flex flex-col md:flex-row md:justify-between",children:[(0,g.jsx)("div",{className:"mb-4 md:mb-0",children:(0,g.jsxs)("p",{children:["How often will you take public transportation ",(0,g.jsx)("i",{children:"during"})," the pilgrimage?"]})}),(0,g.jsx)("div",{className:"md:ml-4",children:(0,g.jsxs)("select",{name:"public-transport",id:"public-transport",className:"cursor-pointer p-2 text-center rounded-lg border-2 border-gray-300 focus:outline-none focus:border-gray-blue-400",value:t.transportation.public_transport||"none",onChange:function(e){return r(R(R({},t),{},{transportation:R(R({},t.transportation),{},{public_transport:e.currentTarget.value})}))},children:[(0,g.jsx)("option",{value:"often",children:"Frequently"}),(0,g.jsx)("option",{value:"sometimes",children:"Sometimes"}),(0,g.jsx)("option",{value:"seldom",children:"Once in a while"}),(0,g.jsx)("option",{value:"none",children:"None at all"})]})})]})})},U=r(16835);function B(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?B(Object(r),!0).forEach((function(t){(0,y.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var W=function(e){var t=e.inputs,r=e.setInputs,s=e.updateErrorMessage,n=(0,l.useMemo)((function(){return Object.values(t.lodging).reduce((function(e,t){return e+("number"!==typeof t||isNaN(t)?0:t)}),0)}),[t.lodging]),a=(0,l.useRef)();return(0,l.useEffect)((function(){if(t.days){var e=n===t.days?null:"The total must add up to ".concat(t.days," days");a.current!==e&&(a.current=e,s(e))}}),[n,t.days,s]),t.days?(0,g.jsx)("div",{children:(0,g.jsxs)("div",{className:"flex flex-col md:flex-row md:justify-between",children:[(0,g.jsxs)("div",{className:"mb-4 md:mb-0 flex flex-col",children:[(0,g.jsx)("p",{children:"How often will you stay at the following types of lodgings?"}),(0,g.jsx)("span",{className:"mb-1 text-sm text-red-600 italic",children:"Required"}),(0,g.jsxs)("span",{className:"mb-1 text-sm text-gray-500",children:["The total must add up to ",t.days," days."]}),(0,g.jsx)("span",{className:"text-sm text-gray-500 underline",children:(0,g.jsx)(m(),{href:"/shikoku-pilgrimage/where-to-stay",target:"_blank",children:"Learn about lodging options on the Shikoku Pilgrimage"})})]}),(0,g.jsxs)("div",{className:"md:ml-4 flex flex-col",children:[[["Minshuku and ryokan","bnb"],["Upscale hotels","upper"],["Average hotels","mid"],["Budget hotels, hostels, and guesthouses","lower"],["Pilgrim accommodation and campgrounds","free"]].map((function(e){var s=(0,U.Z)(e,2),n=s[0],a=s[1];return(0,g.jsxs)("div",{className:"mb-2 flex items-center justify-between",children:[(0,g.jsxs)("span",{children:[n,":"]}),(0,g.jsx)("input",{type:"number",min:"0",max:t.days,className:"p-2 text-center rounded-lg border-2 border-gray-300 focus:outline-none focus:border-gray-blue-400",value:void 0===t.lodging[a]||null===t.lodging[a]?"":t.lodging[a],onChange:function(e){return r(H(H({},t),{},{lodging:H(H({},t.lodging),{},(0,y.Z)({},a,""===e.currentTarget.value?"":parseInt(e.currentTarget.value)))}))},onBlur:function(e){""===e.currentTarget.value&&r(H(H({},t),{},{lodging:H(H({},t.lodging),{},(0,y.Z)({},a,0))}))}})]},a)})),(0,g.jsxs)("div",{className:"mt-2 flex-end text-right text-gray-500 text-sm",children:["Total: ",n]})]})]})}):null};function K(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function G(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?K(Object(r),!0).forEach((function(t){(0,y.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var F=function(e){var t=e.inputs,r=e.setInputs;return(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{className:"mb-6 flex flex-col md:flex-row md:justify-between",children:[(0,g.jsx)("div",{className:"mb-4 md:mb-0 flex flex-col",children:(0,g.jsx)("p",{children:"How often will you include a dinner and/or breakfast with your mishuku or ryokan (Japanese inn) stays?"})}),(0,g.jsx)("div",{className:"md:ml-4",children:(0,g.jsxs)("select",{name:"minshuku-meals",id:"minshuku-meals",className:"cursor-pointer p-2 text-center rounded-lg border-2 border-gray-300 focus:outline-none focus:border-gray-blue-400",value:t.food.bnb_meals||"none",onChange:function(e){return r(G(G({},t),{},{food:G(G({},t.food),{},{bnb_meals:e.currentTarget.value})}))},children:[(0,g.jsx)("option",{value:"often",children:"Almost always (80+%)"}),(0,g.jsx)("option",{value:"sometimes",children:"Sometimes (~50%)"}),(0,g.jsx)("option",{value:"seldom",children:"Once in a while (~20%)"}),(0,g.jsx)("option",{value:"none",children:"Not planning on it"})]})})]}),(0,g.jsxs)("div",{className:"flex flex-col md:flex-row md:justify-between",children:[(0,g.jsx)("div",{className:"mb-4 md:mb-0 flex flex-col",children:(0,g.jsxs)("p",{children:["How do you envision your relationship with ",(0,g.jsx)("strong",{children:"alcohol"})," \ud83c\udf7a during the pilgrimage?"]})}),(0,g.jsx)("div",{className:"md:ml-4",children:(0,g.jsxs)("select",{name:"alcohol",id:"alcohol",className:"cursor-pointer p-2 text-center rounded-lg border-2 border-gray-300 focus:outline-none focus:border-gray-blue-400",value:t.food.alcohol||"none",onChange:function(e){return r(G(G({},t),{},{food:G(G({},t.food),{},{alcohol:e.currentTarget.value})}))},children:[(0,g.jsx)("option",{value:"often",children:"Love"}),(0,g.jsx)("option",{value:"sometimes",children:"Casual acquiantances"}),(0,g.jsx)("option",{value:"seldom",children:"Very seldom"}),(0,g.jsx)("option",{value:"none",children:"Never"})]})})]})]})};function J(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function Y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?J(Object(r),!0).forEach((function(t){(0,y.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var q=function(e){var t=e.inputs,r=e.setInputs;return(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{className:"mb-6 flex flex-col md:flex-row md:justify-between",children:[(0,g.jsxs)("div",{className:"mb-4 md:mb-0 flex flex-col",children:[(0,g.jsx)("p",{children:"What type of cellular/data plan do you plan to use on the pilgrimage?"}),(0,g.jsxs)("span",{className:"mb-1 text-sm text-gray-500",children:["Service plans typically come in 7, 15, and 30-day packages. ",(0,g.jsx)(m(),{href:"/shikoku-pilgrimage/other#wifi",children:"Learn more about phone options in Shikoku"}),"."]}),(0,g.jsx)("span",{className:"text-sm text-gray-500",children:"Prices are based on Mobal and NTT Docomo, two promenent mobile phone operators in Japan."})]}),(0,g.jsx)("div",{className:"md:ml-4",children:(0,g.jsxs)("select",{name:"cellular-data",id:"cellular-data",className:"cursor-pointer p-2 text-center rounded-lg border-2 border-gray-300 focus:outline-none focus:border-gray-blue-400",value:t.telecom||"none",onChange:function(e){return r(Y(Y({},t),{},{telecom:e.currentTarget.value}))},children:[(0,g.jsx)("option",{value:"cellular_sim",children:"SIM card with cellular & data services"}),(0,g.jsx)("option",{value:"data_sim",children:"SIM card with data only"}),(0,g.jsx)("option",{value:"pocket_wifi",children:"Pocket wifi"}),(0,g.jsx)("option",{value:"none",children:"I won\u2019t need a service plan"})]})})]}),(0,g.jsxs)("div",{className:"mb-6 flex flex-col md:flex-row md:justify-between",children:[(0,g.jsxs)("div",{className:"mb-4 md:mb-0 flex flex-col",children:[(0,g.jsx)("p",{children:"How often do you plan to enjoy the many wonderful hot springs scattered across Shikoku?"}),(0,g.jsx)("span",{className:"text-sm text-gray-500",children:"If you plan on to camp or stay at places without bathing facilities, this is a great way to stay clean."})]}),(0,g.jsx)("div",{className:"md:ml-4",children:(0,g.jsxs)("select",{name:"onsen",id:"onsen",className:"cursor-pointer p-2 text-center rounded-lg border-2 border-gray-300 focus:outline-none focus:border-gray-blue-400",value:t.onsen||"none",onChange:function(e){return r(Y(Y({},t),{},{onsen:e.currentTarget.value}))},children:[(0,g.jsx)("option",{value:"often",children:"As much as I can!"}),(0,g.jsx)("option",{value:"sometimes",children:"At least 3 times per week."}),(0,g.jsx)("option",{value:"seldom",children:"Once or twice per week."}),(0,g.jsx)("option",{value:"none",children:"Once per week or less."})]})})]}),(0,g.jsxs)("div",{className:"mb-6 flex flex-col md:flex-row md:justify-between",children:[(0,g.jsxs)("div",{className:"mb-4 md:mb-0 flex flex-col",children:[(0,g.jsx)("p",{children:"Other expected expenses"}),(0,g.jsx)("span",{className:"text-sm text-gray-500",children:"These expenses may include travel health insurance, toiletries and pharmaceudical products, snacks, souvenirs, ATM and bank fees, and sightseeing costs."})]}),(0,g.jsx)("div",{className:"md:ml-4",children:(0,g.jsxs)("div",{className:"flex",children:[(0,g.jsx)("span",{className:"mr-2",children:"\xa5"}),(0,g.jsx)("input",{type:"number",className:"p-2 text-center rounded-lg border-2 border-gray-300 focus:outline-none focus:border-gray-blue-400",value:t.other||"",onChange:function(e){return r(Y(Y({},t),{},{other:parseInt(e.currentTarget.value)}))}})]})})]})]})},V=r(50029),z=r(87794),X=r.n(z),Q=r(91819),$=r(61120),ee=r.n($),te=function(e){var t=e.calculatorData,r=e.convertCurrency,s=e.currencySym,n=e.scrollToFormTop,a=(0,l.useRef)(null),i=function(){var e=(0,V.Z)(X().mark((function e(){var t,r,s,n,i,l,o;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a.current){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,ee()(a.current,{backgroundColor:"#ffffff",scale:2,useCORS:!0,logging:!1,removeContainer:!0,onclone:function(e){var t=e.querySelector('[ref="containerRef"]');t&&(t.style.boxShadow="none"),e.querySelectorAll(".pdf-only").forEach((function(e){e.style.display="block"})),e.querySelectorAll(".web-only").forEach((function(e){e.style.display="none"}))}});case 4:t=e.sent,r=t.toDataURL("image/png"),s=new Q.kH("p","mm","a4"),n=s.internal.pageSize.getWidth(),i=s.getImageProperties(r),l=i.width/i.height,o=n/l,11.
1112486,s.addImage(r,"PNG",0,0,n,o-11.112486),s.save("cost-breakdown.pdf");case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function o(e){var t=e.value;return(0,g.jsx)("span",{className:"mr-1",dangerouslySetInnerHTML:{__html:t}})}return(0,g.jsxs)("div",{ref:a,className:"py-6 lg:py-8 px-4 md:px-6 lg:px-12 w-full max-w-[960px] flex flex-col bg-white rounded-lg shadow",children:[(0,g.jsxs)("div",{className:"pdf-only w-[200px] mb-4",style:{display:"none"},children:[(0,g.jsx)(p(),{src:"/images/henro-logo.png",alt:"henro.org logo",layout:"responsive",width:240,height:95}),(0,g.jsx)("span",{className:"text-sm text-gray-600",children:"Henro.org"}),(0,g.jsx)("hr",{className:"my-2"})]}),(0,g.jsxs)("p",{className:"mb-4 text-sm",children:["Here is an estimated breakdown of costs, based on your pilgrimage of"," ",(0,g.jsxs)("b",{children:[t.days," days"]})," to ",(0,g.jsxs)("b",{children:[t.religious_place_count," temples"]})," in Shikoku."]}),(0,g.jsx)("div",{className:"w-full flex mb-2",children:(0,g.jsxs)("div",{className:"w-full py-2 flex text-gray-600 border border-transparent border-b-gray-600",children:[(0,g.jsx)("div",{className:"grow text-sm",children:"Category"}),(0,g.jsx)("div",{className:"mr-4 min-w-[16%] text-right text-sm",children:"JPY"}),(0,g.jsx)("div",{className:"min-w-[16%] text-right text-sm",children:r})]})}),(0,g.jsxs)("div",{className:"w-full py-4 flex",children:[(0,g.jsxs)("div",{className:"grow flex flex-col flex-wrap",children:[(0,g.jsx)("p",{className:"pb-1",children:"Lodging"}),(0,g.jsx)("span",{className:"text-sm text-gray-500",children:"The cost to stay at your chosen types of lodgings, adjusted for any premiums during busy season."})]}),(0,g.jsxs)("div",{className:"min-w-[16%] inline ml-4 whitespace-nowrap text-right text-sm md:text-base",children:["\xa5 ",t.lodging.base_currency.toLocaleString("en-US")]}),(0,g.jsxs)("div",{className:"min-w-[16%] inline ml-4 whitespace-nowrap text-right text-sm md:text-base",children:[(0,g.jsx)(o,{value:s}),t.lodging.origin_currency.toLocaleString("en-US")]})]}),(0,g.jsxs)("div",{className:"w-full py-4 flex",children:[(0,g.jsxs)("div",{className:"grow flex flex-col flex-wrap",children:[(0,g.jsx)("p",{className:"pb-1",children:"Transportation"}),(0,g.jsx)("span",{className:"text-sm text-gray-500",children:"Your airfare, baggage storage fees, the cost to travel from the airport to Shikoku, and the cost of transportation within Shikoku."})]}),(0,g.jsxs)("div",{className:"min-w-[16%] inline ml-4 whitespace-nowrap text-right text-sm md:text-base",children:["\xa5 ",t.transportation.base_currency.toLocaleString("en-US")]}),(0,g.jsxs)("div",{className:"min-w-[16%] inline ml-4 whitespace-nowrap text-right text-sm md:text-base",children:[(0,g.jsx)(o,{value:s}),t.transportation.origin_currency.toLocaleString("en-US")]})]}),(0,g.jsxs)("div",{className:"w-full py-4 flex",children:[(0,g.jsxs)("div",{className:"grow flex flex-col",children:[(0,g.jsx)("p",{className:"pb-1",children:"Food"}),(0,g.jsx)("span",{className:"text-sm text-gray-500",children:"Meals, snacks, and beverages."})]}),(0,g.jsxs)("div",{className:"min-w-[16%] inline ml-4 whitespace-nowrap text-right text-sm md:text-base",children:["\xa5 ",t.food.base_currency.toLocaleString("en-US")]}),(0,g.jsxs)("div",{className:"min-w-[16%] inline ml-4 whitespace-nowrap text-right text-sm md:text-base",children:[(0,g.jsx)(o,{value:s}),t.food.origin_currency.toLocaleString("en-US")]})]}),(0,g.jsxs)("div",{className:"w-full py-4 flex",children:[(0,g.jsxs)("div",{className:"grow flex flex-col",children:[(0,g.jsx)("p",{className:"pb-1",children:"Pilgrim supplies"}),(0,g.jsx)("span",{className:"text-sm text-gray-500",children:"Pilgrim gear, clothing, and accessories you have selected."}),(0,g.jsx)("a",{className:"text-sm",href:"https://www.sumotoriya.com",target:"_blank",rel:"noreferrer",children:"Buy Pilgrim Supplies Online"})]}),(0,g.jsxs)("div",{className:"min-w-[16%] inline ml-4 whitespace-nowrap text-right text-sm md:text-base",children:["\xa5 ",t.pilgrim_supplies.base_currency.toLocaleStr
1ing("en-US")]}),(0,g.jsxs)("div",{className:"min-w-[16%] inline ml-4 whitespace-nowrap text-right text-sm md:text-base",children:[(0,g.jsx)(o,{value:s}),t.pilgrim_supplies.origin_currency.toLocaleString("en-US")]})]}),(0,g.jsxs)("div",{className:"w-full py-4 flex",children:[(0,g.jsxs)("div",{className:"grow flex flex-col",children:[(0,g.jsx)("p",{className:"pb-1",children:"Temple costs"}),(0,g.jsxs)("span",{className:"text-sm text-gray-500",children:["The cost of calligraphy stamps and donations at"," ",t.religious_place_count," temples."]})]}),(0,g.jsxs)("div",{className:"min-w-[16%] inline ml-4 whitespace-nowrap text-right text-sm md:text-base",children:["\xa5 ",t.religious_places.base_currency.toLocaleString("en-US")]}),(0,g.jsxs)("div",{className:"min-w-[16%] inline ml-4 whitespace-nowrap text-right text-sm md:text-base",children:[(0,g.jsx)(o,{value:s}),t.religious_places.origin_currency.toLocaleString("en-US")]})]}),(0,g.jsxs)("div",{className:"w-full py-4 flex",children:[(0,g.jsxs)("div",{className:"grow flex flex-col",children:[(0,g.jsx)("p",{className:"pb-1",children:"Wifi & Cellular Services"}),(0,g.jsx)("span",{className:"text-sm text-gray-500",children:"The cost of your chosen cellular/data plan. Per-day prices are lower when you purchase longer-term services plans."})]}),(0,g.jsxs)("div",{className:"min-w-[16%] inline ml-4 whitespace-nowrap text-right text-sm md:text-base",children:["\xa5 ",t.telecom.base_currency.toLocaleString("en-US")]}),(0,g.jsxs)("div",{className:"min-w-[16%] inline ml-4 whitespace-nowrap text-right text-sm md:text-base",children:[(0,g.jsx)(o,{value:s}),t.telecom.origin_currency.toLocaleString("en-US")]})]}),(0,g.jsxs)("div",{className:"w-full py-4 flex",children:[(0,g.jsxs)("div",{className:"grow flex flex-col",children:[(0,g.jsx)("p",{className:"pb-1",children:"Laundry"}),(0,g.jsx)("span",{className:"text-sm text-gray-500",children:"Based on the cost of self-service laundromats. Walking pilgrims tend to do their laundry more often (~2-3 times per week) than regular travelers. This estimate does not account for some lodgings that may provide free laundry services."})]}),(0,g.jsxs)("div",{className:"min-w-[16%] inline ml-4 whitespace-nowrap text-right text-sm md:text-base",children:["\xa5 ",t.laundry.base_currency.toLocaleString("en-US")]}),(0,g.jsxs)("div",{className:"min-w-[16%] inline ml-4 whitespace-nowrap text-right text-sm md:text-base",children:[(0,g.jsx)(o,{value:s}),t.laundry.origin_currency.toLocaleString("en-US")]})]}),(0,g.jsxs)("div",{className:"w-full py-4 flex",children:[(0,g.jsxs)("div",{className:"grow flex flex-col",children:[(0,g.jsx)("p",{className:"pb-1",children:"Other costs"}),(0,g.jsx)("span",{className:"text-sm text-gray-500",children:"Hot springs and other expected expenses."})]}),(0,g.jsxs)("div",{className:"min-w-[16%] inline ml-4 whitespace-nowrap text-right text-sm md:text-base",children:["\xa5 ",t.other.base_currency.toLocaleString("en-US")]}),(0,g.jsxs)("div",{className:"min-w-[16%] inline ml-4 whitespace-nowrap text-right text-sm md:text-base",children:[(0,g.jsx)(o,{value:s}),t.other.origin_currency.toLocaleString("en-US")]})]}),(0,g.jsxs)("div",{className:"w-full mt-2 py-3 flex border border-transparent border-t-gray-600 font-bold",children:[(0,g.jsx)("div",{className:"grow flex flex-col",children:(0,g.jsx)("p",{className:"pb-1",children:"Total"})}),(0,g.jsxs)("div",{className:"min-w-[16%] inline ml-4 whitespace-nowrap text-right text-sm md:text-base",children:["\xa5 ",t.total.base_currency.toLocaleString("en-US")]}),(0,g.jsxs)("div",{className:"min-w-[16%] inline ml-4 whitespace-nowrap text-right text-sm md:text-base",children:[(0,g.jsx)(o,{value:s}),t.total.origin_currency.toLocaleString("en-US")]})]}),(0,g.jsxs)("div",{className:"mt-2 text-sm",children:[(0,g.jsxs)("span",{children:["Examples of other expenses which are ",(0,g.jsx)("b",{children:"not"})," included:"]}),(0,g.jsxs)("ul",{children:[(0,g.jsx)("li",{children:"Hiking gear, clothing, and other travel accessories (backpack rain cover, mosquito repellants, etc.)"}),(0,g.jsx)("li",{children:"Visits to other points of interest along the pilgrimage routes (Shikoku has many!)"}),(0,g.jsx)("li",{children:"ATM and currency conversion fees"})]})]}),(0,g.jsxs)("div",{className:"mt-4 flex flex-col justify-center web-only",children:[(0,g.jsx)("button",{className:"underline text-gray-blue-500",onClick:function(){window.location.reload(!1),n()},children:"Start Over"}),(0,g.jsx)("button",{className:"underline text-gray-blue-500 mt-2",onClick:i,children:"Download PDF"})]})]})},re={ALL:"Lek",AFN:"؋",AMD:"Դ",ARS:"$",AWG:"ƒ",AUD:"$",AZN:"ман",BSD:"$",BBD:"$",BYR:"p.",BZD:"BZ$",BMD:"$",BOB:"$b",BAM:"KM",BWP:"P",BGN:"лв",BRL:"R$",BND:"$",KHR:"៛",CAD:"$",KYD:"$",CLP:"$",CNY:"¥",COP:"$",CRC:"₡",HRK:"kn",CUP:"₱",CZK:"Kč",DKK:"kr",DOP:"RD$",XCD:"$",EGP:"£",SVC:"$",EEK:"kr",EUR:"€",FKP:"£",FJD:"$",GHC:"¢",GIP:"£",GTQ:"Q",GGP:"£",GYD:"$",HNL:"L",HKD:"$",HUF:"Ft",ISK:"kr",INR:null,IDR:"Rp",IRR:"﷼",IMP:"£",ILS:"₪",JMD:"J$",JPY:"¥",JEP:"£",KZT:"лв",KPW:"₩
1",KRW:"₩",KGS:"лв",LAK:"₭",LVL:"Ls",LBP:"£",LRD:"$",LTL:"Lt",MKD:"ден",MYR:"RM",MUR:"₨",MXN:"$",MNT:"₮",MZN:"MT",NAD:"$",NPR:"₨",ANG:"ƒ",NZD:"$",NIO:"C$",NGN:"₦",NOK:"kr",OMR:"﷼",PKR:"₨",PAB:"B/.",PYG:"Gs",PEN:"S/.",PHP:"₱",PLN:"zł",QAR:"﷼",RON:"lei",RUB:"руб",SHP:"£",SAR:"﷼",RSD:"Дин.",SCR:"₨",SGD:"$",SBD:"$",SOS:"S",ZAR:"R",LKR:"₨",SEK:"kr",CHF:"CHF",SRD:"$",SYP:"£",TWD:"NT$",THB:"฿",TTD:"TT$",TRY:null,TRL:"₤",TVD:"$",UAH:"₴",GBP:"£",USD:"$",UYU:"$U",UZS:"лв",VEF:"Bs",VES:"Bs",VND:"₫",YER:"﷼",ZWD:"Z$"};function se(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function ne(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?se(Object(r),!0).forEach((function(t){(0,y.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):se(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ae=function(){var e=(0,l.useRef)(null),t=function(){e.current&&e.current.scrollIntoView({behavior:"smooth",block:"start"})},r=(0,l.useState)(!1),s=r[0],n=r[1],a=(0,l.useState)(null),i=a[0],o=a[1],c=(0,l.useState)(0),d=c[0],m=c[1],u=(0,l.useState)({country_code:"",transportation:{},temples:{amount:88},lodging:{},food:{}}),p=u[0],h=u[1],f=(0,l.useState)([null,d]),b=f[0],j=f[1],y=function(e){return j([e,d])},N=(0,l.useMemo)((function(){return!!b[0]&&b[1]===d}),[b,d]),O=[(0,g.jsx)(w.Z,{inputs:p,setInputs:h,updateErrorMessage:y},"startEndDates"),(0,g.jsx)(S,{inputs:p,setInputs:h,updateErrorMessage:y},"origin"),(0,g.jsx)(_,{inputs:p,setInputs:h,updateErrorMessage:y},"origin-transportation"),(0,g.jsx)(A,{inputs:p,setInputs:h},"pilgrim"),(0,g.jsx)(M,{inputs:p,setInputs:h,updateErrorMessage:y},"temples"),(0,g.jsx)(Z,{inputs:p,setInputs:h,updateErrorMessage:y},"transportation"),(0,g.jsx)(W,{inputs:p,setInputs:h,updateErrorMessage:y},"lodgings"),(0,g.jsx)(F,{inputs:p,setInputs:h,updateErrorMessage:y},"meals"),(0,g.jsx)(q,{inputs:p,setInputs:h,updateErrorMessage:y},"other-costs")],k=function(){n(!0),(0,v.ZP)("/budgets",{method:"POST",body:ne(ne({},p),{},{pilgrimage_code:"shikoku-pilgrimage"})}).then((function(e){o(e),n(!1),(0,v.Ux)("CALCULATE_COSTS",{relatable_type:"Budget",relatable_id:e.id})})).catch((function(e){y(e.message),n(!1)}))},P=(0,l.useMemo)((function(){if(i)return i.origin_currency}),[i]),T=(0,l.useMemo)((function(){return re[P]}),[P]);return(0,g.jsxs)("div",{ref:e,children:[(0,g.jsxs)("div",{className:"p-4 md:p-8 md:pb-6 w-full flex items-center bg-slate-200",children:[(0,g.jsx)(x.Z,{image:"/images/shikoku-pilgrimage/icons/autumn-backpacker-hiker.png",color:"#665775"}),(0,g.jsxs)("div",{className:"ml-3 grow",children:[(0,g.jsx)("h2",{children:"Cost Calculator"}),(0,g.jsx)("div",{className:"mt-3 w-full h-[4px] bg-[#665775]"})]})]}),(0,g.jsxs)("div",{className:"py-4 px-4 md:px-6 lg:px-12 w-full flex justify-center bg-slate-200",children:[s&&(0,g.jsx)("div",{className:"py-8 px-4 md:px-6 lg:px-12 w-full max-w-[960px] flex flex-col bg-white rounded-lg shadow",children:(0,g.jsx)("div",{className:"flex justify-center items-center",children:(0,g.jsx)("div",{className:"animate-spin rounded-full h-16 w-16 border-t-2 border-b-2 border-slate-500"})})}),!s&&!i&&(0,g.jsxs)("div",{className:"py-8 px-4 md:px-6 lg:px-12 w-full max-w-[960px] flex flex-col bg-white rounded-lg shadow",children:[(0,g.jsx)("div",{className:"my-3 flex justify-center items-center",children:O.map((function(e,t){return(0,g.jsx)("div",{className:"mr-1 w-[12px] h-[12px] rounded-full shadow border border-slate-200 ".concat(t<=d?"bg-slate-500":"bg-slate-100")},"step-".concat(t))}))}
1),(0,g.jsx)("div",{className:"py-6",children:O[d]}),N&&(0,g.jsx)("div",{className:"mt-2 flex justify-end text-sm text-red-600 italic",children:b[0]||"Please fill out all required fields."}),(0,g.jsxs)("div",{className:"mt-4 flex justify-between",children:[(0,g.jsx)("button",{className:"bg-slate-500 text-white px-4 py-2 rounded-lg",onClick:function(){0!==d&&(t(),m(d-1))},children:"Back"}),(0,g.jsx)("button",{className:"bg-slate-500 hover:bg-slate-700 text-white px-4 py-2 rounded-lg disabled:bg-slate-300",disabled:N,onClick:function(){0===d?p.days&&(0,v.Ux)("START_CALCULATE_COSTS",{metadata:{start_date:p.start_date,end_date:p.end_date,days:p.days}}):d===O.length-1&&k(),t(),m(d+1)},children:"Next"})]})]}),!s&&!!i&&(0,g.jsx)(te,{calculatorData:i,convertCurrency:P,currencySym:T,scrollToFormTop:t,fetchResults:k})]})]})},ie=!0,le=function(e){var t=e.deviceUserId;return(0,g.jsx)(i.ZP,{pilgrimage:"shikoku-pilgrimage",category:"costs",children:(0,g.jsxs)(a,{id:"cost-calculator",children:[(0,g.jsx)(ae,{deviceUserId:t}),(0,g.jsx)(j,{})]})})}},75171:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[pilgrimage]/costs",function(){return r(81393)}])}},function(e){e.O(0,[4885,7847,5443,5340,4074,7341,9774,2888,179],(function(){return t=75171,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.