1import{u as m,r as x,j as e}from"./app-DbGQ5MZF.js";import{c as l,N as u,F as h}from"./Navigation-BZjJCI-9.js";import{O as f}from"./OnlineStoreSteps-Ejcevggw.js";import{u as j,g as N,S as y}from"./useSeo-DN5qwNeC.js";import{C as _}from"./cta-button-2-CiOzRktx.js";import{M as g}from"./mail-Di12_pw6.js";import{A as v}from"./arrow-left-gbY7olq7.js";/* empty css */import"./check-AQtEWAj2.js";const b=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],w=l("circle-check",b);const P=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],C=l("heart",P);function F(){const{props:t}=m(),o=t.seo,d=j(o),p=[N("Organization",{name:"Palau National Communications Corporation",url:"https://www.pnccpalau.com"})],r=s=>s?{pin:s.match(/(?:User ID|PIN):\s*([A-Za-z0-9]+)/i)?.[1],password:s.match(/Password:\s*([A-Za-z0-9]+)/i)?.[1],sn:s.match(/SN:\s*([A-Za-z0-9]+)/i)?.[1]}:null,c=x.useMemo(()=>{const s=t.success_data?.product_pins??[],a=[];return s.some(n=>n.prepaid_pin_type_slug.includes("airtime"))&&a.push("Airtime Card (mobile recharge)"),s.some(n=>!n.prepaid_pin_type_slug.includes("airtime"))&&a.push("Internet Card"),a},[t.success_data]),i=t.success_data?.product_pins?.length??0;return e.jsxs(e.Fragment,{children:[e.jsx(y,{seo:d,structuredData:p}),e.jsxs("div",{className:"flex min-h-screen flex-col bg-white",children:[e.jsx(u,{}),e.jsxs("main",{className:"flex-1",children:[e.jsx(f,{currentStep:3}),e.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 text-center sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"mb-12 space-y-4",children:[e.jsx("h1",{className:"text-4xl font-black text-pncc-cyan",children:"Order Confirmation"}),e.jsx("div",{className:"flex justify-center py-6",children:e.jsxs("div",{className:"relative",children:[e.jsx(g,{className:"h-12 w-12 text-pncc-cyan",strokeWidth:1}),e.jsx("div",{className:"absolute right-0 bottom-0 flex h-4 w-4 items-center justify-center rounded-full bg-white shadow-sm",children:e.jsx(C,{className:"h-4 w-4 text-pncc-cyan"})})]})}),e.jsxs("div",{className:"space-y-2 text-neutral-600",children:[e.jsx("p",{className:"text-xl font-medium",children:"Thank you for your purchase!"}),e.jsxs("p",{className:"text-lg",children:["We will also send the Prepaid ",i===1?"PIN":"PINs"," to"," ",e.jsx("span",{className:"font-bold text-neutral-800",children:t.success_data?.email})]})]}),c.length>0&&e.jsxs("p",{className:"pt-8 text-xl font-bold text-neutral-700",children:["Thank you for purchasing PNCC Prepaid ",c.join(" and "),"."]})]}),e.jsxs("div",{className:"overflow-hidden border border-neutral-200",children:[e.jsx("div",{className:"bg-[#001f3f] py-4 text-center",children:e.jsx("h2",{className:"text-xl font-medium text-white",children:i===1?"Here is your Prepaid PIN:":"Here are your Prepaid PINs:"})}),e.jsx("div",{className:"divide-y divide-neutral-200",children:t.success_data?.product_pins.map((s,a)=>e.jsxs("div",{className:`flex items-start gap-4 p-8 text-left ${a%2===1?"bg-[#f5f5f5]":"bg-white"}`,children:[e.jsx(w,{className:"mt-1 h-6 w-6 flex-shrink-0 text-neutral-300"}),e.jsxs("div",{className:"space-y-1 text-lg text-neutral-500",children:[e.jsxs("p",{children:[s.internal_name," with PIN:"," ",e.jsx("span",{className:"font-bold text-neutral-800",children:r(s.pin)?.pin})," ",r(s.pin)?.password&&e.jsxs(e.Fragment,{children:["Password:"," ",e.jsx("span",{className:"font-bold text-neutral-800",children:r(s.pin)?.password})," "]}),"SN: ",e.jsx("span",{className:"font-bold text-neutral-800",children:r(s.pin)?.sn})]}),e.jsxs("p",{children:["(See Instructions here -"," ",e.jsx("a",{href:s.prepaid_pin_type_slug.includes("airtime")?"/online-store/airtime":"/online-store/internet",className:"text-pncc-cyan hover:underline",target:"_blank",rel:"noopener noreferrer",children:s.prepaid_pin_type_slug.includes("airtime")?"/online-store/airtime":"/online-store/internet"}),")"]})]})]},a))})]}),e.jsxs("div",{className:"mt-12 space-y-2 text-center text-lg text-neutral-600",children:[e.jsxs("p",{children:["Transaction ID: ",e.jsx("span",{className:"font-bold text-neutral-800",children:t.success_data?.transaction_id})]}),e.jsxs("p",{children:["Invoice Number: ",e.jsx("span",{className:"font-bold text-neutral-800 uppercase",children:t.success_data?.invoice_number})]})]}),e.jsx("div",{className:"mt-16 flex justify-center",children:e.jsx(_,{title:"Back to Homepage",variant:"inverse",icon:e.jsx(v,{}),iconPosition:"left",href:"/"})})]})]}),e.jsx(h,{})]})]})}export{F as default};
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.