PageSourceSearch

https://barebeauty.sa/build/assets/index-CpElg0rc.js

js barebeauty.sa collected 2026-09-24 14:27:34 UTC 4,597 bytes, 1 lines download raw bytes

1import{u as f,h as S,r as w,e as l,P as c,j as e}from"./vendor-DviMR2vF.js";import{P as A}from"./page-template-CgzGw9vz.js";import{u as P,E as G,B as t,C as T,g as R,h as k,v as B,i as M,w as I,x as _,y as p,z as n,A as q,F as i,c as E,I as U,J as H,K as F,N as O,Z,O as z,Q as D,R as J,f as Q,e as x,U as V,V as W,W as Y,Y as $,_ as K,$ as L,G as X}from"./ui-BChMl1ia.js";import{t as ee}from"./app-shared-CKDgHUBD.js";import"./utils-nrJLb57x.js";import"./app-layout-C81OBHIe.js";import"./app-BYrJzvVt.js";/* empty css            *//* empty css                  */import"./language-switcher-C43LMqYv.js";import"./language-DZ9KMQZW.js";import"./motion-DBVl-vA3.js";import"./CompanySupportChatWidget-B0rrjtnP.js";import"./recharts-DMgShWG-.js";import"./input-error-BGT-deR3.js";import"./theme-Bb3szHF7.js";import"./WatilySiteWebPushProvider-DTUrbJW9.js";import"./WebPushOptIn-AUUzvCeP.js";import"./watily-ui-shell-CFP-EonI.js";const se={"shop-store":"Starter","analytics-reporting":"Starter","watily-hub":"Starter","loyalty-program":"Growth","coupon-system":"Growth","rating-reviews":"Growth","watily-survey":"Growth","leads-management":"Growth","referral-program":"Growth","watily-app":"Smart","social-media":"Growth",showroom:"Smart"},ae={Starter:"bg-gray-100 text-gray-700",Growth:"bg-blue-100 text-blue-700",Smart:"bg-purple-100 text-purple-700"},te={Gift:X,CreditCard:L,Building2:K,Share2:$,Smartphone:Y,Users:W,UserPlus:V,Store:x,MessageCircle:Q,BarChart:J,Percent:D,Star:z,Zap:Z,ShoppingCart:O,Briefcase:F,MoonStar:H,UserSearch:U};function fe(){const{t:a,i18n:h}=f(),o=S().props,u=o.apps||[],m=o.pendingRequestsCount||0,g=h.language==="ar",[j,d]=w.useState(null),b=s=>{const r=te[s]||x;return e.jsx(r,{className:"w-5 h-5"})},y=s=>g&&s.name_ar?s.name_ar:s.name,v=s=>se[s]||"Starter",N=s=>{d(s),l.post(c("admin.company-apps.toggle",s),{},{preserveScroll:!0,onSuccess:()=>{ee.success(a("App status updated"))},onFinish:()=>d(null)})},C=[{label:a("Pending Requests"),icon:e.jsx(P,{className:"h-4 w-4 mr-2"}),variant:"outline",onClick:()=>l.visit(c("admin.company-apps.requests"))},{label:a("Company Overview"),icon:e.jsx(G,{className:"h-4 w-4 mr-2"}),variant:"outline",onClick:()=>l.visit(c("admin.company-apps.overview"))}];return e.jsxs(A,{title:a("Company Apps Management"),description:a("Apps are automatically activated based on subscription plans"),url:"/admin/company-apps",actions:C,children:[e.jsxs("div",{className:"mb-6 p-4 bg-muted/50 rounded-lg",children:[e.jsx("h3",{className:"font-semibold mb-2",children:a("Plan-Based Activation")}),e.jsxs("div",{className:"flex flex-wrap gap-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"bg-gray-100 text-gray-700",children:a("Starter")}),e.jsx("span",{className:"text-sm text-muted-foreground",children:"99 SAR"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"bg-blue-100 text-blue-700",children:a("Growth")}),e.jsx("span",{className:"text-sm text-muted-foreground",children:"149 SAR"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"bg-purple-100 text-purple-700",children:a("Smart")}),e.jsx("span",{className:"text-sm text-muted-foreground",children:"299 SAR"})]})]})]}),e.jsxs(T,{children:[e.jsx(R,{children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(k,{children:a("Available Apps")}),e.jsx(B,{children:a("Apps are enabled based on company subscription plan")})]}),m>0&&e.jsxs(t,{variant:"destructive",className:"text-sm",children:[m," ",a("pending")]})]})}),e.jsx(M,{children:e.jsxs(I,{children:[e.jsx(_,{children:e.jsxs(p,{children:[e.jsx(n,{children:a("App")}),e.jsx(n,{children:a("Minimum Plan")}),e.jsx(n,{className:"text-center",children:a("Activated")}),e.jsx(n,{className:"text-center",children:a("Active")})]})}),e.jsx(q,{children:u.map(s=>{const r=v(s.key);return e.jsxs(p,{children:[e.jsx(i,{children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 rounded-lg bg-primary/10 text-primary",children:b(s.icon)}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:y(s)}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s.key})]})]})}),e.jsx(i,{children:e.jsx(t,{className:ae[r]||"bg-gray-100",children:r})}),e.jsx(i,{className:"text-center",children:e.jsx(t,{className:"bg-green-500",children:s.activated_count})}),e.jsx(i,{className:"text-center",children:e.jsx(E,{checked:s.is_active,onCheckedChange:()=>N(s.key),disabled:j===s.key})})]},s.key)})})]})})]})]})}export{fe 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.