PageSourceSearch

https://redx.com.bd/_next/static/chunks/5207-c69d15860853f5a5.js

js redx.com.bd collected 2026-10-02 06:02:31 UTC 10,358 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5207],{25909:function(e,t,n){n.d(t,{J:function(){return AccessDenied}});var r=n(82729),l=n(35944),i=n(67366),o=n(73818),a=n(41664),c=n.n(a),s=n(81179),p=n(80536),u=n(58908),m=n(5564);function _templateObject(){let e=(0,r._)(["\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  width: 100%;\n  ",";\n\n  .logo {\n    height: auto;\n    ","\n    cursor: pointer;\n  }\n\n  .call {\n    display: flex;\n    justify-content: space-between;\n    align-items: center;\n  }\n\n  .ml-10 {\n    margin-left: 10px;\n  }\n"]);return _templateObject=function(){return e},e}function AccessDenied(e){let{defaultHomePagePath:t}=e;return(0,l.BX)("div",{children:[(0,l.tZ)(s.W,{children:(0,l.BX)("header",{css:x,"data-testid":"AccessDenied_Header",children:[(0,l.tZ)("div",{className:"logo",children:(0,l.tZ)(c(),{href:t,legacyBehavior:!0,children:(0,l.tZ)("img",{src:"/images/new-redx-logo.svg",alt:"RedX Logo"})})}),(0,l.BX)("a",{className:"call",href:"tel:09610007339","data-testid":"AccessDenied_PhoneLink",children:[(0,l.tZ)("img",{src:"/images/revamp/phone-icon.svg",alt:"Phone Icon"}),(0,l.tZ)(m.x,{className:"ml-10",children:u.languages.topBar.callus}),(0,l.tZ)(m.x,{className:"ml-10",children:u.languages.redxPhone})]})]})}),(0,l.tZ)(o.ZP,{icon:(0,l.tZ)("img",{src:"/images/access-denied.svg"}),title:"Access Denied",subTitle:"You do not have permission to access this resource. Please contact customer support for assistance.","data-testid":"AccessDenied_Result"})]})}let x=(0,i.iv)(_templateObject(),(0,p.mq)({height:["50px","50px","80px","80px","80px"]}),(0,p.mq)({width:["80px","80px","100px","121px","121px"]}))},5564:function(e,t,n){n.d(t,{x:function(){return Text}});var r=n(35944);n(67366);var l=n(72084),i=n(38485);let Text=e=>{let{children:t,className:n,defaultLang:o="en",...a}=e,{upperCase:c,capitalize:s}=a;return(0,r.tZ)("p",{css:i.D4,style:{textTransform:c?"uppercase":s?"capitalize":"none",fontFamily:"en"===o?l.I.lato:l.I.notoSansBengali},className:n,children:t})};Text.H1=e=>{let{children:t,className:n,defaultLang:o="en",...a}=e,{upperCase:c,capitalize:s}=a;return(0,r.tZ)("h1",{css:i.YQ,style:{textTransform:c?"uppercase":s?"capitalize":"none",fontFamily:"en"===o?l.I.avenir:l.I.hindSiliguri},className:n,children:t})},Text.H2=e=>{let{children:t,className:n,defaultLang:o="en",...a}=e,{upperCase:c,capitalize:s}=a;return(0,r.tZ)("h2",{css:i.l3,style:{textTransform:c?"uppercase":s?"capitalize":"none",fontFamily:"en"===o?l.I.avenir:l.I.hindSiliguri},className:n,children:t})},Text.H3=e=>{let{children:t,className:n,defaultLang:o="en",...a}=e,{upperCase:c,capitalize:s}=a;return(0,r.tZ)("h3",{css:i.cF,style:{textTransform:c?"uppercase":s?"capitalize":"none",fontFamily:"en"===o?l.I.avenir:l.I.hindSiliguri},className:n,children:t})},Text.H4=e=>{let{children:t,className:n="",defaultLang:o="en",...a}=e,{upperCase:c,capitalize:s}=a;return(0,r.tZ)("h4",{css:i.cE,style:{textTransform:c?"uppercase":s?"capitalize":"none",fontFamily:"en"===o?l.I.avenir:l.I.hindSiliguri},className:n,children:t})},Text.H5=e=>{let{children:t,className:n,defaultLang:o="en",...a}=e,{upperCase:c,capitalize:s}=a;return(0,r.tZ)("h5",{css:i.Ry,style:{textTransform:c?"uppercase":s?"capitalize":"none",fontFamily:"en"===o?l.I.lato:l.I.hindSiliguri},className:n,children:t})},Text.H6=e=>{let{children:t,className:n,defaultLang:o="en",...a}=e,{upperCase:c,capitalize:s}=a;return(0,r.tZ)("h6",{css:i.QG,style:{textTransform:c?"uppercase":s?"capitalize":"none",fontFamily:"en"===o?l.I.lato:l.I.hindSiliguri},className:n,children:t})},Text.Title1=e=>{let{children:t,className:n,defaultLang:o="en",...a}=e,{upperCase:c,capitalize:s}=a;return(0,r.tZ)("p",{css:i.QE,style:{textTransform:c?"uppercase":s?"capitalize":"none",fontFamily:"en"===o?l.I.lato:l.I.notoSansBengali},className:n,children:t})},Text.Title2=e=>{let{children:t,className:n,defaultLang:o="en",...a}=e,{upperCase:c,capitalize:s}=a;return(0,r.tZ)("p",{css:i.kx,style:{textTransform:c?"uppercase":s?"capitalize":"none",fontFamily:"en"===o?l.I.lato:l.I.notoSansBengali},className:n,children:t})},Text.Title3=e=>{let{children:t,className:n,defaultLang:o="en",...a}=e,{upperCase:c,capitalize:s}=a;return(0,r.tZ)("p",{css:i.Wf,style:{textTransform:c?"uppercase":s?"capitalize":"none",fontFamily:"en"===o?l.I.lato:l.I.notoSansBengali},className:n,children:t})},Text.Small=e=>{let{children:t,className:n,defaultLang:o="en",...a}=e,{upperCase:c,capitalize:s}=a;return(0,r.tZ)("p",{css:i.tX,style:{textTransform:c?"uppercase":s?"capitalize":"none",fontFamily:"en"===o?l.I.lato:l.I.notoSansBengali},className:n,children:t})},Text.Link=e=>{let{children:t,className:n}=e;return(0,r.tZ)("p",{css:i.CT,className:n,children:t})}},38485:function(e,t,n){n.d(t,{CT:function(){return _},D4:function(){return d},QE:function(){return x},QG:function(){return m},Ry:function(){return u},Wf:function(){return h},YQ:function(){return a},cE:function(){return p},cF:function(){return s},kx:function(){return f},l3:function(){return c},tX:function(){return g}});var r=n(82729),l=n(67366),i=n(72084),o=n(80536);
1function _templateObject(){let e=(0,r._)(["\n  ","\n  letter-spacing: normal;\n  color: ",";\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,r._)(["\n  ",";\n  letter-spacing: normal;\n  color: ",";\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,r._)(["\n  ","\n  letter-spacing: normal;\n  color: ",";\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,r._)(["\n  ","\n  letter-spacing: normal;\n  color: ",";\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,r._)(["\n  font-size: 18px;\n  line-height: 26px;\n  letter-spacing: 0.5;\n  color: ",";\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,r._)(["\n  font-size: 14px;\n  line-height: 18px;\n  letter-spacing: normal;\n  color: ",";\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,r._)(["\n  ","\n  font-weight: bold;\n  font-stretch: normal;\n  font-style: normal;\n  color: ",";\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){let e=(0,r._)(["\n  ","\n  font-weight: bold;\n  font-stretch: normal;\n  font-style: normal;\n  color: ",";\n"]);return _templateObject7=function(){return e},e}function _templateObject8(){let e=(0,r._)(["\n  ","\n  font-weight: bold;\n  font-stretch: normal;\n  font-style: normal;\n  color: ",";\n"]);return _templateObject8=function(){return e},e}function _templateObject9(){let e=(0,r._)(["\n  font-size: 16px;\n  font-weight: normal;\n  font-stretch: normal;\n  font-style: normal;\n  line-height: 24px;\n  color: ",";\n"]);return _templateObject9=function(){return e},e}function _templateObject10(){let e=(0,r._)(["\n  font-size: 14px;\n  font-weight: normal;\n  font-stretch: normal;\n  font-style: normal;\n  line-height: 22px;\n  color: ",";\n"]);return _templateObject10=function(){return e},e}function _templateObject11(){let e=(0,r._)(["\n  font-size: 14px;\n  font-weight: bold;\n  color: ",";\n  text-decoration: none;\n  cursor: pointer;\n  &:hover {\n    text-decoration: underline;\n  }\n"]);return _templateObject11=function(){return e},e}let a=(0,l.iv)(_templateObject(),(0,o.mq)({fontSize:["40px","40px","40px","54px","54px"],lineHeight:["48px","48px","48px","58px","58px"]}),i.colors.darkText1),c=(0,l.iv)(_templateObject1(),(0,o.mq)({fontSize:["32px","32px","32px","40px","40px"],lineHeight:["38px","38px","38px","48px","48px"]}),i.colors.darkText1),s=(0,l.iv)(_templateObject2(),(0,o.mq)({fontSize:["26px","26px","26px","30px","30px"],lineHeight:["32px","32px","32px","36px","36px"]}),i.colors.darkText1),p=(0,l.iv)(_templateObject3(),(0,o.mq)({fontSize:["18px","18px","22px","24px","24px"],lineHeight:["28px","28px","28px","30px","30px"]}),i.colors.darkText1),u=(0,l.iv)(_templateObject4(),i.colors.darkText1),m=(0,l.iv)(_templateObject5(),i.colors.darkText1),x=(0,l.iv)(_templateObject6(),(0,o.mq)({fontSize:["24px","24px","24px","30px","30px"],lineHeight:["34px","34px","34px","45px","45px"]}),i.colors.darkText1),f=(0,l.iv)(_templateObject7(),(0,o.mq)({fontSize:["18px","18px","18px","24px","24px"],lineHeight:["28px","28px","28px","34px","34px"]}),i.colors.darkText1),h=(0,l.iv)(_templateObject8(),(0,o.mq)({fontSize:["16px","16px","16px","18px","18px"],lineHeight:["24px","24px","24px","30px","30px"]}),i.colors.darkText1),d=(0,l.iv)(_templateObject9(),i.colors.darkText2),g=(0,l.iv)(_templateObject10(),i.colors.darkText2),_=(0,l.iv)(_templateObject11(),i.colors.primaryRed)},60991:function(e,t,n){n.d(t,{Z:function(){return WithAuth}});var r=n(35944),l=n(67294),i=n(11163),o=n(25617),hooks_useGetIsUserLoggedIn=()=>{let{shops:e=[]}=(0,o.v9)(e=>e.shop),{token:t}=(0,o.v9)(e=>e.auth),n=!!t&&e.length>0;return n},WithAuth=e=>t=>{let n=(0,i.useRouter)(),o=hooks_useGetIsUserLoggedIn();return((0,l.useEffect)(()=>{o||n.replace("/login")},[o,n]),o)?(0,r.tZ)(e,{...t}):null}},15266:function(e,t,n){n.d(t,{T:function(){return useGetShopWisePermission}});var r=n(2947),l=n(67294),i=n(89437),o=n(59378),a=n(48106),c=n(1751),s=n(25617);function useGetShopWisePermission(e){let{selectedShop:t,dispatch:n,router:p}=e,{shopPermissions:u}=(0,s.v9)(e=>e.shop);return(0,l.useEffect)(()=>
1{if(!t)return;let getShopWiseUserPermission=async()=>{try{let e=await i.Z.getShopUserPermissions(t.ID);n((0,a.au)({shopPermissions:e.permissions,shopRole:e.roleName}))}catch(e){o.Z.logOut(),n((0,c.w7)()),n((0,a.Gu)()),p.push("/login"),r.Am.error(e.response.data.error.message)}};getShopWiseUserPermission()},[t,p,n]),u}},29032:function(e,t,n){n.d(t,{A:function(){return getHomePageRoute},I:function(){return redirectToDefaultPageBasedOnMerchantType}});var r=n(32065);let redirectToDefaultPageBasedOnMerchantType=e=>{let{merchantType:t,handleRedirect:n,customRedirectInfo:l}=e;if(l&&l.redirect&&"string"==typeof l.redirect){let{redirect:e,...t}=l;n({pathname:e,query:{...t}})}else switch(t){case r.Eq:n({pathname:"/consignment-list",query:{...l}});break;case r.K3:n({pathname:"/ltl-dashboard",query:{...l}});break;case r.a8:case r.Xw:default:n({pathname:"/dashboard",query:{...l}})}},getHomePageRoute=(e,t)=>{let n=t===r.K3?"/ltl-dashboard":"/dashboard";return e?n:"/"}}}]);

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.