PageSourceSearch

https://archelon.gr/_next/static/chunks/pages/shop/cart-54e02b06c5b8688e.js

js archelon.gr collected 2026-10-02 03:57:34 UTC 13,062 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3672],{90355:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/shop/cart",function(){return n(14745)}])},11663:function(e,t,n){"use strict";n.d(t,{n:function(){return x},t:function(){return a}});var r,a,s=n(15311),i=n(52141),l=n(32790),o=n(41635),c=n(18578),d=n(64817);(r=a||(a={})).Volunteer="Volunteer",r.Shop="Shop",r.Booking="Booking",r.Authentication="Authentication",r.nestspotter="nestspotter";let x=e=>{let{t}=(0,d.Z)("main");return(0,s.jsxs)(l.$,{wrapperClassName:"mt-0",childrenContainerClassName:"flex flex-col items-center text-center",children:[(0,s.jsx)("span",{className:"mb-4 font-extrabold text-blue-bright font-base",children:t("serviceAvailability.heading")}),(0,s.jsx)("span",{className:"mb-12 font-bold font-0.5sm",children:t("serviceAvailability.alternative")}),(0,s.jsx)(i.m,{className:"mb-6",text:t("callToActions.returnToHome"),extendWidth:!0,target:o.II.LearnMore,targetArgument:c.d.home()}),"Authentication"!=e.service&&"Shop"!=e.service&&(0,s.jsx)(i.m,{text:t("callToActions.alternativelyGoToShop"),extendWidth:!0,target:o.II.Shop,renderAsLink:!0})]})}},48762:function(e,t,n){"use strict";n.d(t,{V:function(){return d}});var r=n(15311),a=n(32790),s=n(20132),i=n(89311),l=n.n(i),o=n(11867),c=n(16802);function d(e){return e.section?(0,r.jsx)(a.$,{wrapperClassName:e.className,heading:e.section.title,subHeading:e.section.subtitle,primaryContent:e.section.primaryContent,secondaryContent:e.section.secondaryContent,actions:e.section.actions,children:(0,r.jsx)(x,{faq:e.faq})}):(0,r.jsx)(a.$,{wrapperClassName:e.className,children:(0,r.jsx)(x,{faq:e.faq})})}let x=e=>{let{faq:t}=e,[n,a]=(0,s.useState)(0);return t?(0,r.jsx)("ol",{children:t.map((e,t)=>{let s=n==t;return(0,r.jsxs)("li",{className:"first:border-t border-l border-r border-b border-solid border-blue-bright",onClick:()=>{a(t)},children:[(0,r.jsxs)("div",{className:"cursor-pointer font-semibold py-7 px-4 md:px-9 flex flex-row justify-between items-center ".concat(s?"bg-blue-bright text-white":"text-black"),children:[(0,r.jsx)("h3",{className:"break-words hyphens-auto",children:"".concat(t+1,". ").concat(e.question)}),(0,r.jsx)(c.u,{className:"".concat(s?"rotate-180 stroke-white":"rotate-90 stroke-blue-bright"," grow-0 shrink-0 h-4 w-4")})]}),s&&(0,r.jsx)("div",{className:"pt-7 pb-5 px-9 break-words hyphens-auto ".concat(s?"border-l-6 border-r-6 border-b-6 border-solid border-blue-bright":""," ").concat(l().textContainer),children:(0,r.jsx)(o.R,{...e.answer})})]},t)})}):(0,r.jsx)(r.Fragment,{})}},32790:function(e,t,n){"use strict";n.d(t,{$:function(){return x},h:function(){return c}});var r=n(15311),a=n(11867),s=n(89311),i=n.n(s),l=n(52141);function o(e){var t,n,s,l,o;return(0,r.jsxs)(r.Fragment,{children:[e.subHeading&&(0,r.jsx)("span",{className:"text-xl leading-6 font-semibold",children:e.subHeading}),e.heading&&(0,r.jsxs)("h2",{className:"".concat(null!==(t=e.headingClassName)&&void 0!==t?t:""," pb-4 lg:pb-6 text-2xl md:text-3.5xl xl:text-4xl 2xl:text-5.25xl 2xl:leading-18 ").concat(e.skipHeadingColoring?"":"text-blue-bright"," font-normal"),children:[e.headingFontClassName&&(0,r.jsx)("span",{className:null!==(n=e.headingFontClassName)&&void 0!==n?n:"",children:e.heading}),!e.headingFontClassName&&e.heading]}),e.primaryContent&&(0,r.jsx)("div",{className:"text-base md:text-xl md:leading-8 font-extrabold break-words hyphens-auto ".concat(e.skipWrapper?"":"xl:w-4/5"," ").concat(i().textContainer," ").concat(null!==(s=e.primaryContentClassName)&&void 0!==s?s:""),children:(0,r.jsx)(a.R,{...e.primaryContent})}),e.secondaryContent&&(0,r.jsx)("div",{className:"text-base leading-8 break-words hyphens-auto ".concat(e.skipWrapper?"":"xl:w-4/5"," ").concat(i().textContainer," ").concat(null!==(l=e.secondaryContentClassName)&&void 0!==l?l:""),children:(0,r.jsx)(a.R,{...e.secondaryContent})}),e.actions&&(0,r.jsx)(c,{actions:e.actions,actionsContainerClassName:e.actionsContainerClassName,actionContainerClassName:e.actionContainerClassName}),e.children&&(0,r.jsx)("div",{className:"".concat(e.children&&(e.primaryContent||e.secondaryContent)?"pt-6":""," h-full ").concat(null!==(o=e.childrenContainerClassName)&&void 0!==o?o:""),children:e.children}),e.info&&(0,r.jsx)(d,{info:e.info})]})}let c=e=>{let{actions:t,actionsContainerClassName:n,actionContainerClassName:s}=e;if(!t||0==t.length)return(0,r.jsx)(r.Fragment,{});let o=t.filter(e=>!e.description),c=t.filter(e=>e.description);return(0,r.jsxs)(r.Fragment,{children:[o&&o.length>0&&(0,r.jsx)("div",{className:"".concat(null!=n?n:""," flex flex-col space-y-4 md:flex-row md:space-x-4 md:space-y-0"),children:o.map((e,t)=>(0,r.jsx)(l.m,{className:s,text:e.heading,extendWidth:!0,target:e.target,targetArgument:e.targetArgument},t))}),c&&c.length>0&&(0,r.jsx)("ol",{className:"".concat(null!=n?n:""),children:c.map((e,t)=>(0,r.jsxs)("li",{className:"pb-8 last:pb-0 ".concat(null!=s?s:""),children:[(0,r.jsx)("div",{className:"text-base pb-2 break-words hyphens-auto ".concat(i().textContainer),children:(0,r.jsx)(a.R,{...e.description})}),(0,r.jsx)(l.m,{text:e.heading,extendWidth:!0,target:e.target,targetArgument:e.targetArgument})]},t))})]})},d=e=>{let{info:t}=e;
1return t&&0!=t.length?(0,r.jsx)("div",{className:"grid xl:grid-cols-2 gap-12",children:t.map((e,t)=>(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-lg font-extrabold",children:e.heading}),(0,r.jsx)("div",{className:"pt-6 text-base break-words hyphens-auto ".concat(i().textContainer),children:(0,r.jsx)(a.R,{...e.content})})]},t))}):(0,r.jsx)(r.Fragment,{})};function x(e){var t;return!1===e.visible?(0,r.jsx)(r.Fragment,{}):e.skipWrapper?(0,r.jsx)(o,{...e}):(0,r.jsx)("section",{id:e.id,className:"relative ".concat(e.extendOnLeft?"pl-6 md:pl-8 lg:pl-0":"pl-6 md:pl-8 xl:pl-16 2xl:pl-24"," ").concat(e.extendOnRight?"pr-6 md:pr-8 lg:pr-0":"pr-6 md:pr-8 xl:pr-16 2xl:pr-24"," flex flex-col ").concat(null!==(t=e.wrapperClassName)&&void 0!==t?t:""," ").concat(e.wrapperClassName&&e.wrapperClassName.includes("mt-")?"":"mt-16"),children:(0,r.jsx)(o,{...e})})}},14745:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return j},default:function(){return f}});var r=n(15311),a=n(54941),s=n(63962),i=n(56310),l=n(87382),o=n(64817),c=n(20132),d=n(70788),x=n(18578),u=n(69934),h=n(32790);let m=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",strokeWidth:1.5,stroke:"currentColor",...e,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 15L3 9m0 0l6-6M3 9h12a6 6 0 010 12h-3"})});var p=n(52141),v=n(41635),g=n(48762),b=n(11663),j=!0;function f(e){var t,n,s,i,x;let u=(0,d.I0)(),{t:m}=(0,o.Z)("main"),p=null!==(s=(0,d.v9)(function(e){return e.order}))&&void 0!==s?s:{id:"",lines:[],subTotal:0,subTotalWithTax:0,shippingWithTax:0,total:0,totalWithTax:0,totalQuantity:0,state:""},v=(0,d.v9)(function(e){return e.isShopOffline}),j=(0,l.j)(),[f,w]=(0,c.useState)(null),k=async e=>{let t=p.lines.find(t=>t.id===e);w(t),await j.removeOrderLine(p,e),p.lines.filter(e=>e!=t).length<=0&&u({type:"SET_PAYMENT_TYPE",paymentType:"",paymentRedirect:"",paymentOrderId:p.code})},_=async()=>{await j.addToCart(p,f.productVariant.id,f.quantity),w(null)};return v?(0,r.jsx)(a.Z,{...e,children:(0,r.jsx)(h.$,{children:(0,r.jsx)(b.n,{service:b.t.Shop})})}):(0,r.jsxs)(a.Z,{...e,children:[(0,r.jsxs)(h.$,{heading:m("cart.title"),children:[(0,r.jsx)(N,{orderLine:f,recallRemoveProduct:_}),(null!==(i=null==p?void 0:null===(t=p.lines)||void 0===t?void 0:t.length)&&void 0!==i?i:0)==0&&(0,r.jsx)(C,{}),(null!==(x=null==p?void 0:null===(n=p.lines)||void 0===n?void 0:n.length)&&void 0!==x?x:0)>0&&(0,r.jsx)(y,{order:p,removeLine:k})]}),(0,r.jsx)(g.V,{faq:e.faq})]})}let N=e=>{let{orderLine:t,recallRemoveProduct:n}=e,{t:a}=(0,o.Z)("main");return t?(0,r.jsxs)("div",{className:"flex justify-between items-center mb-4 p-4 border-blue-bright border border-solid bg-blue-bright text-white cursor-pointer hover:bg-white hover:text-blue-bright",onClick:n,children:[(0,r.jsx)("div",{className:"flex flex-row space-x-2 items-baseline",children:(0,r.jsx)("span",{children:"".concat(a("cart.recallProductRemoval")," - ").concat(t.productVariant.name)})}),(0,r.jsx)(m,{className:"grow-0 shrink-0 h-6 w-6"})]}):(0,r.jsx)(r.Fragment,{})},C=()=>{let{t:e}=(0,o.Z)("main");return(0,r.jsxs)("div",{className:"mt-12 flex flex-col items-center space-y-8",children:[(0,r.jsx)("span",{className:"text-center text-blue text-lg font-bold",children:e("cart.empty")}),(0,r.jsx)(p.m,{text:e("cart.viewProducts"),extendWidth:!0,target:v.II.LearnMore,targetArgument:x.d.shop()})]})},y=e=>{var t;let{order:n,removeLine:a}=e,{t:s}=(0,o.Z)("main");return(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsxs)("div",{className:"hidden sm:grid grid-cols-5 border-b border-solid border-gray pb-3",children:[(0,r.jsx)("span",{className:"col-start-2",children:s("cart.OrderLineProductName")}
1),(0,r.jsx)("span",{className:"text-right",children:s("cart.OrderLinePrice")}),(0,r.jsx)("span",{className:"text-right",children:s("cart.OrderLineQuantity")}),(0,r.jsx)("span",{className:"text-right",children:s("cart.OrderLineTotal")})]}),null==n?void 0:null===(t=n.lines)||void 0===t?void 0:t.map((e,t)=>(0,r.jsx)(w,{order:n,orderLine:e,onRemoveLine:a},t)),(0,r.jsx)("div",{className:"grid grid-cols-5 mt-6",children:(0,r.jsxs)("div",{className:"col-start-1 sm:col-start-4 col-end-6 flex flex-col items-end space-y-6",children:[(0,r.jsx)("span",{className:"text-gray-heavydark font-bold",children:"".concat(s("cart.subtotal"),": ").concat((0,i.uf)(n.subTotalWithTax))}),(0,r.jsx)("span",{className:"text-right sm:w-72 text-sm text-gray-placeholder font-bold",children:s("cart.shippingExpensesCalculatedAtNextStep")}),(0,r.jsx)(p.m,{text:s("cart.checkout"),extendWidth:!0,target:v.II.LearnMore,targetArgument:x.d.checkout()})]})})]})},w=e=>{var t,n,a,c,d,x,h,m,p,v,g,b;let{order:j,orderLine:f,onRemoveLine:N}=e,{t:C}=(0,o.Z)("main"),{adjustOrderLine:y}=(0,l.j)(),w=(e,t)=>{let n=parseInt(t);n<=0||y(j,e.id,n)},k=e=>{var t,n;if(1==e.quantity){_(e);return}y(j,null!==(t=e.id)&&void 0!==t?t:"",(null!==(n=e.quantity)&&void 0!==n?n:0)-1)},_=e=>{N(e.id)};return(0,r.jsxs)("div",{className:"mt-6 pb-6 grid sm:grid-cols-5 gap-4 sm:gap-0 border-b border-solid border-gray",children:[(0,r.jsx)("div",{className:"relative h-40 lg:w-40",children:(0,r.jsx)(u.Z,{src:null!==(v=null==f?void 0:null===(t=f.featuredAsset)||void 0===t?void 0:t.preview)&&void 0!==v?v:"/images/no-product-image.png",layout:"fill",objectFit:"contain",alt:(0,i.mU)(f)})}),(0,r.jsxs)("div",{className:"text-gray-placeholder text-0.5sm flex flex-col justify-between",children:[(0,r.jsx)("span",{className:"break-words hyphens-auto",children:(0,i.mU)(f)}),(0,r.jsx)("span",{className:"text-blue-bright text-sm cursor-pointer underline",onClick:()=>_(f),children:C("cart.OrderLineRemove")})]}),(0,r.jsx)("div",{children:!(null===(c=f.productVariant)||void 0===c?void 0:null===(a=c.product)||void 0===a?void 0:null===(n=a.customFields)||void 0===n?void 0:n.is_service)&&(0,r.jsx)("span",{className:"hidden sm:block text-right whitespace-nowrap",children:(0,i.uf)(null!==(g=s.G.applyTaxRateAndRound(null===(x=f.productVariant)||void 0===x?void 0:null===(d=x.customFields)||void 0===d?void 0:d.discountedPrice))&&void 0!==g?g:0)})}),(0,r.jsx)("div",{className:"flex flex-col items-end",children:!(null===(p=f.productVariant)||void 0===p?void 0:null===(m=p.product)||void 0===m?void 0:null===(h=m.customFields)||void 0===h?void 0:h.is_service)&&(0,r.jsxs)("div",{className:"flex flex-row text-gray",children:[(0,r.jsx)("svg",{onClick:()=>k(f),className:"cursor-pointer clickable fill-current text-gray-600 w-3",viewBox:"0 0 448 512",children:(0,r.jsx)("path",{d:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"})}),(0,r.jsx)("input",{onChange:e=>w(f,e.target.value),value:f.quantity,type:"text",className:"mx-2 border text-center w-8"}),(0,r.jsx)("svg",{onClick:()=>{var e,t;return y(j,null!==(e=f.id)&&void 0!==e?e:"",(null!==(t=f.quantity)&&void 0!==t?t:0)+1)},className:"cursor-pointer clickable fill-current text-gray-600 w-3",viewBox:"0 0 448 512",children:(0,r.jsx)("path",{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"})})]})}),(0,r.jsx)("span",{className:"text-right whitespace-nowrap",children:(0,i.uf)(null!==(b=s.G.applyTaxRateAndRound(f.discountedLinePriceWithTax))&&void 0!==b?b:0)})]})}},89311:function(e){e.exports={textContainer:"text_textContainer__FDtkO",excavationsText:"text_excavationsText__a9DEo",coloredBulletListContainer:"text_coloredBulletListContainer__mWS0s",coloredNumericListContainer:"text_coloredNumericListContainer__ncSFn",longTextContainer:"text_longTextContainer__FbM0Q"}}},function(e){e.O(0,[6937,1488,8578,4941,2888,9774,179],function(){return e(e.s=90355)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.