PageSourceSearch

https://www.etecplus.ai/_next/static/chunks/5009-fd09a75cce4438b3.js

js etecplus.ai collected 2026-10-05 14:25:18 UTC 8,357 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5009],{13545:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(78340).A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},18460:(e,t,n)=>{n.d(t,{F:()=>i});var r=n(29722);let l=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,s=r.$,i=(e,t)=>n=>{var r;if((null==t?void 0:t.variants)==null)return s(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:i,defaultVariants:a}=t,o=Object.keys(i).map(e=>{let t=null==n?void 0:n[e],r=null==a?void 0:a[e];if(null===t)return null;let s=l(t)||l(r);return i[e][s]}),d=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return s(e,o,null==t||null==(r=t.compoundVariants)?void 0:r.reduce((e,t)=>{let{class:n,className:r,...l}=t;return Object.entries(l).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...d}[t]):({...a,...d})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},42442:(e,t,n)=>{n.d(t,{DX:()=>a,Dc:()=>d,TL:()=>i});var r,l=n(12115),s=n(47527);function i(e){let t=l.forwardRef((t,n)=>{var r;let i,a,{children:d,...c}=t,x=null,y=!1,g=[];m(d)&&"function"==typeof h&&(d=h(d._payload)),l.Children.forEach(d,e=>{var t;if(t=e,l.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===o){y=!0;let t="child"in e.props?e.props.child:e.props.children;m(t)&&"function"==typeof h&&(t=h(t._payload)),x=u(e,t),g.push(x?.props?.children)}else g.push(e)}),x?x=l.cloneElement(x,void 0,g):!y&&1===l.Children.count(d)&&l.isValidElement(d)&&(x=d);let v=x?(r=x,(a=(i=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in i&&i.isReactWarning)?r.ref:(a=(i=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in i&&i.isReactWarning)?r.props.ref:r.props.ref||r.ref):void 0,N=(0,s.s)(n,v);if(!x){if(d||0===d)throw Error(y?f(e):p(e));return d}let b=function(e,t){let n={...t};for(let r in t){let l=e[r],s=t[r];/^on[A-Z]/.test(r)?l&&s?n[r]=(...e)=>{let t=s(...e);return l(...e),t}:l&&(n[r]=l):"style"===r?n[r]={...l,...s}:"className"===r&&(n[r]=[l,s].filter(Boolean).join(" "))}return{...e,...n}}(c,x.props??{});return x.type!==l.Fragment&&(b.ref=n?N:v),l.cloneElement(x,b)});return t.displayName=`${e}.Slot`,t}var a=i("Slot"),o=Symbol.for("radix.slottable");function d(e){let t=e=>"child"in e?e.children(e.child):e.children;return t.displayName=`${e}.Slottable`,t.__radixId=o,t}var u=(e,t)=>{if("child"in e.props){let t=e.props.child;return l.isValidElement(t)?l.cloneElement(t,void 0,e.props.children(t.props.children)):null}return l.isValidElement(t)?t:null},c=Symbol.for("react.lazy");function m(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===c&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var p=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,f=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,h=(r||(r=n.t(l,2)))[" use ".trim().toString()]},47527:(e,t,n)=>{n.d(t,{s:()=>i,t:()=>s});var r=n(12115);function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function s(...e){return t=>{let n=!1,r=e.map(e=>{let r=l(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():l(e[t],null)}}}}function i(...e){return r.useCallback(s(...e),e)}},78340:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(12115);let l=(...e)=>e.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim();var s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,r.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:a="",children:o,iconNode:d,...u},c)=>(0,r.createElement)("svg",{ref:c,...s,width:t,height:t,stroke:e,strokeWidth:i?24*Number(n)/Number(t):n,className:l("lucide",a),...u},[...d.map(([e,t])=>(0,r.createElement)(e,t)),...Array.isArray(o)?o:[o]])),a=(e,t)=>{let n=(0,r.forwardRef)(({className:n,...s},a)=>(0,r.createElement)(i,{ref:a,iconNode:t,className:l(`lucide-${e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,n),...s}));return n.displayName=`${e}`,n}},93413:(e,t,n)=>{n.d(t,{Eu:()=>h,PartnerStatements:()=>y,rk:()=>x});var r=n(95155),l=n(12115),s=n(98500),i=n.n(s),a=n(21362),o=n(61732),d=n(45160),u=n(10241),c=n(32542),m=n(86604);let p="Australia/Sydney",f={rcti:"Tax invoice",remittance:"Remittance advice"};function h(e){if(!e)return"";let t=new Date(e);return Number.isNaN(t.getTime())?"":t.toLocaleDateString("en-AU",{day:"numeric",month:"short",year:"numeric",timeZone:p})}function x(e,t){let n=h(e),r=h(t);return n&&r?n===r?n:`${n} to ${r}`:n||r}function y(){let[e,t]=(0,l.useState)(null),[n,s]=(0,l.useState)(!1),y=(0,l.useCallback)(async()=>{s(!1);try{let e=await (0,u.gg)("/api/partner/statements");t(e.statements??[])}catch{s(!0)}},[]);return((0,l.useEffect)(()=>{y()},[y]),n)?(0,r.jsx)(o.Panel,{flush:!0,children:(0,r.jsx)(c.X,{what:"your statements",onRetry:()=>void y()})}):null===e?(0,r.jsxs)(o.Panel,{flush:!0,children:[(0,r.jsx)("ul",{className:"divide-y","aria-hidden":!0,
1children:[0,1,2].map(e=>(0,r.jsxs)("li",{className:"flex items-center justify-between gap-4 px-4 py-4 sm:px-5",children:[(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsx)("div",{className:"h-4 w-36 animate-pulse rounded bg-muted"}),(0,r.jsx)("div",{className:"mt-2 h-3 w-48 max-w-full animate-pulse rounded bg-muted"})]}),(0,r.jsx)("div",{className:"h-4 w-20 animate-pulse rounded bg-muted"})]},e))}),(0,r.jsx)("p",{className:"sr-only",role:"status",children:"Loading your statements"})]}):0===e.length?(0,r.jsx)(o.Panel,{flush:!0,children:(0,r.jsxs)("div",{className:"px-5 py-10 text-center",children:[(0,r.jsx)("p",{className:"text-sm font-medium",children:"No statements yet"}),(0,r.jsx)("p",{className:"mx-auto mt-1 max-w-sm text-sm leading-relaxed text-muted-foreground",children:"ETEC+ issues a statement each week for the payments it sent you that week. Your first one appears here after your first payment, and a copy is emailed to you."}),(0,r.jsx)("p",{className:"mt-4 text-sm",children:(0,r.jsx)(i(),{href:"/partner/earnings",className:"font-medium underline underline-offset-4",children:"See your earnings"})})]})}):(0,r.jsxs)("div",{className:"grid gap-4 lg:gap-6",children:[(function(e){let t=[];for(let n of e){let e=function(e){let t=new Date(e);return Number.isNaN(t.getTime())?"Undated":t.toLocaleDateString("en-AU",{month:"long",year:"numeric",timeZone:p})}(n.issued_at),r=t[t.length-1];r&&r.month===e?r.items.push(n):t.push({month:e,items:[n]})}return t})(e).map(e=>(0,r.jsxs)("section",{"aria-label":e.month,children:[(0,r.jsx)("h2",{className:"mb-2 px-1 text-xs font-medium text-muted-foreground",children:e.month}),(0,r.jsx)("ul",{className:"divide-y overflow-hidden rounded-xl border bg-card",children:e.items.map(e=>{let t=x(e.period_start,e.period_end);return(0,r.jsx)("li",{children:(0,r.jsxs)(i(),{href:`/partner/statements/${e.id}`,className:"group flex items-center gap-3 px-4 py-3.5 outline-none transition-colors duration-150 hover:bg-muted/50 focus-visible:bg-muted/50 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring sm:px-5",children:[(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1",children:[(0,r.jsx)("span",{className:"text-sm font-medium tabular-nums",children:e.number}),(0,r.jsx)(d.E,{variant:"muted",children:f[e.kind]})]}),(0,r.jsxs)("p",{className:"mt-1 truncate text-xs text-muted-foreground",children:["Issued ",h(e.issued_at),t?` \xb7 payments ${t}`:""]})]}),(0,r.jsx)("span",{className:"shrink-0 text-sm font-medium tabular-nums",children:(0,m.b4)(e.total_cents)}),(0,r.jsx)(a.A,{"aria-hidden":!0,className:"size-4 shrink-0 text-muted-foreground transition-transform duration-150 ease-out motion-safe:group-hover:translate-x-0.5"})]})},e.id)})})]},e.month)),(0,r.jsx)("p",{className:"px-1 text-xs leading-relaxed text-muted-foreground",children:"Amounts are in AUD. Open a statement to print it or save it as a PDF."})]})}}}]);

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.