PageSourceSearch

https://www.risehq.io/_next/static/chunks/3275e9480eb109e9.js

js risehq.io collected 2026-10-02 00:11:58 UTC 33,603 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(71645),s=e.i(75157);let n=r.forwardRef(({className:e,...r},n)=>(0,t.jsx)("div",{ref:n,className:(0,s.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",e),...r}));n.displayName="Card";let a=r.forwardRef(({className:e,...r},n)=>(0,t.jsx)("div",{ref:n,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",e),...r}));a.displayName="CardHeader";let i=r.forwardRef(({className:e,...r},n)=>(0,t.jsx)("h3",{ref:n,className:(0,s.cn)("text-2xl font-semibold leading-none tracking-tight",e),...r}));i.displayName="CardTitle";let o=r.forwardRef(({className:e,...r},n)=>(0,t.jsx)("p",{ref:n,className:(0,s.cn)("text-sm text-muted-foreground",e),...r}));o.displayName="CardDescription";let l=r.forwardRef(({className:e,...r},n)=>(0,t.jsx)("div",{ref:n,className:(0,s.cn)("p-6 pt-0",e),...r}));l.displayName="CardContent",r.forwardRef(({className:e,...r},n)=>(0,t.jsx)("div",{ref:n,className:(0,s.cn)("flex items-center p-6 pt-0",e),...r})).displayName="CardFooter",e.s(["Card",()=>n,"CardContent",()=>l,"CardDescription",()=>o,"CardHeader",()=>a,"CardTitle",()=>i])},68401,e=>{e.v("/_next/static/media/rise-pos-logo.5c58b4be.png")},33525,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return s}});let s=e=>{}},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return n}});let s=e.r(71645);function n(e,t){let r=(0,s.useRef)(null),n=(0,s.useRef)(null);return(0,s.useCallback)(s=>{if(null===s){let e=r.current;e&&(r.current=null,e());let t=n.current;t&&(n.current=null,t())}else e&&(r.current=a(e,s)),t&&(n.current=a(t,s))},[e,t])}function a(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)},98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s={assign:function(){return l},searchParamsToUrlQuery:function(){return a},urlQueryToSearchParams:function(){return o}};for(var n in s)Object.defineProperty(r,n,{enumerable:!0,get:s[n]});function a(e){let t={};for(let[r,s]of e.entries()){let e=t[r];void 0===e?t[r]=s:Array.isArray(e)?e.push(s):t[r]=[e,s]}return t}function i(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,s]of Object.entries(e))if(Array.isArray(s))for(let e of s)t.append(r,i(e));else t.set(r,i(s));return t}function l(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,s]of r.entries())e.append(t,s)}return e}},95057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s={formatUrl:function(){return o},formatWithValidation:function(){return c},urlObjectKeys:function(){return l}};for(var n in s)Object.defineProperty(r,n,{enumerable:!0,get:s[n]});let a=e.r(51836)._(e.r(98183)),i=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,s=e.protocol||"",n=e.pathname||"",o=e.hash||"",l=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=String(a.urlQueryToSearchParams(l)));let u=e.search||l&&`?${l}`||"";return s&&!s.endsWith(":")&&(s+=":"),e.slashes||(!s||i.test(s))&&!1!==c?(c="//"+(c||""),n&&"/"!==n[0]&&(n="/"+n)):c||(c=""),o&&"#"!==o[0]&&(o="#"+o),u&&"?"!==u[0]&&(u="?"+u),n=n.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${s}${c}${n}${u}${o}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return o(e)}},18967,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0});var s={DecodeError:function(){return x},MiddlewareNotFoundError:function(){return j},MissingStaticPage:function(){return v},NormalizeError:function(){return y},PageNotFoundError:function(){return b},SP:function(){return m},ST:function(){return g},WEB_VITALS:function(){return a},execOnce:function(){return i},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return l},isResSent:function(){return h},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return R}};for(var n in s)Object.defineProperty(r,n,{enumerable:!0,get:s[n]});let a=["CLS","FCP","FID","INP","LCP","TTFB"];function i(e){let t,r=!1;return(...s)=>(r||(r=!0,t=e(...s)),t)}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>o.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function h(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function f(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let s=await e.getInitialProps(t);if(r&&h(r))return s;if(!s)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${s}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return s}let m="u">typeof performance,g=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class x extends Error{}class y extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class v extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class j extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function R(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let s=e.r(18967),n=e.r(52817);function a(e){if(!(0,s.isAbsoluteUrl)(e))return!0;try{let t=(0,s.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,n.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 s}});let s=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s={default:function(){return x},useLinkStatus:function(){return b}};for(var n in s)Object.defineProperty(r,n,{enumerable:!0,get:s[n]});let a=e.r(51836),i=e.r(43476),o=a._(e.r(71645)),l=e.r(95057),c=e.r(8372),u=e.r(18581),d=e.r(18967),h=e.r(5550);e.r(33525);let p=e.r(91949),f=e.r(73668),m=e.r(9396);function g(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}function x(t){var r;let s,n,a,[l,x]=(0,o.useOptimistic)(p.IDLE_LINK_STATUS),b=(0,o.useRef)(null),{href:v,as:j,children:R,prefetch:w=null,passHref:N,replace:C,shallow:T,scroll:S,onClick:P,onMouseEnter:E,onTouchStart:O,legacyBehavior:I=!1,onNavigate:_,ref:Q,unstable_dynamicOnHover:k,...L}=t;s=R,I&&("string"==typeof s||"number"==typeof s)&&(s=(0,i.jsx)("a",{children:s}));let M=o.default.useContext(c.AppRouterContext),D=!1!==w,U=!1!==w?null===(r=w)||"auto"===r?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,{href:F,as:A}=o.default.useMemo(()=>{let e=g(v);return{href:e,as:j?g(j):e}},[v,j]);if(I){if(s?.$$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>
1` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});n=o.default.Children.only(s)}let $=I?n&&"object"==typeof n&&n.ref:Q,q=o.default.useCallback(e=>(null!==M&&(b.current=(0,p.mountLinkInstance)(e,F,M,U,D,x)),()=>{b.current&&((0,p.unmountLinkForCurrentNavigation)(b.current),b.current=null),(0,p.unmountPrefetchableInstance)(e)}),[D,F,M,U,x]),B={ref:(0,u.useMergedRef)(q,$),onClick(t){I||"function"!=typeof P||P(t),I&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(t),!M||t.defaultPrevented||function(t,r,s,n,a,i,l){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,f.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(99781);o.default.startTransition(()=>{d(s||r,a?"replace":"push",i??!0,n.current)})}}(t,F,A,b,C,S,_)},onMouseEnter(e){I||"function"!=typeof E||E(e),I&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),M&&D&&(0,p.onNavigationIntent)(e.currentTarget,!0===k)},onTouchStart:function(e){I||"function"!=typeof O||O(e),I&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),M&&D&&(0,p.onNavigationIntent)(e.currentTarget,!0===k)}};return(0,d.isAbsoluteUrl)(A)?B.href=A:I&&!N&&("a"!==n.type||"href"in n.props)||(B.href=(0,h.addBasePath)(A)),a=I?o.default.cloneElement(n,B):(0,i.jsx)("a",{...L,...B,children:s}),(0,i.jsx)(y.Provider,{value:l,children:a})}e.r(84508);let y=(0,o.createContext)(p.IDLE_LINK_STATUS),b=()=>(0,o.useContext)(y);("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)},70273,e=>{"use strict";let t=(0,e.i(75254).default)("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);e.s(["Star",()=>t],70273)},82410,e=>{"use strict";var t=e.i(43476),r=e.i(70273);e.s(["GooglePlayBadge",0,({showRating:e=!0,variant:s="full",className:n=""})=>{let a="https://play.google.com/store/apps/details?id=com.ogd.biz&hl=en_IN";return"compact"===s?(0,t.jsxs)("a",{href:a,target:"_blank",rel:"nofollow noopener noreferrer",className:`inline-flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors ${n}`,children:[(0,t.jsx)("div",{className:"flex items-center gap-1",children:[void 0,void 0,void 0,void 0,void 0].map((e,s)=>(0,t.jsx)(r.Star,{className:"w-3.5 h-3.5 fill-primary text-primary"},s))}),(0,t.jsx)("span",{className:"text-sm font-medium",children:"4.5 on Google Play"})]}):(0,t.jsxs)("a",{href:a,target:"_blank",rel:"nofollow noopener noreferrer",className:`inline-flex items-center gap-3 bg-card border border-border rounded-lg px-4 py-2.5 hover:bg-accent/50 transition-colors ${n}`,children:[(0,t.jsx)("svg",{viewBox:"0 0 24 24",className:"w-6 h-6 text-primary",fill:"currentColor",children:(0,t.jsx)("path",{d:"M3,20.5V3.5C3,2.91 3.34,2.39 3.84,2.15L13.69,12L3.84,21.85C3.34,21.6 3,21.09 3,20.5M16.81,15.12L6.05,21.34L14.54,12.85L16.81,15.12M20.16,10.81C20.5,11.08 20.75,11.5 20.75,12C20.75,12.5 20.53,12.9 20.18,13.18L17.89,14.5L15.39,12L17.89,9.5L20.16,10.81M6.05,2.66L16.81,8.88L14.54,11.15L6.05,2.66Z"})}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:"Android POS"}),(0,t.jsx)("span",{className:"text-sm font-semibold -mt-0.5",children:"Google Play"})]}),e&&(0,t.jsxs)("div",{className:"flex items-center gap-1.5 ml-2 pl-3 border-l border-border",children:[(0,t.jsx)("div",{className:"flex items-center gap-0.5",children:[void 0,void 0,void 0,void 0,void 0].map((e,s)=>(0,t.jsx)(r.Star,{className:"w-3.5 h-3.5 fill-primary text-primary"},s))}),(0,t.jsx)("span",{className:"text-sm font-medium",children:"4.5"})]})]})}])},31278,e=>{"use strict";
1let t=(0,e.i(75254).default)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",()=>t],31278)},87486,e=>{"use strict";var t=e.i(43476),r=e.i(25913),s=e.i(75157);let n=(0,r.cva)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function a({className:e,variant:r,...a}){return(0,t.jsx)("div",{className:(0,s.cn)(n({variant:r}),e),...a})}e.s(["Badge",()=>a])},84614,3116,43109,e=>{"use strict";var t=e.i(75254);let r=(0,t.default)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);e.s(["User",()=>r],84614);let s=(0,t.default)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);e.s(["Clock",()=>s],3116),e.s(["calculateReadingTime",0,e=>{let t=Math.ceil(e.replace(/<[^>]*>/g,"").trim().split(/\s+/).filter(e=>e.length>0).length/200);return`${t} min read`}],43109)},66027,e=>{"use strict";let t;var r=e.i(75555),s=e.i(40143),n=e.i(86491),a=e.i(15823),i=e.i(93803),o=e.i(19273),l=class extends a.Subscribable{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.#r=(0,i.pendingThenable)(),this.options.experimental_prefetchInRender||this.#r.reject(Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#e;#s=void 0;#n=void 0;#a=void 0;#i;#o;#r;#t;#l;#c;#u;#d;#h;#p;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#s.addObserver(this),c(this.#s,this.options)?this.#m():this.updateResult(),this.#g())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return u(this.#s,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return u(this.#s,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#y(),this.#s.removeObserver(this)}setOptions(e){let t=this.options,r=this.#s;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,o.resolveEnabled)(this.options.enabled,this.#s))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#b(),this.#s.setOptions(this.options),t._defaulted&&!(0,o.shallowEqualObjects)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#s,observer:this});let s=this.hasListeners();s&&d(this.#s,r,this.options,t)&&this.#m(),this.updateResult(),s&&(this.#s!==r||(0,o.resolveEnabled)(this.options.enabled,this.#s)!==(0,o.resolveEnabled)(t.enabled,this.#s)||(0,o.resolveStaleTime)(this.options.staleTime,this.#s)!==(0,o.resolveStaleTime)(t.staleTime,this.#s))&&this.#v();let n=this.#j();s&&(this.#s!==r||(0,o.resolveEnabled)(this.options.enabled,this.#s)!==(0,o.resolveEnabled)(t.enabled,this.#s)||n!==this.#p)&&this.#R(n)}getOptimisticResult(e){var t,r;let s=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(s,e);return t=this,r=n,(0,o.shallowEqualObjects)(t.getCurrentResult(),r)||(this.#a=n,this.#o=this.options,this.#i=this.#s.state),n}getCurrentResult(){return this.#a}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),Reflect.get(e,r))})}trackProp(e){this.#f.add(e)}getCurrentQuery(){return this.#s}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#m(e){this.#b();let t=this.#s.fetch(this.options,e);return e?.throwOnError||(t=t.catch(o.noop)),t}#v(){this.#x();let e=(0,o.resolveStaleTime)(this.options.staleTime,this.#s);if(o.isServer||this.#a.isStale||!(0,o.isValidTimeout)(e))return;let t=(0,o.timeUntilStale)(this.#a.dataUpdatedAt,e);this.#d=setTimeout(()=>{this.#a.isStale||this.updateResult()},t+1)}#j(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#s):this.options.refetchInterval)??!1}#R(e){this.#y(),this.#p=e,!o.isServer&&!1!==(0,o.resolveEnabled)(this.options.enabled,this.#s)&&(0,o.isValidTimeout)(this.#p)&&0!==this.#p&&(this.#h=setInterval(()=>
1{(this.options.refetchIntervalInBackground||r.focusManager.isFocused())&&this.#m()},this.#p))}#g(){this.#v(),this.#R(this.#j())}#x(){this.#d&&(clearTimeout(this.#d),this.#d=void 0)}#y(){this.#h&&(clearInterval(this.#h),this.#h=void 0)}createResult(e,t){let r,s=this.#s,a=this.options,l=this.#a,u=this.#i,p=this.#o,f=e!==s?e.state:this.#n,{state:m}=e,g={...m},x=!1;if(t._optimisticResults){let r=this.hasListeners(),i=!r&&c(e,t),o=r&&d(e,s,t,a);(i||o)&&(g={...g,...(0,n.fetchState)(m.data,e.options)}),"isRestoring"===t._optimisticResults&&(g.fetchStatus="idle")}let{error:y,errorUpdatedAt:b,status:v}=g;r=g.data;let j=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===v){let e;l?.isPlaceholderData&&t.placeholderData===p?.placeholderData?(e=l.data,j=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,void 0!==e&&(v="success",r=(0,o.replaceData)(l?.data,e,t),x=!0)}if(t.select&&void 0!==r&&!j)if(l&&r===u?.data&&t.select===this.#l)r=this.#c;else try{this.#l=t.select,r=t.select(r),r=(0,o.replaceData)(l?.data,r,t),this.#c=r,this.#t=null}catch(e){this.#t=e}this.#t&&(y=this.#t,r=this.#c,b=Date.now(),v="error");let R="fetching"===g.fetchStatus,w="pending"===v,N="error"===v,C=w&&R,T=void 0!==r,S={status:v,fetchStatus:g.fetchStatus,isPending:w,isSuccess:"success"===v,isError:N,isInitialLoading:C,isLoading:C,data:r,dataUpdatedAt:g.dataUpdatedAt,error:y,errorUpdatedAt:b,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>f.dataUpdateCount||g.errorUpdateCount>f.errorUpdateCount,isFetching:R,isRefetching:R&&!w,isLoadingError:N&&!T,isPaused:"paused"===g.fetchStatus,isPlaceholderData:x,isRefetchError:N&&T,isStale:h(e,t),refetch:this.refetch,promise:this.#r,isEnabled:!1!==(0,o.resolveEnabled)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=e=>{"error"===S.status?e.reject(S.error):void 0!==S.data&&e.resolve(S.data)},r=()=>{t(this.#r=S.promise=(0,i.pendingThenable)())},n=this.#r;switch(n.status){case"pending":e.queryHash===s.queryHash&&t(n);break;case"fulfilled":("error"===S.status||S.data!==n.value)&&r();break;case"rejected":("error"!==S.status||S.error!==n.reason)&&r()}}return S}updateResult(){let e=this.#a,t=this.createResult(this.#s,this.options);if(this.#i=this.#s.state,this.#o=this.options,void 0!==this.#i.data&&(this.#u=this.#s),(0,o.shallowEqualObjects)(t,e))return;this.#a=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#f.size)return!0;let s=new Set(r??this.#f);return this.options.throwOnError&&s.add("error"),Object.keys(this.#a).some(t=>this.#a[t]!==e[t]&&s.has(t))};this.#w({listeners:r()})}#b(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#s)return;let t=this.#s;this.#s=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#g()}#w(e){s.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#a)}),this.#e.getQueryCache().notify({query:this.#s,type:"observerResultsUpdated"})})}};function c(e,t){return!1!==(0,o.resolveEnabled)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&u(e,t,t.refetchOnMount)}function u(e,t,r){if(!1!==(0,o.resolveEnabled)(t.enabled,e)&&"static"!==(0,o.resolveStaleTime)(t.staleTime,e)){let s="function"==typeof r?r(e):r;return"always"===s||!1!==s&&h(e,t)}return!1}function d(e,t,r,s){return(e!==t||!1===(0,o.resolveEnabled)(s.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&h(e,r)}function h(e,t){return!1!==(0,o.resolveEnabled)(t.enabled,e)&&e.isStaleByTime((0,o.resolveStaleTime)(t.staleTime,e))}e.i(47167);var p=e.i(71645),f=e.i(12598);e.i(43476);var m=p.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),g=p.createContext(!1);g.Provider;var x=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function y(e,t){return function(e,t,r){let n=p.useContext(g),a=p.useContext(m),i=(0,f.useQueryClient)(r),l=i.defaultQueryOptions(e);if(i.getDefaultOptions().queries?._experimental_beforeQuery?.(l),l._optimisticResults=n?"isRestoring":"optimistic",l.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=l.staleTime;l.staleTime="function"==typeof t?(...r)=>e(t(...r)):e(t),"number"==typeof l.gcTime&&(l.gcTime=Math.max(l.gcTime,1e3))}(l.suspense||l.throwOnError||l.experimental_prefetchInRender)&&!a.isReset()&&(l.retryOn
1Mount=!1),p.useEffect(()=>{a.clearReset()},[a]);let c=!i.getQueryCache().get(l.queryHash),[u]=p.useState(()=>new t(i,l)),d=u.getOptimisticResult(l),h=!n&&!1!==e.subscribed;if(p.useSyncExternalStore(p.useCallback(e=>{let t=h?u.subscribe(s.notifyManager.batchCalls(e)):o.noop;return u.updateResult(),t},[u,h]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),p.useEffect(()=>{u.setOptions(l)},[l,u]),l?.suspense&&d.isPending)throw x(l,u,a);if((({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:n})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(n&&void 0===e.data||(0,o.shouldThrowError)(r,[e.error,s])))({result:d,errorResetBoundary:a,throwOnError:l.throwOnError,query:i.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw d.error;if(i.getDefaultOptions().queries?._experimental_afterQuery?.(l,d),l.experimental_prefetchInRender&&!o.isServer&&d.isLoading&&d.isFetching&&!n){let e=c?x(l,u,a):i.getQueryCache().get(l.queryHash)?.promise;e?.catch(o.noop).finally(()=>{u.updateResult()})}return l.notifyOnChangeProps?d:u.trackResult(d)}(e,l,t)}e.s(["useQuery",()=>y],66027)},55436,e=>{"use strict";let t=(0,e.i(75254).default)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);e.s(["Search",()=>t],55436)},37767,e=>{"use strict";var t=e.i(43476),r=e.i(88589),s=e.i(13642),n=e.i(15288),a=e.i(87486),i=e.i(19455),o=e.i(93479),l=e.i(87316),c=e.i(84614),u=e.i(3116),d=e.i(55436),h=e.i(31278),p=e.i(57688),f=e.i(22016),m=e.i(71645),g=e.i(43109);e.i(47167);var x=e.i(66027);let y="https://dev.risehq.io/wp-json/wp/v2",b=e=>e._embedded?.["wp:term"]?.[0]?e._embedded["wp:term"][0].map(e=>e.name):[],v=e=>{let t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""};function j({initialPosts:e,initialCategories:j,initialTotalPages:R,initialTotalPosts:w}){let[N,C]=(0,m.useState)(""),[T,S]=(0,m.useState)("All"),[P,E]=(0,m.useState)(1),{data:O,isLoading:I}=((e=1,t=10)=>(0,x.useQuery)({queryKey:["wordpress-posts",e,t],queryFn:async()=>{let r=new Date().getTime(),s=`${y}/posts?page=${e}&per_page=${t}&_embed=true&_=${r}`;console.log("Fetching WordPress posts from:",s);try{let e=await fetch(s,{method:"GET",headers:{Accept:"application/json"}});if(console.log("Response status:",e.status),e.ok){let t=await e.json(),r=parseInt(e.headers.get("X-WP-TotalPages")||"1"),s=parseInt(e.headers.get("X-WP-Total")||"0");return console.log("✅ Direct API success! Posts:",t.length),{posts:t,totalPages:r,totalPosts:s}}throw Error(`HTTP ${e.status}`)}catch(r){console.warn("❌ Direct API failed, trying proxy:",r);try{let r="https://api.allorigins.win/get?url="+encodeURIComponent(`${y}/posts?page=${e}&per_page=${t}&_embed=true`),s=await fetch(r);if(s.ok){let e=await s.json(),r=JSON.parse(e.contents);return console.log("✅ Proxy success! Posts:",r.length),{posts:Array.isArray(r)?r:[],totalPages:Math.ceil(r.length/t),totalPosts:r.length}}throw Error(`Proxy HTTP ${s.status}`)}catch(e){throw console.error("❌ Both failed:",e),Error(`WordPress API unavailable: ${e.message}`)}}},staleTime:3e4,gcTime:3e5,retry:2,retryDelay:1e3}))(P,12),{data:_,isLoading:Q}=(0,x.useQuery)({queryKey:["wordpress-categories"],queryFn:async()=>{let e=`${y}/categories?per_page=100&hide_empty=true`;console.log("Fetching WordPress categories from:",e);try{let t=await fetch(e,{method:"GET",headers:{Accept:"application/json"}});if(t.ok){let e=(await t.json()).map(e=>e.name).sort();return console.log("✅ Direct API success! Categories:",e.length),e}throw Error(`HTTP ${t.status}`)}catch(e){console.warn("❌ Direct API failed for categories, trying proxy:",e);try{let e="https://api.allorigins.win/get?url="+encodeURIComponent(`${y}/categories?per_page=100&hide_empty=true`),t=await fetch(e);if(t.ok){let e=await t.json(),r=JSON.parse(e.contents).map(e=>e.name).sort();return console.log("✅ Proxy success! Categories:",r.length),r}throw Error(`Proxy HTTP ${t.status}`)}catch(e){return console.error("❌ Both failed for categories:",e),[]}}},staleTime:6e5,gcTime:18e5,retry:2,retryDelay:1e3}),k=O?.posts??(1===P?e:[]),L=O?.totalPages??R,M=(0,m.useMemo)(()=>["All",..._??j],[_,j]),D=(0,m.useMemo)(()=>k?k.filter(e=>{let t=b(e),r="All"===T||t.includes(T),s=e.title.rendered.toLowerCase().includes(N.toLowerCase())||v(e.excerpt.rendered).toLowerCase().includes(N.toLowerCase());return r&&s}):[],[k,T,N]);return(0,t.jsxs)("div",{className:"min-h-screen overflow-x-hidden",children:[(0,t.jsx)(r.Navigation,{}),(0,t.jsx)("section",{className:"pt-24 md:pt-32 pb-12 bg-gradient-to-br from-primary/5 to-background",children:(0,t.jsxs)("div",{className:"max-w-[1920px] mx-auto w-full px-4 sm:px-6 lg:px-8",children:[(0,t.jsxs)("div",{className:"text-center mb-12 md:mb-16",children:[(0,t.jsx)("h1",{className:"text-3xl sm:text-4xl md:text-5xl xl:text-6xl font-bold mb-4 text-foreground leading-tight",children:"Blog"}),(0,t.jsx)("p",{className:"text-base sm:text-lg md:text-xl text-muted-foreground max-w-3xl mx-auto",children:"Insights, tips, and best practices for restaurant and bakery management"})]}),(0,t.jsxs)("div",{className:"grid lg:grid-cols-4 gap-6 md:gap-8",children:[(0,t.jsx)("aside",{className:"lg:col-span-1",children:(0,t.jsxs)("div",{className:"space-y-6 lg:sticky lg:top-24",children:[(0,t.jsxs)("div",{className:"bg-card p-4 md:p-6 rounded-xl border",children:[(0,t.jsx)("h2",{className:"font-bold mb-3",children:"Search Articles"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(d.Search,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),(0,t.jsx)(o.Input,{placeholder:"Search articles...",className:"pl-10",value:N,onChange:e=>C(e.target.value)})]})]}),(0,t.jsxs)("div",{className:"bg-card p-4 md:p-6 rounded-xl border",children:[(0,t.jsx)("h2",{className:"font-bold mb-3",children:"Categories"}),Q&&!j.length?(0,t.jsx)("div",{className:"space-y-2",children:[void 0,void 0,void 0,void 0,void 0].map((e,r)=>(0,t.jsx)("div",{className:"h-8 bg-muted rounded animate-pulse"},r))}):(0,t.jsx)("div",{className:"space-y-1",children:M.map(e=>(0,t.jsx)(i.Button,{variant:T===e?"default":"ghost",className:"w-full justify-start",onClick:()=>{S(e),E(1)},children:e},e))})]})]})}),(0,t.jsxs)("main",{className:"lg:col-span-3",children:[I&&1!==P&&(0,t.jsxs)("div",{className:"flex justify-center items-center py-20",children:[(0,t.jsx)(h.Loader2,{className:"w-8 h-8 animate-spin"}),(0,t.jsx)("span",{className:"ml-2",children:"Loading articles..."})]}),I&&1!==P?null:(0,t.jsxs)(t.Fragment,{children:[D.length>0&&(0,t.jsxs)("p",{className:"text-sm text-muted-foreground mb-6",children:["Showing ",(0,t.jsx)("span",{className:"font-semibold text-foreground",children:D.length})," articles"]}),(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-6 md:gap-8",children:D.map(e=>(0,t.jsx)(f.default,{href:`/blog/${e.slug}`,className:"group block h-full",children:(0,t.jsxs)(n.Card,{className:"h-full flex flex-col border hover:border-primary hover:shadow-xl transition-all duration-300 overflow-hidden rounded-xl",children:[(0,t.jsxs)("div",{className:"relative aspect-[16/9] w-full overflow-hidden flex-shrink-0",children:[(0,t.jsx)(p.default,{src:(e=>{if(e._embedded?.["wp:featuredmedia"]?.[0]?.source_url){let t=e._embedded["wp:featuredmedia"][0].source_url;if(t.startsWith("/wp-content/"))return`https://dev.risehq.io${t}`;if(t.startsWith("https://dev.risehq.io/")||t.startsWith("http"))return t}let t=e.title.rendered.toLowerCase();if(t.includes("bakery")||t.includes("baking"))return"https://images.unsplash.com/photo-1517433670267-08bbd4be890f?w=800&h=400&fit=crop&q=80";if(t.includes("restaurant")||t.includes("food"))return"https://images.unsplash.com/photo-1504674900247-0877df9cc836?w=800&h=400&fit=crop&q=80";if(t.includes("pos")||t.includes("billing"));else if(t.includes("inventory")||t.includes("management"))return"https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=800&h=400&fit=crop&q=80";else if(t.includes("customer")||t.includes("loyalty"))return"https://images.unsplash.com/photo-1517433670267-08bbd4be890f?w=800&h=400&fit=crop&q=80";else if(t.includes("mobile")||t.includes("technology"))return"https://images.unsplash.com/photo-1512941937669-90a1b58e7e9c?w=800&h=400&fit=crop&q=80";else if(t.includes("analytics")||t.includes("reports"))return"https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=800&h=400&fit=crop&q=80";else if(t.includes("punjab")||t.includes("india"))return"https://images.unsplash.com/photo-1596040033229-a9821ebd058d?w=800&h=400&fit=crop&q=80";else if(t.includes("ai")||t.includes("fusion")||t.includes("future"))return"https://images.unsplash.com/photo-1485827404703-89b55fcc595e?w=800&h=400&fit=crop&q=80";return"https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?w=800&h=400&fit=crop&q=80"})(e),alt:v(e.title.rendered),fill:!0,className:"object-cover object-center transition-transform duration-300 group-hover:scale-105",sizes:"(max-width: 640px) 100v
1w, (max-width: 1280px) 50vw, 33vw"}),b(e).length>0&&(0,t.jsx)(a.Badge,{className:"absolute top-3 left-3 z-10",children:b(e)[0]})]}),(0,t.jsxs)(n.CardContent,{className:"p-5 flex flex-col flex-grow",children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-3 text-xs text-muted-foreground mb-3",children:[(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsx)(c.User,{className:"w-3 h-3"}),e._embedded?.author?.[0]?.name||"Rise POS Team"]}),(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsx)(l.Calendar,{className:"w-3 h-3"}),new Date(e.date).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})]}),(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsx)(u.Clock,{className:"w-3 h-3"}),(0,g.calculateReadingTime)(e.content.rendered)]})]}),(0,t.jsx)("h2",{className:"text-lg md:text-xl font-bold mb-3 line-clamp-2",dangerouslySetInnerHTML:{__html:e.title.rendered}}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground line-clamp-3 mb-4 flex-grow",children:v(e.excerpt.rendered)}),(0,t.jsx)("span",{className:"text-primary font-medium mt-auto",children:"Read article →"})]})]})},e.id))}),L>1&&(0,t.jsxs)("div",{className:"flex flex-row justify-center items-center mt-8 md:mt-12 gap-2 md:gap-3 w-full max-w-full px-2 md:px-4",children:[(0,t.jsxs)(i.Button,{variant:"outline",size:"sm",disabled:1===P,onClick:()=>E(e=>Math.max(1,e-1)),className:"flex-shrink-0 text-xs sm:text-sm md:text-base px-2 sm:px-3 md:px-4",children:[(0,t.jsx)("span",{className:"mr-1",children:"←"})," Prev"]}),(0,t.jsxs)("div",{className:"flex items-center justify-center px-2 sm:px-3 md:px-6 py-1.5 sm:py-2 md:py-2.5 bg-muted rounded-lg flex-shrink-0",children:[(0,t.jsxs)("span",{className:"font-semibold text-xs sm:text-sm md:text-base whitespace-nowrap",children:["Page ",P]}),(0,t.jsx)("span",{className:"mx-1 sm:mx-1.5 md:mx-2 text-muted-foreground text-xs sm:text-sm md:text-base",children:"/"}),(0,t.jsx)("span",{className:"text-muted-foreground text-xs sm:text-sm md:text-base",children:L})]}),(0,t.jsxs)(i.Button,{variant:"outline",size:"sm",disabled:P===L,onClick:()=>E(e=>Math.min(L,e+1)),className:"flex-shrink-0 text-xs sm:text-sm md:text-base px-2 sm:px-3 md:px-4",children:["Next ",(0,t.jsx)("span",{className:"ml-1",children:"→"})]})]})]}),!I&&0===D.length&&(0,t.jsx)("div",{className:"text-center py-20",children:(0,t.jsx)("p",{className:"text-muted-foreground",children:"No articles found."})})]})]})]})}),(0,t.jsx)(s.Footer,{})]})}e.s(["default",()=>j],37767)}]);

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.