PageSourceSearch

https://app.shieldpress.net/_next/static/chunks/29ce9q4ppa-dc.js

js shieldpress.net collected 2026-09-25 09:08:43 UTC 36,712 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,15288,e=>{"use strict";var t=e.i(43476),r=e.i(75157);e.s(["Card",0,function({className:e,size:n="default",...a}){return(0,t.jsx)("div",{"data-slot":"card","data-size":n,className:(0,r.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...a})},"CardContent",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-(--card-spacing)",e),...n})},"CardDescription",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,r.cn)("text-sm text-muted-foreground",e),...n})},"CardHeader",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",e),...n})},"CardTitle",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...n})}])},88940,e=>{"use strict";var t=e.i(71645);let r={};e.s(["useRefWithInit",0,function(e,n){let a=t.useRef(r);return a.current===r&&(a.current=e(n)),a}])},33332,e=>{"use strict";let t=function(e,...t){let r=new URL("https://base-ui.com/production-error");return r.searchParams.set("code",e.toString()),t.forEach(e=>r.searchParams.append("args[]",e)),`Base UI error #${e}; visit ${r} for the full message.`};e.s(["default",0,t])},56789,e=>{"use strict";let t=Object.freeze([]),r=Object.freeze({});e.s(["EMPTY_ARRAY",0,t,"EMPTY_OBJECT",0,r,"NOOP",0,function(){}])},28918,58321,78554,e=>{"use strict";var t=e.i(88940);function r(){return{callback:null,cleanup:null,refs:[]}}function n(e,t){if(e.refs=t,t.every(e=>null==e)){e.callback=null;return}e.callback=r=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=r){let n=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let a=t[e];if(null!=a)switch(typeof a){case"function":{let t=a(r);"function"==typeof t&&(n[e]=t);break}case"object":a.current=r}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let r=t[e];if(null!=r)switch(typeof r){case"function":{let t=n[e];"function"==typeof t?t():r(null);break}case"object":r.current=null}}}}}}e.s(["useMergedRefs",0,function(e,a,i,o){var s,l,u,c,d;let p=(0,t.useRefWithInit)(r).current;return s=p,l=e,u=a,c=i,d=o,(s.refs[0]!==l||s.refs[1]!==u||s.refs[2]!==c||s.refs[3]!==d)&&n(p,[e,a,i,o]),p.callback},"useMergedRefsN",0,function(e){var a,i;let o=(0,t.useRefWithInit)(r).current;return a=o,i=e,(a.refs.length!==i.length||a.refs.some((e,t)=>e!==i[t]))&&n(o,e),o.callback}],28918);var a=e.i(71645);let i=parseInt(a.version,10);function o(e){return i>=e}e.s(["isReactVersionAtLeast",0,o],58321),e.s(["getReactElementRef",0,function(e){if(!a.isValidElement(e))return null;let t=e.props;return(o(19)?t?.ref:e.ref)??null}],78554)},35241,e=>{"use strict";e.s(["mergeObjects",0,function(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}])},99627,e=>{"use strict";e.s(["warn",0,function(){}])},16919,9835,77570,e=>{"use strict";e.s(["getStateAttributesProps",0,function(e,t){let r={};for(let n in e){let a=e[n];if(t?.hasOwnProperty(n)){let e=t[n](a);null!=e&&Object.assign(r,e);continue}!0===a?r[`data-${n.toLowerCase()}`]="":a&&(r[`data-${n.toLowerCase()}`]=a.toString())}return r}],16919),e.s(["resolveClassName",0,function(e,t){return"function"==typeof e?e(t):e}],9835),e.s(["resolveStyle",0,function(e,t){return"function"==typeof e?e(t):e}],77570)},76782,e=>{"use strict";var t=e.i(35241);let r={};function n(e){return o(e)?{...s(e,r)}:function(e){let t={...e};for(let e in t){let r=t[e];i(e,r)&&(t[e]=l(r))}return t}(e)}function a(e,r){return o(r)?s(r,e):function(e,r){if(!r)return e;for(let n in r){let a=r[n];switch(n){case"style":e[n]=(0,t.mergeObjects)(e.style,a);break;case"className":e[n]=c(e.className,a);break;default:i(n,a)?e[n]=function(e,t){return t?e?(...r)=>{let n=r[0];if(d(n)){u(n);let a=t(...r);return n.baseUIHandlerPrevented||e?.(...r),a}let a=t(...r);return e?.(...r),a}:l(t):e}(e[n],a):e[n]=a}}return e}(e,r)}function i(e,t){let r=e.charCodeAt(0),n=e.charCodeAt(1),a=e.charCodeAt(2);return 111===r&&110===n&&a>=65&&a<=90&&("function"==typeof t||void 0===t)}function o(e){return"function"==typeof e}function s(e,t){return o(e)?e(t):e??r}function l(e){return e?(...t)=>{let r=t[0];return d(r)&&u(r),e(...t)}:e}function u(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function c(e,t){return t?e?t+" "+e:t:e}function d(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}e.s(["makeEventPreventable",0,u,"mergeClassNames",0,c,"mergeProps",0,function(e,t,r,i,o){if(!r&&!i&&!o&&!e)return n(t);let s=n(e);return t&&(s=a(s,t)),r&&(s=a(s,r)),i&&(s=a(s,i)),o&&(s=a(s,o)),s},"mergePropsN",0,function(e){if(0===e.length)return r;if(1===e.length)return n(e[0]);let t=n(e[0]);for(let r=1;r<e.length;r+=1)t=a(t,e[r]);return t}])},52245,25913,e=>{"use strict";e.i(47167);var t=e.i(33332),r=e.i(71645),n=e.i(28918),a=e.i(78554),i=e.i(35241);e.i(99627);var o=e.i(56789),s=e.i(16919),l=e.i(9835),u=e.i(77570),c=e.i(76782);let d=Symbol.for("react.lazy");e.s(["useRenderElement",0,function(e,p,f={}){let m=p.render,g=function(e,t={}){var r;let{className:d,style:p,render:f}=e,{state:m=o.EMPTY_OBJECT,ref:g,props:h,stateAttributesMapping:v,enabled:b=!0}
1=t,y=b?(0,l.resolveClassName)(d,m):void 0,x=b?(0,u.resolveStyle)(p,m):void 0,k=b?(0,s.getStateAttributesProps)(m,v):o.EMPTY_OBJECT,S=b&&h?Array.isArray(r=h)?(0,c.mergePropsN)(r):(0,c.mergeProps)(void 0,r):void 0,T=b?(0,i.mergeObjects)(k,S)??{}:o.EMPTY_OBJECT;return("u">typeof document&&(b?Array.isArray(g)?T.ref=(0,n.useMergedRefsN)([T.ref,(0,a.getReactElementRef)(f),...g]):T.ref=(0,n.useMergedRefs)(T.ref,(0,a.getReactElementRef)(f),g):(0,n.useMergedRefs)(null,null)),b)?(void 0!==y&&(T.className=(0,c.mergeClassNames)(T.className,y)),void 0!==x&&(T.style=(0,i.mergeObjects)(T.style,x)),T):o.EMPTY_OBJECT}(p,f);return!1===f.enabled?null:function(e,n,a,i){if(n){if("function"==typeof n)return n(a,i);let e=(0,c.mergeProps)(a,n.props);e.ref=a.ref;let t=n;return t?.$$typeof===d&&(t=r.Children.toArray(n)[0]),r.cloneElement(t,e)}if(e&&"string"==typeof e){var o,s;return o=e,s=a,"button"===o?(0,r.createElement)("button",{type:"button",...s,key:s.key}):"img"===o?(0,r.createElement)("img",{alt:"",...s,key:s.key}):r.createElement(o,s)}throw Error((0,t.default)(8))}(e,m,g,f.state??o.EMPTY_OBJECT)}],52245);var p=e.i(7670);let f=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,m=p.clsx;e.s(["cva",0,(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return m(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:a,defaultVariants:i}=t,o=Object.keys(a).map(e=>{let t=null==r?void 0:r[e],n=null==i?void 0:i[e];if(null===t)return null;let o=f(t)||f(n);return a[e][o]}),s=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return m(e,o,null==t||null==(n=t.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:r,className:n,...a}=t;return Object.entries(a).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...i,...s}[t]):({...i,...s})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}],25913)},46376,e=>{"use strict";var t=e.i(71645);let r="u">typeof document?t.useLayoutEffect:()=>{};e.s(["useIsoLayoutEffect",0,r])},67865,14553,e=>{"use strict";e.i(47167);let t={...e.i(71645)};e.s(["SafeReact",0,t],14553);var r=e.i(88940);let n=t.useInsertionEffect,a=n&&n!==t.useLayoutEffect?n:e=>e();function i(){let e={next:void 0,callback:o,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function o(){}e.s(["useStableCallback",0,function(e){let t=(0,r.useRefWithInit)(i).current;return t.next=e,a(t.effect),t.trampoline}],67865)},29315,e=>{"use strict";let t;function r(){return"u">typeof window}function n(e){return o(e)?(e.nodeName||"").toLowerCase():"#document"}function a(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function i(e){var t;return null==(t=(o(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function o(e){return!!r()&&(e instanceof Node||e instanceof a(e).Node)}function s(e){return!!r()&&(e instanceof Element||e instanceof a(e).Element)}function l(e){return!!r()&&(e instanceof HTMLElement||e instanceof a(e).HTMLElement)}function u(e){return!(!r()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof a(e).ShadowRoot)}function c(e){let{overflow:t,overflowX:r,overflowY:n,display:a}=b(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==a&&"contents"!==a}function d(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let p=/transform|translate|scale|rotate|perspective|filter/,f=/paint|layout|strict|content/,m=e=>!!e&&"none"!==e;function g(e){let t=s(e)?b(e):e;return m(t.transform)||m(t.translate)||m(t.scale)||m(t.rotate)||m(t.perspective)||!h()&&(m(t.backdropFilter)||m(t.filter))||p.test(t.willChange||"")||f.test(t.contain||"")}function h(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function v(e){return/^(html|body|#document)$/.test(n(e))}function b(e){return a(e).getComputedStyle(e)}function y(e){if("html"===n(e))return e;let t=e.assignedSlot||e.parentNode||u(e)&&e.host||i(e);return u(t)?t.host:t}function x(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}e.s(["getComputedStyle",0,b,"getContainingBlock",0,function(e){let t=y(e);for(;l(t)&&!v(t);){if(g(t))return t;if(d(t))break;t=y(t)}return null},"getDocumentElement",0,i,"getFrameElement",0,x,"getNodeName",0,n,"getNodeScroll",0,function(e){return s(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}},"getOverflowAncestors",0,function e(t,r,n){var i;void 0===r&&(r=[]),void 0===n&&(n=!0);let o=function e(t){let r=y(t);
1return v(r)?t.ownerDocument?t.ownerDocument.body:t.body:l(r)&&c(r)?r:e(r)}(t),s=o===(null==(i=t.ownerDocument)?void 0:i.body),u=a(o);if(!s)return r.concat(o,e(o,[],n));{let t=x(u);return r.concat(u,u.visualViewport||[],c(o)?o:[],t&&n?e(t):[])}},"getParentNode",0,y,"getWindow",0,a,"isContainingBlock",0,g,"isElement",0,s,"isHTMLElement",0,l,"isLastTraversableNode",0,v,"isNode",0,o,"isOverflowElement",0,c,"isShadowRoot",0,u,"isTableElement",0,function(e){return/^(table|td|th)$/.test(n(e))},"isTopLayer",0,d,"isWebKit",0,h])},19455,38452,40886,e=>{"use strict";var t=e.i(43476);e.i(47167);var r=e.i(71645),n=e.i(29315),a=e.i(67865),i=e.i(46376),o=e.i(76782),s=e.i(33332);let l=r.createContext(void 0);function u(e=!1){let t=r.useContext(l);if(void 0===t&&!e)throw Error((0,s.default)(16));return t}function c(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:s=0,native:l=!0,composite:p}=e,f=r.useRef(null),m=u(!0),g=p??void 0!==m,{props:h}=function(e){let{focusableWhenDisabled:t,disabled:n,composite:a=!1,tabIndex:i=0,isNativeButton:o}=e,s=a&&!1!==t,l=a&&!1===t;return{props:r.useMemo(()=>{let e={onKeyDown(e){n&&t&&"Tab"!==e.key&&e.preventDefault()}};return a||(e.tabIndex=i,!o&&n&&(e.tabIndex=t?i:-1)),(o&&(t||s)||!o&&n)&&(e["aria-disabled"]=n),o&&(!t||l)&&(e.disabled=n),e},[a,n,t,s,l,o,i])}}({focusableWhenDisabled:n,disabled:t,composite:g,tabIndex:s,isNativeButton:l}),v=r.useCallback(()=>{let e=f.current;d(e)&&g&&t&&void 0===h.disabled&&e.disabled&&(e.disabled=!1)},[t,h.disabled,g]);return(0,i.useIsoLayoutEffect)(v,[v]),{getButtonProps:r.useCallback((e={})=>{let{onClick:r,onMouseDown:n,onKeyUp:a,onKeyDown:i,onPointerDown:s,...u}=e;return(0,o.mergeProps)({onClick(e){t?e.preventDefault():r?.(e)},onMouseDown(e){t||n?.(e)},onKeyDown(e){var n;if(t||((0,o.makeEventPreventable)(e),i?.(e),e.baseUIHandlerPrevented))return;let a=e.target===e.currentTarget,s=e.currentTarget,u=d(s),c=!l&&(n=s,!!(n?.tagName==="A"&&n?.href)),p=a&&(l?u:!c),f="Enter"===e.key,m=" "===e.key,h=s.getAttribute("role"),v=h?.startsWith("menuitem")||"option"===h||"gridcell"===h;if(a&&g&&m){if(e.defaultPrevented&&v)return;e.preventDefault(),c||l&&u?(s.click(),e.preventBaseUIHandler()):p&&(r?.(e),e.preventBaseUIHandler());return}p&&(!l&&(m||f)&&e.preventDefault(),!l&&f&&r?.(e))},onKeyUp(e){t||(((0,o.makeEventPreventable)(e),a?.(e),e.target===e.currentTarget&&l&&g&&d(e.currentTarget)&&" "===e.key)?e.preventDefault():!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||l||g||" "!==e.key||r?.(e)))},onPointerDown(e){t?e.preventDefault():s?.(e)}},l?{type:"button"}:{role:"button"},h,u)},[t,h,g,l]),buttonRef:(0,a.useStableCallback)(e=>{f.current=e,v()})}}function d(e){return(0,n.isHTMLElement)(e)&&"BUTTON"===e.tagName}e.s(["CompositeRootContext",0,l,"useCompositeRootContext",0,u],38452),e.s(["useButton",0,c],40886);var p=e.i(52245);let f=r.forwardRef(function(e,t){let{render:r,className:n,disabled:a=!1,focusableWhenDisabled:i=!1,nativeButton:o=!0,style:s,...l}=e,{getButtonProps:u,buttonRef:d}=c({disabled:a,focusableWhenDisabled:i,native:o});return(0,p.useRenderElement)("button",e,{state:{disabled:a},ref:[t,d],props:[l,u]})});var m=e.i(25913),g=e.i(75157);let h=(0,m.cva)("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",de
1structive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 gap-1.5 px-4 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",xs:"h-7 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1 rounded-[min(var(--radius-md),12px)] px-3 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-11 gap-2 px-5 text-base has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",icon:"size-10","icon-xs":"size-7 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-11"}},defaultVariants:{variant:"default",size:"default"}});e.s(["Button",0,function({className:e,variant:r="default",size:n="default",...a}){return(0,t.jsx)(f,{"data-slot":"button",className:(0,g.cn)(h({variant:r,size:n,className:e})),...a})}],19455)},10204,e=>{"use strict";var t=e.i(43476),r=e.i(75157);e.s(["Label",0,function({className:e,...n}){return(0,t.jsx)("label",{"data-slot":"label",className:(0,r.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...n})}])},9165,e=>{"use strict";let t="sp_plan_usage_updated";async function r(e,t={}){let{method:n="GET",body:a,headers:i={},...o}=t,s=localStorage.getItem("sp_token"),l=await fetch(`https://api.shieldpress.net${e}`,{method:n,headers:{"Content-Type":"application/json",...s?{Authorization:`Bearer ${s}`}:{},...i},...a?{body:JSON.stringify(a)}:{},...o}),u=await l.json().catch(()=>null);return 401===l.status&&(localStorage.removeItem("sp_token"),localStorage.removeItem("sp_user"),window.location.href="/auth/login"),{data:u,ok:l.ok,status:l.status}}e.s(["PLAN_USAGE_UPDATED_EVENT",0,t,"api",0,r,"apiClient",0,{login:e=>r("/api/auth/login",{method:"POST",body:e}),register:e=>r("/api/auth/register",{method:"POST",body:e}),getDashboard:()=>r("/api/dashboard"),getDashboardSites:()=>r("/api/dashboard/sites"),getSites:()=>r("/api/sites"),getSite:e=>r(`/api/sites/${e}`),createSite:e=>r("/api/sites",{method:"POST",body:e}),pairSite:e=>r("/api/sites/pair",{method:"POST",body:e}),syncSite:e=>r(`/api/sites/${e}/sync`,{method:"POST"}),disconnectSite:e=>r(`/api/sites/${e}/disconnect`,{method:"POST"}),reconnectSite:e=>r(`/api/sites/${e}/reconnect`,{method:"POST"}),starSite:e=>r(`/api/sites/${e}/star`,{method:"PATCH"}),deleteSite:e=>r(`/api/sites/${e}`,{method:"DELETE"}),quickLogin:e=>r(`/api/sites/${e}/quick-login`,{method:"POST"}),getVpsList:()=>r("/api/vps"),getVps:e=>r(`/api/vps/${e}`),createVps:e=>r("/api/vps",{method:"POST",body:e}),getVpsMetrics:(e,t=100)=>r(`/api/vps/${e}/metrics?limit=${t}`),starVps:e=>r(`/api/vps/${e}/star`,{method:"PATCH"}),deleteVps:e=>r(`/api/vps/${e}`,{method:"DELETE"}),regenerateVpsSecret:e=>r(`/api/vps/${e}/regenerate-secret`,{method:"POST"}),getAlerts:(e=1,t=50)=>r(`/api/alerts/list?page=${e}&limit=${t}`),getUnreadAlerts:()=>r("/api/alerts/unread"),markAlertsRead:e=>r("/api/alerts/mark-read",{method:"POST",body:e}),getTasks:()=>r("/api/tasks"),createTask:e=>r("/api/tasks",{method:"POST",body:e}),updateTask:(e,t)=>r(`/api/tasks/${e}`,{method:"PATCH",body:t}),deleteTask:e=>r(`/api/tasks/${e}`,{method:"DELETE"}),getProfile:()=>r("/api/account/profile"),updateProfile:e=>r("/api/account/profile",{method:"PUT",body:e}),changePassword:e=>r("/api/account/password",{method:"PUT",body:e}),getCustomers:()=>r("/api/customers"),createCustomer:e=>r("/api/customers",{method:"POST",body:e}),getPlans:()=>r("/api/upgrade"),validateCoupon:e=>r("/api/upgrade/coupon",{method:"POST",body:{code:e}}),createOrder:e=>r("/api/upgrade/order",{method:"POST",body:e}),getNotificationSettings:()=>r("/api/notifications/settings"),updateNotificationSettings:e=>r("/api/notifications/settings",{method:"POST",body:e}),getChannels:()=>r("/api/notifications/channels"),saveChannel:e=>r("/api/notifications/channels",{method:"POST",body:e}),deleteChannel:e=>r(`/api/notifications/channels/${e}`,{method:"DELETE"}),testChannel:e=>r(`/api/notifications/channels/${e}/test`,{method:"POST"}),getTrackerApps:()=>r("/api/tracker/apps"),getTrackerApp:e=>r(`/api/tracker/apps/${e}`),createTrackerApp:e=>r("/api/tracker/apps",{method:"POST",body:e}),updateTrackerApp:(e,t)=>r(`/api/tracker/apps/${e}`,{method:"PATCH",body:t}),deleteTrackerApp:e=>r(`/api/tracker/apps/${e}`,{method:"DELETE"}),getTrackerMetrics:(e,t=24,n=100)=>r(`/api/tracker/apps/${e}/metrics?hours=${t}&limit=${n}
1`),getTrackerDns:e=>r(`/api/tracker/apps/${e}/dns`),admin:{getUsers:(e=1)=>r(`/api/admin/users?page=${e}`),getSettings:()=>r("/api/admin/settings"),saveSettings:e=>r("/api/admin/settings",{method:"POST",body:e}),getPosts:()=>r("/api/admin/posts"),createPost:e=>r("/api/admin/posts",{method:"POST",body:e}),updatePost:(e,t)=>r(`/api/admin/posts/${e}`,{method:"PATCH",body:t}),deletePost:e=>r(`/api/admin/posts/${e}`,{method:"DELETE"}),getCategories:()=>r("/api/admin/categories"),getContacts:()=>r("/api/admin/contacts"),getOrders:()=>r("/api/admin/orders"),getQueues:()=>r("/api/admin/queues"),getTeamLimits:e=>r(`/api/admin/teams/${e}/limits`),setTeamLimits:(e,t)=>r(`/api/admin/teams/${e}/limits`,{method:"PATCH",body:t})}},"clearAuth",0,function(){localStorage.removeItem("sp_token"),localStorage.removeItem("sp_user"),document.cookie="sp_auth=; path=/; max-age=0"},"getStoredUser",0,function(){let e=localStorage.getItem("sp_user");if(!e)return null;try{return JSON.parse(e)}catch{return null}},"isAuthenticated",0,function(){return!!localStorage.getItem("sp_token")},"notifyPlanUsageUpdated",0,function(){window.dispatchEvent(new Event(t))},"setAuth",0,function(e,t){localStorage.setItem("sp_token",e),localStorage.setItem("sp_user",JSON.stringify(t)),document.cookie="sp_auth=1; path=/; max-age=2592000; SameSite=Lax; Secure"}])},18566,(e,t,r)=>{t.exports=e.r(76562)},95057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return s},formatWithValidation:function(){return u},urlObjectKeys:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(90809)._(e.r(98183)),o=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",s=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(i.urlQueryToSearchParams(l)));let c=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),a=a.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${a}${c}${s}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return s(e)}},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return a}});let n=e.r(71645);function a(e,t){let r=(0,n.useRef)(null),a=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=i(e,n)),t&&(a.current=i(t,n))},[e,t])}function i(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return i}});let n=e.r(18967),a=e.r(52817);function i(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,a.hasBasePath)(r.pathname)}catch(e){return!1}}},84508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return v},useLinkStatus:function(){return y}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(90809),o=e.r(43476),s=i._(e.r(71645)),l=e.r(95057),u=e.r(8372),c=e.r(18581),d=e.r(18967),p=e.r(5550);e.r(33525);let f=e.r(88540),m=e.r(91949),g=e.r(73668),h=e.r(9396);function v(t){var r,n;let a,i,v,[y,x]=(0,s.useOptimistic)(m.IDLE_LINK_STATUS),k=(0,s.useRef)(null),{href:S,as:T,children:C,prefetch:j=null,passHref:w,replace:E,shallow:P,scroll:N,onClick:O,onMouseEnter:_,onTouchStart:A,legacyBehavior:L=!1,onNavigate:$,transitionTypes:R,ref:I,unstable_dynamicOnHover:D,...M}=t;a=C,L&&("string"==typeof a||"number"==typeof a)&&(a=(0,o.jsx)("a",{children:a}));let U=s.default.useContext(u.AppRouterContext),z=!1!==j,B=!1!==j?null===(n=j)||"auto"===n?h.FetchStrategy.PPR:h.FetchStrategy.Full:h.FetchStrategy.PPR,H="str
1ing"==typeof(r=T||S)?r:(0,l.formatUrl)(r);if(L){if(a?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});i=s.default.Children.only(a)}let F=L?i&&"object"==typeof i&&i.ref:I,V=s.default.useCallback(e=>(null!==U&&(k.current=(0,m.mountLinkInstance)(e,H,U,B,z,x)),()=>{k.current&&((0,m.unmountLinkForCurrentNavigation)(k.current),k.current=null),(0,m.unmountPrefetchableInstance)(e)}),[z,H,U,B,x]),K={ref:(0,c.useMergedRef)(V,F),onClick(t){L||"function"!=typeof O||O(t),L&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(t),!U||t.defaultPrevented||function(t,r,n,a,i,o,l){if("u">typeof window){let u,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,g.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(99781);s.default.startTransition(()=>{d(r,a?"replace":"push",!1===i?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,n.current,l)})}}(t,H,k,E,N,$,R)},onMouseEnter(e){L||"function"!=typeof _||_(e),L&&i.props&&"function"==typeof i.props.onMouseEnter&&i.props.onMouseEnter(e),U&&z&&(0,m.onNavigationIntent)(e.currentTarget,!0===D)},onTouchStart:function(e){L||"function"!=typeof A||A(e),L&&i.props&&"function"==typeof i.props.onTouchStart&&i.props.onTouchStart(e),U&&z&&(0,m.onNavigationIntent)(e.currentTarget,!0===D)}};return(0,d.isAbsoluteUrl)(H)?K.href=H:L&&!w&&("a"!==i.type||"href"in i.props)||(K.href=(0,p.addBasePath)(H)),v=L?s.default.cloneElement(i,K):(0,o.jsx)("a",{...M,...K,children:a}),(0,o.jsx)(b.Provider,{value:y,children:v})}e.r(84508);let b=(0,s.createContext)(m.IDLE_LINK_STATUS),y=()=>(0,s.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},43108,53651,e=>{"use strict";var t=e.i(22016);e.i(18566),e.s([],43108),e.s(["Link",()=>t.default],53651)},29592,e=>{"use strict";var t=e.i(43476),r=e.i(25913),n=e.i(75157);let a=(0,r.cva)("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"}},defaultVariants:{variant:"default"}});e.s(["Alert",0,function({className:e,variant:r,...i}){return(0,t.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,n.cn)(a({variant:r}),e),...i})},"AlertDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-description",className:(0,n.cn)("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",e),...r})}])},54666,e=>{"use strict";var t=e.i(43476),r=e.i(71645);e.s(["default",0,function({siteKey:e,onVerify:n,onExpire:a,onError:i}){let o=(0,r.useRef)(null),s=(0,r.useRef)(null),l=(0,r.useCallback)(()=>{o.current&&window.turnstile&&(null!==s.current&&window.turnstile.remove(s.current),s.current=window.turnstile.render(o.current,{sitekey:e,callback:n,"expired-callback":a,"error-callback":i,theme:"auto"}))},[e,n,a,i]);return(0,r.useEffect)(()=>{if(window.turnstile)return l(),()=>{null!==s.current&&window.turnstile&&(window.turnstile.remove(s.current),s.current=null)};let e=document.querySelector('script[src*="challenges.cloudflare.com/turnstile"]');
1if(e)return void e.addEventListener("load",l);let t=document.createElement("script");return t.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",t.async=!0,t.onload=l,document.head.appendChild(t),()=>{null!==s.current&&window.turnstile&&(window.turnstile.remove(s.current),s.current=null)}},[l]),(0,t.jsx)("div",{ref:o,className:"flex justify-center my-2"})}])},45301,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(44396);e.i(43108);var a=e.i(53651),i=e.i(9165),o=e.i(15288),s=e.i(93479),l=e.i(10204),u=e.i(19455),c=e.i(29592),d=e.i(49721),p=e.i(68757),f=e.i(54666);let m="https://api.shieldpress.net";e.s(["default",0,function(){let e=(0,n.useTranslations)("auth"),g=(0,n.useTranslations)("common"),[h,v]=(0,r.useState)(""),[b,y]=(0,r.useState)(""),[x,k]=(0,r.useState)(!1),[S,T]=(0,r.useState)(""),[C,j]=(0,r.useState)(""),[w,E]=(0,r.useState)("login"),[P,N]=(0,r.useState)(""),[O,_]=(0,r.useState)(!1),[A,L]=(0,r.useState)(0),[$,R]=(0,r.useState)(""),[I,D]=(0,r.useState)("");(0,r.useEffect)(()=>{fetch(`${m}/api/admin/settings?keys=turnstile_site_key,turnstile_enabled`).then(e=>e.json()).then(e=>{"true"===e.turnstile_enabled&&e.turnstile_site_key&&D(e.turnstile_site_key)}).catch(()=>{})},[]),(0,r.useEffect)(()=>{if(A<=0)return;let e=setInterval(()=>L(e=>e-1),1e3);return()=>clearInterval(e)},[A]);let M=(0,r.useCallback)(async()=>{L(300);try{await fetch(`${m}/api/auth/send-code`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:h,type:"register"})})}catch{}},[h]),U=async t=>{t.preventDefault(),N(""),_(!0);try{if("verify"===w){let t=await fetch(`${m}/api/auth/verify-code`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:h,code:C,type:"register"})});if(!t.ok){let r=await t.json().catch(()=>({}));N(r.error||e("invalidCode")),j("");return}}let t=await fetch(`${m}/api/auth/login`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:h,password:b,totpCode:"2fa"===w?S:void 0,turnstileToken:$||void 0})}),r=await t.json().catch(()=>({}));if(!t.ok)return void("EMAIL_NOT_VERIFIED"===r.error?(E("verify"),j(""),M()):"ACCOUNT_DELETED"===r.error||r.error?.includes("deleted")?N(e("accountDeleted")):"2fa"===w?(N(e("invalid2FACode")),T("")):N(e("invalidCredentials")));if(r.requires2FA){E("2fa"),T(""),N("");return}r.token&&r.user&&((0,i.setAuth)(r.token,r.user),window.location.href="/dashboard")}catch{N(e("invalidCredentials"))}finally{_(!1)}},z="2fa"===w?e("2faTitle"):"verify"===w?e("verifyEmailTitle"):e("loginTitle"),B="2fa"===w?e("2faSubtitle"):"verify"===w?e("verifyEmailLoginSubtitle"):e("loginSubtitle");return(0,t.jsxs)("div",{className:"w-full max-w-lg space-y-6",children:[(0,t.jsxs)(o.Card,{children:[(0,t.jsxs)(o.CardHeader,{className:"space-y-2 text-center",children:[(0,t.jsx)(o.CardTitle,{className:"text-2xl font-semibold tracking-normal",children:z}),(0,t.jsx)(o.CardDescription,{className:"mx-auto max-w-sm text-sm leading-6",children:B})]}),(0,t.jsxs)(o.CardContent,{children:[(0,t.jsxs)("form",{onSubmit:U,className:"space-y-4",children:[P&&(0,t.jsx)(c.Alert,{variant:"destructive",children:(0,t.jsx)(c.AlertDescription,{children:P})}),"login"===w&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(l.Label,{htmlFor:"email",children:e("email")}),(0,t.jsx)(s.Input,{id:"email",type:"email",placeholder:"[email protected]",value:h,onChange:e=>v(e.target.value),required:!0,autoComplete:"email",className:"h-12"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(l.Label,{htmlFor:"password",children:e("password")}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(s.Input,{id:"password",type:x?"text":"password",value:b,onChange:e=>y(e.target.value),required:!0,autoComplete:"current-password",className:"h-12 pr-12"}),(0,t.jsx)("button",{type:"button",onClick:()=>k(e=>!e),"aria-label":x?"Hide password":"Show password","aria-pressed":x,className:"absolute inset-y-0 right-0 flex w-12 cursor-pointer items-center justify-center text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",children:(0,t.jsx)(d.FontAwesomeIcon,{icon:x?p.faEyeSlash:p.faEye,className:"size-4"})})]}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(a.Link,{href:"/auth/forgot-password",className:"text-sm text-muted-foreground hover:text-primary transition-colors",children:e("forgotPassword")})})]}),I&&(0,t.jsx)(f.default,{siteKey:I,onVerify:e=>R(e),onExpire:()=>R("")})]}),"2fa"===w&&(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("p",{className:"text-sm font-medium text-foreground",children:"Security check"}),(0,t.jsx)("p",{className:"mt-1 truncate text-sm text-muted-foreground",children:h})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)(l.Label,{htmlFor:"totpCode",className:"text-center block",children:e("2faCode")}),(0,t.jsx)(s.Input,{id:"totpCode",type:"text",inputMode:"numeric",pattern:"[0-9]*",maxLength:6,placeholder:"0  0  0  0  0  0",value:S,onChange:e=>T(e.target.value.replace(/\D/g,"")),required:!0,autoComplete:"one-time-code",className:"h-16 rounded-xl text-center font-mono text-3xl tracking-[0.5em]",autoFocus:!0}),(0,t.jsx)("p",{className:"pt-1 text-center text-xs leading-5 text-muted-foreground",children:"Open your authenticator app and enter the current 6-digit code."})]}),(0,t.jsx)("button",{type:"button",onClick:()=>{E("login"),T(""),N("")},className:"w-full cursor-pointer text-center text-sm text-muted-foreground transition-colors hover:text-primary",children:e("backToLogin")})]}),"verify"===w&&(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("div",{className:"text-center",children:(0,t.jsxs)("p",{className:"text-sm text-muted-foreground",children:[e("codeSentTo")," ",(0,t.jsx)("strong",{className:"text-foreground",children:h})]})}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)(l.Label,{htmlFor:"verifyCode",className:"text-center block",children:e("verificationCode")}),(0,t.jsx)(s.Input,{id:"verifyCode",type:"text",inputMode:"numeric",pattern:"[0-9]*",maxLength:6,placeholder:"0  0  0  0  0  0",value:C,onChange:e=>j(e.target.value.replace(/\D/g,"")),required:!0,autoComplete:"one-time-code",className:"h-16 rounded-xl text-center font-mono text-3xl tracking-[0.5em]",autoFocus:!0}),(0,t.jsx)("p",{className:"pt-1 text-center text-xs leading-5 text-muted-foreground",children:e("enterCodeFromEmail")})]}),(0,t.jsx)("div",{className:"text-center",children:A>0?(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e("resendIn",{time:`${Math.floor(A/60)}:${String(A%60).padStart(2,"0")}`})}):(0,t.jsx)("button",{type:"button",onClick:M,className:"text-xs font-medium text-primary hover:underline cursor-pointer",children:e("resendCode")})}),(0,t.jsx)("button",{type:"button",onClick:()=>{E("login"),j(""),N(""),L(0)},className:"w-full cursor-pointer text-center text-sm text-muted-foreground transition-colors hover:text-primary",children:e("backToLogin")})]}),(0,t.jsx)(u.Button,{type:"submit",className:`h-12 w-full ${"login"!==w?"rounded-xl bg-brand text-white hover:bg-brand/90":""}`,disabled:O||"verify"===w&&6!==C.length||"login"===w&&!!I&&!$,children:O?g("loading"):"2fa"===w?e("verify"):"verify"===w?e("verifyAndActivate"):e("signIn")})]}),"login"===w&&(0,t.jsxs)("div",{className:"mt-6 text-center text-sm text-muted-foreground",children:[e("noAccount")," ",(0,t.jsx)(a.Link,{href:"/auth/register",className:"font-medium text-primary hover:underline",children:e("signUp")})]})]})]}),(0,t.jsx)("div",{className:"text-center",children:(0,t.jsx)("a",{href:"https://shieldpress.net",className:"inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-primary transition-colors",children:g("back")})})]})}])}]);

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.