PageSourceSearch

https://redx.com.bd/_next/static/chunks/9233-cb0b1fd419eef928.js

js redx.com.bd collected 2026-10-02 06:02:17 UTC 41,238 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9233,9823],{7304:function(e,t,n){let a;n.d(t,{Z:function(){return components_IssueModal}});var r=n(82729),i=n(35944),l=n(2947),o=n(59378),s=n(1751);let c={CUSTOMER_ISSUE_MODIFY:{temporaryAllowedAction:"CUSTOMER_ISSUE_MODIFY",identityType:"customerPhone",entityType:"trackingId"},MERCHANT_ISSUE_MODIFY:{temporaryAllowedAction:"MERCHANT_ISSUE_MODIFY",identityType:"merchantPhone",entityType:"trackingId"}};var d=n(34489),p=n(67366),u=n(86994),m=n(65400),h=n.n(m),E=n(51024),_=n(56697),f=n(89552),g=n(28465),b=n(99261),y=n(91427),v=n(11163),N=n(67294),T=n(25617),A=n(54435),C=n(51181),S=n(72084),R=n(87616),P=n(80536),x=n(44555),w=n(79039),I=n(80259),O=n(64713),k=n(97538);function _templateObject(){let e=(0,r._)(["\n  background-color: #eb2127;\n  padding-left: 20px;\n  padding-right: 20px;\n  color: #ffffff;\n  border-color: #eb2127;\n  &:hover {\n    background-color: #eb2127e6;\n    border-color: #eb2127e6;\n  }\n"]);return _templateObject=function(){return e},e}let IssueModalValidationForm=e=>{let{hasToken:t,setIssueEscalationTag:n,issueEscalationTag:a,issueEscalationPhoneNumber:r,setIssueEscalationPhoneNumber:l,onIssueValidationFormSubmit:o}=e;return(0,i.BX)(k.Z,{name:"issue-validation-form",onKeyPress:e=>{"Enter"===e.key&&o()},children:[(0,i.tZ)(k.Z.Item,{label:"You are raising the issue as:",name:"issue-escalation-tag",required:!0,children:(0,i.BX)(O.default.Group,{onChange:e=>{n(e.target.value)},value:a,children:[(0,i.tZ)(O.default,{value:"customer",children:"Customer"}),(0,i.tZ)(O.default,{value:"merchant",children:"Merchant"})]})}),(0,i.tZ)(k.Z.Item,{label:"Enter ".concat(a," phone number:"),name:"issue-escalation-phone-number",onChange:e=>{l(e.target.value)},required:!0,children:(0,i.tZ)(E.default,{placeholder:"+8801XXXXXXXXX",value:r})}),t&&(0,i.tZ)("p",{style:{color:"gray",margin:"10px auto"},children:"Please procceed verification of issue creation..."}),(0,i.tZ)(k.Z.Item,{children:(0,i.tZ)(h(),{type:"primary",onClick:o,block:!0,css:M,children:t?"Continue":"Verify Parcel Access"})})]})},M=(0,p.iv)(_templateObject());var D=n(1964);function IssueModal_templateObject(){let e=(0,r._)(["\n  .modal-title {\n    font-weight: bold;\n    span {\n      color: ",";\n    }\n  }\n  .invalid-text {\n    color: ",";\n  }\n  .issue-name {\n    margin-left: 8px;\n  }\n  .ant-modal-body {\n    ","\n    overflow: auto;\n    display: flex;\n    flex-direction: column;\n    .container {\n      flex-grow: 1;\n    }\n    .text-area {\n      resize: none;\n    }\n    .issue-validation-wrapper {\n      display: flex;\n      justify-content: center;\n      align-items: center;\n      .text {\n        margin-right: 15px;\n        margin-bottom: 6px;\n      }\n      .error-msg {\n        color: ",";\n        font-weight: bold;\n      }\n    }\n    .steps {\n      margin-bottom: 20px;\n    }\n    .title-wrapper {\n      margin-top: 20px;\n      margin-bottom: 25px;\n      display: flex;\n      .title {\n        font-weight: bold;\n      }\n    }\n    .issue-types-wrapper {\n      display: flex;\n      flex-direction: column;\n      .issue-type {\n        display: flex;\n        justify-content: space-between;\n        margin-bottom: 15px;\n        cursor: pointer;\n      }\n    }\n  }\n  .modal-footer {\n    display: flex;\n    align-items: center;\n    justify-content: flex-end;\n    ","\n    .next-btn {\n      margin-left: 15px;\n    }\n    .submit-btn {\n      background-color: ",";\n      color: ",";\n      border-color: ",";\n      margin-left: 15px;\n      &:disabled {\n        border: solid 1px #b8b5b6;\n        color: #8c8c8c;\n        background-color: ",";\n        cursor: not-allowed;\n      }\n    }\n    .back-btn {\n      background-color: ",";\n      color: ",";\n      border-color: ",";\n      margin-left: 15px;\n      &:disabled {\n        border: solid 1px #b8b5b6;\n        color: #8c8c8c;\n        background-color: ",";\n        cursor: not-allowed;\n      }\n    }\n  }\n"]);return IssueModal_templateObject=function(){return e},e}let{TextArea:H}=E.default,{Dragger:L}=g.default,{api:{url:Z}}=C.production,B={backgroundColor:"#f6f6f6",paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15,borderRadius:4}
1,X=(0,p.iv)(IssueModal_templateObject(),S.colors.red,S.colors.red,(0,P.mq)({height:["300px","300px","550px","550px","550px"]}),S.colors.red,(0,P.mq)({marginTop:["20px","20px","20px","20px","20px"]}),S.colors.red,S.colors.white,S.colors.red,S.colors.white,S.colors.white,S.colors.red,S.colors.red,S.colors.white);var components_IssueModal=e=>{var t,n;let{isModalOpen:r,setModalOpen:p,entity:m={},shopId:E,removeOpenIssueRaiseModalQuery:g,fetchTrackingAndCustomerInfo:C}=e,P=(0,T.I0)(),O=(0,v.useRouter)(),{entityId:k,entityType:M}=m,{token:U,temporaryAccessToken:V}=(0,T.v9)(e=>e.auth),{issues:G,createIssueStatus:j,createIssueMessage:F}=(0,T.v9)(e=>e.issue),{selectedShop:Y,shops:K=[]}=(0,T.v9)(e=>e.shop),z=!!U&&K&&K.length>0&&Y.ID,[W,q]=(0,N.useState)({}),[Q,$]=(0,N.useState)(""),[J,ee]=(0,N.useState)(G),[et,en]=(0,N.useState)([]),[ea,er]=(0,N.useState)(!1),[ei,el]=(0,N.useState)(""),[eo,es]=(0,N.useState)(!1),[ec,ed]=(0,N.useState)(void 0),[ep,eu]=(0,N.useState)([]),[em,eh]=(0,N.useState)(!1),[eE,e_]=(0,N.useState)(z),[ef,eg]=(0,N.useState)(),[eb,ey]=(0,N.useState)();(0,N.useEffect)(()=>{d.MZ&&((0,y.r)(),a=(0,b.IH)())},[]),(0,N.useEffect)(()=>{z?eg("merchant"):eg("customer")},[z]),(0,N.useEffect)(()=>{P((0,s.P2)())},[P,ef]);let ev=function(e){let{shopID:t,params:n={}}=e,[a,r]=(0,N.useState)([]),getParcels=async()=>{let e=await D.Z.fetchAllParcels(t,n);r(e)};return(0,N.useEffect)(()=>{t&&getParcels()},[t]),a}({shopID:Y?Y.ID:void 0,params:{trackingId:k||void 0}}),eN=null==ev?void 0:null===(n=ev.parcels)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t.STATUS;(0,N.useEffect)(()=>{["deleted","rejected","shopup-returned","lost","damaged","cash-received","delivery-payment-lost","picked-up"].includes(eN)&&eh(!0)},[eN]);let closeModal=()=>{es(!1),eu([]),p(!1),ee(G),q({}),$(""),el(""),en([]),P((0,w._b)()),e_(z),ey(void 0),P((0,s.P2)()),g&&"function"==typeof g&&g(),C&&"function"==typeof C&&C()},onIssueConfirm=async()=>{let e={issueEntity:M,issueCreationPayload:{entityId:k,typeId:W.id,description:ei||void 0,isEscalatedByMerchant:1,issueImagePath:ec,customerPhone:eb,escalationTag:ef}};await P((0,w.td)(e)),"merchant"===ef&&(0,I.Gn)(P,Y.ID,{limit:20,offset:0,sort:0})},onIssueClick=async e=>{"Pickup is showing as Pending"===e.name&&!1===e.isLeaf&&0!==e.children.length&&es(!0),("pickup_pending"===e.codeName||"pickup_showing_pending"===e.codeName)&&es(!0),$(e.name),en([...et,e.name]),e.children&&e.children.length>0?ee(e.children):(ee([]),q({id:e.id,name:e.name}))},findIssueChildren=function(e,t){void 0!==e&&e.map(e=>{e.name===t?ee(e.children):findIssueChildren(e.children,t)})};(0,N.useEffect)(()=>{if(k&&(U||V)){let fetch=async()=>{er(!0);let e=z?"merchant":ef;await P((0,w.tH)({trackingId:k,moduleCode:e,entityType:M})),er(!1)};fetch()}},[P,k,z,U,V,ef]),(0,N.useEffect)(()=>{ee(G)},[G]),(0,R.T)(l.Am,j,F);let uploadSampleFile=async e=>{let t=e.fileList;0!==t.length&&eu([(t=t.slice(-1))[0]]),0===t.length&&eu([]);let{file:n}=e;"done"===n.status?n.response&&!n.response.isError?(l.Am.success("".concat(n.name," file uploaded successfully")),ed(n.response.data.issuePhotoBucketPath)):n.response&&n.response.isError&&l.Am.error("".concat(n.name," file upload failed")):"error"===n.status&&l.Am.error("".concat(n.name," file upload failed."))},onIssueValidationFormSubmit=async()=>{if(!eb){l.Am.error("Please enter ".concat(ef," phone number"));return}if(!1===d.TX.validPhone.test(eb)){l.Am.error("Invalid ".concat(ef," phone number format: ").concat(eb));return}if(er(!0),"customer"===ef){a&&(0,x.$$)(a);let e=c.CUSTOMER_ISSUE_MODIFY;try{let t=await o.Z.generateTemporaryToken({...e,identityValue:eb,entityValue:k});await P((0,s.Ui)(t))}catch(e){er(!1),l.Am.error(e.message||e);return}if(!V)return;let t=await P((0,w._r)({moduleCode:ef,trackingId:k,customerPhone:eb}));if(er(!1),t&&(t.isError||t.error)){l.Am.error(t.message||t.error.message);return}if(t&&t.payload){let{validParcel:e,message:n}=t.payload;if(!e){l.Am.error(n);return}}e_(!0);return}if("merchant"===ef){a&&(0,x.hA)(a);let e=c.MERCHANT_ISSUE_MODIFY;try{let t=await o.Z.generateTemporaryToken({...e,identityValue:eb,entityValue:k});await P((0,s.Ui)(t))}catch(e){er(!1),l.Am.error(e.message||e);return}if(!V)return;let t=await P((0,w._r)({moduleCode:ef,trackingId:k,merchantPhone:eb}));if(t&&(t.isError||t.error)){l.Am.error(t.message||t.error.message);return}if(t&&t.payload){let{validParcel:e,message:n}=t.payload;if(!e){l.Am.error(n);return}}O.push({pathname:"/login",query:{phone:eb,redirect:O.pathname,...O.query,shopId:E,openIssueRaiseModal:!0}})}};return(0,i.tZ)(i.HY,{children:(0,i.BX)(_.Z,{css:X,title:(0,i.tZ)("div",{children:(0,i.BX)(A.x.H3,{className:"modal-title",children:["Issue creation for ",(0,i.tZ)("span",{children:k})]})}),open:r,onOk:()=>
1onIssueConfirm(),onCancel:closeModal,footer:""===Q&&em&&(0,i.tZ)("div",{style:B,children:(0,i.tZ)("p",{style:{textAlign:"left"},children:"Some of the issue types might not be available depending on the status of the parcel"})}),"data-testid":"IssueModal_Modal",children:[ea&&(0,i.tZ)(f.default,{"data-testid":"IssueModal_Spin"}),!ea&&"fulfilled"!==j&&"rejected"!==j&&(0,i.BX)(i.HY,{children:[(0,i.BX)("div",{className:"container",children:[!ea&&!z&&!eE&&(0,i.BX)(i.HY,{children:[(0,i.tZ)("div",{className:"title-wrapper",children:(0,i.tZ)(A.x.H4,{className:"title",children:"Raise an issue"})}),(0,i.tZ)(IssueModalValidationForm,{hasToken:U||V,setIssueEscalationTag:eg,issueEscalationTag:ef,issueEscalationPhoneNumber:eb,setIssueEscalationPhoneNumber:ey,onIssueValidationFormSubmit:onIssueValidationFormSubmit})]}),eE&&J&&!W.id&&(0,i.BX)("div",{children:[(0,i.tZ)("div",{className:"title-wrapper",children:(0,i.tZ)(A.x.H4,{className:"title",children:Q||"Please select an issue type"})}),(0,i.tZ)("div",{className:"issue-types-wrapper",children:J.length>0?J.map((e,t)=>(0,i.BX)("div",{className:"issue-type",onClick:()=>onIssueClick(e),"data-testid":"IssueModal_IssueType",children:[(0,i.tZ)("span",{children:e.name}),e.children&&e.children.length>0&&(0,i.tZ)(u.default,{style:{color:S.colors.lightRed}})]},"".concat(e.name,"-").concat(t))):(0,i.tZ)("p",{children:"No issue types found to be raised at current parcel status."})})]}),eE&&W.id&&(0,i.BX)("div",{children:[(0,i.BX)("div",{className:"title-wrapper",children:[(0,i.tZ)(A.x.H4,{className:"title",children:"Issue:"}),(0,i.tZ)(A.x.H4,{className:"issue-name",children:" ".concat(Q)})]}),(0,i.tZ)("div",{className:"issue-types-wrapper",children:(0,i.tZ)(H,{className:"text-area",rows:5,placeholder:"Please write additional comment if any...",value:ei,onChange:e=>el(e.target.value),"data-testid":"IssueModal_TextArea"})})]}),eE&&W.id&&eo&&(0,i.BX)("div",{style:{marginTop:16,marginBottom:16,height:100},children:[(0,i.BX)("div",{style:{display:"flex"},children:[(0,i.BX)("p",{style:{marginBottom:16},children:["Please upload pickup slip to raise the issue"," "]}),(0,i.tZ)("p",{style:{color:"red"},children:"*"})]}),(0,i.tZ)(L,{action:"".concat(Z,"/v3/logistics/issue/photos/").concat(W.id,"/upload-photo"),onChange:uploadSampleFile,name:"issuePhoto",withCredentials:!0,multiple:!0,fileList:ep,headers:{"x-access-token":"Bearer ".concat(U)},"data-testid":"IssueModal_Dragger",children:(0,i.BX)("div",{style:{display:"flex",justifyContent:"center"},children:[(0,i.tZ)("img",{src:"/images/uploadpickslip.png",alt:"pick slip",style:{marginRight:8},"data-testid":"IssueModal_UploadPickSlipImage"}),(0,i.BX)("div",{style:{display:"flex"},children:[(0,i.tZ)("p",{children:"Drag & drop files or "}),(0,i.tZ)("p",{style:{color:"red",marginLeft:4,marginRight:4},children:"browse"}),(0,i.tZ)("p",{children:" from computer"})]})]})})]})]}),(0,i.BX)("div",{className:"modal-footer",children:[et.length>0&&(0,i.tZ)(h(),{type:"default",className:"back-btn",onClick:()=>{es(!1),eu([]);let e=et.slice(0,et.length-1);if(en(e),q({}),el(""),P((0,w._b)()),0===e.length)ee(G),$("");else{let t=e[e.length-1];$(t),findIssueChildren(G,t)}},disabled:"pending"===j,"data-testid":"IssueModal_BackButton",children:"Back"}),W.id&&(0,i.tZ)(h(),{disabled:eo&&0===ep.length,type:"primary",className:"submit-btn",onClick:onIssueConfirm,loading:"pending"===j,"data-testid":"IssueModal_SubmitButton",children:"Confirm"})]})]}),"fulfilled"===j&&(0,i.BX)(i.HY,{children:[(0,i.tZ)("div",{className:"container",children:(0,i.tZ)("div",{className:"title-wrapper",children:(0,i.tZ)(A.x.H4,{className:"title",children:"Your issue has been successfully placed!"})})}),(0,i.tZ)("div",{className:"modal-footer",children:(0,i.tZ)(h(),{type:"default",className:"back-btn",onClick:()=>closeModal(),"data-testid":"IssueModal_CloseButton",children:"Close"})})]}),"rejected"===j&&(0,i.BX)(i.HY,{children:[(0,i.tZ)("div",{className:"container",children:(0,i.tZ)("div",{className:"issue-validation-wrapper",children:(0,i.tZ)(A.x.H4,{className:"text error-msg",children:F})})}),(0,i.tZ)("div",{className:"modal-footer",children:(0,i.tZ)(h(),{type:"default",className:"back-btn",onClick:()=>closeModal(),"data-testid":"IssueModal_RejectedCloseButton",children:"Close"})})]})]})})}},89823:function(e,t,n){n.d(t,{Z:function(){return components_PageLayout}});var a=n(82729),r=n(35944),i=n(67366),l=n(67294),o=n(72084),s=n(41132),c=n(80536),d=n(16373),p=n(90502),u=n(65643),m=n(99245),h=n.n(m),E=n(11163),_=n.n(E),f=n(25617),g=n(58908),b=n(32065),y=n(95181),v=n(33054),N=n(32635),T=n(1751),A=n(96945),C=n(48106),S=n(74253),R=n(74806);
1function _templateObject(){let e=(0,a._)(["\n  display: flex;\n  padding: 12px 16px 12px 12px;\n  margin-left: 3px;\n  align-items: center;\n  border-radius: 4px;\n  background: #fff;\n  gap: 10px;\n  cursor: pointer;\n\n  :hover {\n    background-color: #f6f6f6;\n  }\n\n  .steps-container {\n    display: flex;\n    flex-direction: column;\n    gap: 8px;\n\n    .profile-title {\n      font-size: 14px;\n    }\n  }\n\n  .steps-wrapper {\n    display: flex;\n    flex-direction: column;\n    gap: 8px;\n  }\n\n  .action-text {\n    color: rgb(121, 121, 121);\n    font-size: 14px;\n    font-style: normal;\n    font-weight: 300;\n  }\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,a._)(["\n  display: flex;\n  height: 32px;\n  padding: 4px 8px;\n  justify-content: center;\n  align-items: center;\n  gap: 8px;\n  font-size: 14px;\n  font-weight: normal;\n"]);return _templateObject1=function(){return e},e}let P=(0,i.iv)(_templateObject());(0,i.iv)(_templateObject1());var Dashboard_ProfileProgress=function(e){let{allProfileSteps:t,collapsed:n=!1}=e,a=t.filter(e=>{let{stepPending:t}=e;return!0===t}),i=(t.length-a.length)/t.length*100,l=a.length>0?a[0]:null;return 0===a.length?null:(0,r.BX)(r.HY,{children:[(0,r.tZ)(S.Z,{style:{margin:"5px 0px"}}),(0,r.BX)("div",{css:P,onClick:()=>l&&l.btnCallback(),"data-testid":"ProfileProgress_wrapper",style:{justifyContent:n?"center":"start"},children:[(0,r.tZ)("div",{children:(0,r.tZ)(R.default,{"data-testid":"ProfileProgress_circular-progress",strokeColor:"#18C081",strokeWidth:10,type:"circle",width:32,percent:i,showInfo:!1})}),!n&&(0,r.BX)("div",{className:"steps-container",children:[(0,r.tZ)("p",{"data-testid":"ProfileProgress_profile-title",className:"profile-title",children:g.languages.dashboard.profileSteps.title}),l&&(0,r.tZ)("div",{children:(0,r.tZ)("div",{className:"steps-wrapper",children:(0,r.BX)("span",{className:"action-text",children:[t.length-a.length,"/",t.length," ","Completed"]})})})]})]})]})},x=n(59378),w=n(70917),I=n(18154);function Sidebar_templateObject(){let e=(0,a._)(["\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  margin-bottom: 12px;\n  width: 100%;\n\n  .plus-symbol-wrapper {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n  }\n\n  .plus-symbol {\n    font-size: 20px;\n  }\n\n  .plus-symbol-expand {\n    font-size: 20px;\n    margin-left: 8px;\n  }\n\n  .plus-symbol-wrapper.is-collapsed .plus-symbol-expand {\n    font-size: 20px;\n    margin-left: 0px;\n  }\n\n  .nav-label {\n    overflow: hidden;\n    white-space: nowrap;\n    display: inline-block;\n    transition: max-width 0.3s ease-out, opacity 0.3s ease-out, margin 0.3s ease-out;\n  }\n\n  /* expanded state */\n  .plus-symbol-wrapper .nav-label {\n    opacity: 1;\n  }
1\n\n  /* collapsed state */\n  .plus-symbol-wrapper.is-collapsed .nav-label {\n    max-width: 0;\n    opacity: 0;\n    margin-left: 0;\n  }\n"]);return Sidebar_templateObject=function(){return e},e}function Sidebar_templateObject1(){let e=(0,a._)(["\n  width: 80%;\n"]);return Sidebar_templateObject1=function(){return e},e}function _templateObject2(){let e=(0,a._)(["\n  margin-left: 3px;\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,a._)(["\n  .sider {\n    background: #fff;\n    min-height: 100vh;\n  }\n\n  .nav-item {\n    display: block;\n    padding: 10px 12px;\n    margin-left: 3px;\n    font-size: 16px;\n    color: #4d4d4d;\n    cursor: pointer;\n    border-radius: 6px;\n    transition: background 0.2s ease;\n  }\n\n  .nav-item:hover {\n    background-color: #f6f6f6;\n  }\n\n  .nav-item.active {\n    color: #d0021b;\n    font-weight: 600;\n  }\n\n  .disabled-nav-item {\n    color: #ccc;\n    cursor: not-allowed;\n    display: block;\n    padding: 10px 12px;\n  }\n\n  .icon-wrapper-desktop {\n    display: flex;\n    align-items: center;\n    height: 50px;\n    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.09);\n    z-index: 10;\n    .icon-wrapper-menu {\n      cursor: pointer;\n    }\n    .logo {\n      height: auto;\n      cursor: pointer;\n      opacity: 1;\n      visibility: visible;\n      transition: max-width 0.4s ease-out, opacity 0.4s ease-out, width 0.3s ease-out;\n\n      ","\n    }\n\n    .hidden-logo .logo {\n      opacity: 0;\n      visibility: hidden;\n      width: 0px;\n    }\n  }\n\n  .nav-item-content-wrapper {\n    display: flex;\n    align-items: center;\n    font-size: 14px;\n  }\n\n  .nav-label {\n    overflow: hidden;\n    white-space: nowrap;\n    display: inline-block;\n    transition: max-width 0.3s ease-out, opacity 0.3s ease-out, margin 0.3s ease-out;\n  }\n\n  /* expanded state */\n  .nav-item-content-wrapper .nav-label {\n    max-width: 180px;\n    opacity: 1;\n  }
1\n\n  /* collapsed state */\n  .nav-item-content-wrapper.is-collapsed .nav-label {\n    max-width: 0;\n    opacity: 0;\n    margin-left: 0;\n  }\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,a._)(["\n  overflow-y: auto;\n  scrollbar-width: thin;\n  scrollbar-color: #ccc transparent;\n\n  /* For WebKit browsers */\n  &::-webkit-scrollbar {\n    width: 4px;\n  }\n\n  &::-webkit-scrollbar-thumb {\n    background-color: #ccc;\n    border-radius: 4px;\n  }\n\n  &::-webkit-scrollbar-track {\n    background: transparent;\n  }\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,a._)(["\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,a._)(["\n  position: sticky;\n  bottom: 0;\n  background-color: white;\n  padding-bottom: 10px;\n  z-index: 2;\n"]);return _templateObject6=function(){return e},e}let{Sider:O}=d.default,k=l.memo(e=>{let{collapsed:t,setCollapsedDesktopSidebar:n,merchantType:a,routes:i,dashboardRoute:o}=e,go=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_().push({pathname:e,query:t?{...n}:{..._().query,...n}})},s=i.slice(-3),c=i.slice(0,-3),renderNavItem=e=>{if("children"===e.type&&e.children)return(0,r.tZ)(l.Fragment,{children:e.children},e.title);if("item"===e.type){var n;let a=null!==(n=g.languages.topNav[e.title])&&void 0!==n?n:e.title,i=e.path===_().pathname,l=t?"is-collapsed":"";return"active"===e.status?(0,r.tZ)("a",{onClick:()=>e.onClick?e.onClick():_().push(e.path),className:"".concat(i?"active":""," nav-item"),"data-testid":"TopNavbar_NavItem",children:(0,r.BX)("div",{className:"nav-item-content-wrapper ".concat(l),style:{justifyContent:t?"center":"start"},"data-tut":e.title,children:[(0,r.tZ)("img",{src:"/images/sidebar/".concat(i?"active":"inactive","/").concat(e.iconName,".svg"),alt:e.key,style:{marginRight:t?"0":"12px",marginLeft:t?"0":"5px"},width:20,height:20}),(0,r.tZ)("span",{className:"nav-label",children:a})]})},e.path):(0,r.tZ)("span",{className:"inactive disabled-nav-item",children:(0,r.BX)("div",{className:"nav-item-content-wrapper ".concat(l),style:{justifyContent:t?"center":"start"},"data-tut":e.title,children:[(0,r.tZ)("img",{src:"/images/sidebar/inactive/".concat(e.iconName,".svg"),alt:e.key,style:{marginRight:t?"0":"12px",marginLeft:t?"0":"8px",opacity:.4,pointerEvents:"none"},width:20,height:20}),(0,r.tZ)("span",{className:"nav-label",children:a})]})},e.title)}return null};return(0,r.tZ)(O,{collapsible:!0,collapsed:t,trigger:null,style:M,css:Z,collapsedWidth:75,breakpoint:"md","data-testid":"desktop-sidebar",children:(0,r.BX)("div",{css:X,children:[(0,r.BX)("div",{children:[(0,r.BX)("div",{className:"icon-wrapper-desktop",style:{justifyContent:t?"center":"space-evenly",position:"sticky",top:0,zIndex:10,background:"white"},"data-testid":"TopNavbar_MenuIcon_Wrapper",children:[(0,r.tZ)("img",{src:"/images/".concat(t?"menu":"open-menu",".svg"),alt:"menu",onClick:()=>n(),className:"icon-wrapper-menu",width:20,height:20,"data-testid":"TopNavbar_MenuIcon_1"}),(0,r.tZ)("a",{"data-testid":"TopNavbar_RedXLogoDefaultLink",className:t?"hidden-logo":"",onClick:()=>go(o,!0),children:(0,r.tZ)("img",{className:"logo",src:"/images/new-redx-logo.svg",alt:"RedX Logo","data-testid":"TopNavbar_RedXLogoDefault",width:120,height:50})})]}),(0,r.BX)("div",{css:B,children:[(0,r.tZ)(S.Z,{style:{marginTop:"0px"}}),!b.Qo.includes(a)&&(0,r.BX)(r.HY,{children:[(0,r.tZ)("div",{css:D,"data-tut":"create_parcel",className:"create-parcel-button",children:(0,r.tZ)(I.KM,{"data-testid":"top_navbar_create_parcel",text:(0,r.BX)("div",{className:"plus-symbol-wrapper  ".concat(t?"is-collapsed":""),children:[(0,r.tZ)("span",{className:"nav-label",children:g.languages.topNav.Createparcel}),(0,r.tZ)("span",{className:"plus-symbol-expand",children:"+"})]}),priority:"low",onClick:()=>go("/create-parcel",!0,{type:"single"}),css:t?L:H})}),(0,r.tZ)(S.Z,{style:{margin:"10px 0px"}})]}),c.map(renderNavItem)]})]}),(0,r.BX)("div",{css:U,children:[(0,r.tZ)(S.Z,{style:{margin:"10px 0px"}}),s.map(renderNavItem)]})]})})}),M={overflow:"auto",height:"100vh",position:"sticky",insetInlineStart:0,top:0,bottom:0,scrollbarWidth:"thin",scrollbarGutter:"stable",backgroundColor:"white",padding:"0px"}
1,D=(0,w.iv)(Sidebar_templateObject()),H=(0,w.iv)(Sidebar_templateObject1()),L=(0,w.iv)(_templateObject2()),Z=(0,w.iv)(_templateObject3(),(0,c.mq)({width:["80px","80px","100px","100px","100px"],display:["none","none","none","flex","flex"]})),B=(0,w.iv)(_templateObject4()),X=(0,w.iv)(_templateObject5()),U=(0,w.iv)(_templateObject6());var V=n(5152),G=n.n(V),j=n(39332),F=n(12386);function ParcelStatusDropdown_templateObject(){let e=(0,a._)(["\n  .parcel-status-dropdown .parcel-status-menu {\n    font-size: 14px;\n  }\n\n  .parcel-status-dropdown .parcel-status-menu .ant-menu-item {\n    height: 32px;\n    line-height: 32px;\n    margin: 4px 0;\n    padding-left: 12px !important;\n    border-radius: 4px;\n    color: #dc3545; /* Changed to red */\n    transition: all 0.2s ease;\n  }\n\n  .ant-menu-light .ant-menu-submenu-selected > .ant-menu-submenu-title,\n  .ant-menu-light > .ant-menu .ant-menu-submenu-selected > .ant-menu-submenu-title {\n    color: #dc3545;\n  }\n\n  img {\n    max-width: unset;\n    height: unset;\n  }\n\n  .ant-menu-inline.ant-menu-root .ant-menu-item,\n  .ant-menu-inline.ant-menu-root .ant-menu-submenu-title {\n    padding-left: "," !important;\n  }\n\n  .ant-menu-inline .ant-menu-sub.ant-menu-inline {\n    padding-left: "," !important;\n  }\n"]);return ParcelStatusDropdown_templateObject=function(){return e},e}var Dashboard_ParcelStatusDropdown=e=>{var t;let{collapsed:n,hasParcels:a,hasPermission:i,isMobileView:l}=e,o=(0,E.useRouter)(),s={key:"parcelList",path:"/parcel-list",title:"Parcels",iconName:"parcels-sidebar"},c=null!==(t=g.languages.topNav[s.title])&&void 0!==t?t:s.title,d=s.path===o.pathname,p=!a||!i,{parcelStatus:u,parcelStatusUI:m}=o.query,h=["all","active","delivered","returned"],_="";u&&"string"==typeof u&&h.includes(u)?_=u:d&&(_="all"),m&&"string"==typeof m&&h.includes(m)&&(_=m);let f=[{key:"all",label:"All",path:"/parcel-list?parcelStatusUI=all"},{key:"active",label:"Active",path:"/parcel-list?parcelStatus=active"},{key:"delivered",label:"Delivered",path:"/parcel-list?parcelStatus=delivered"},{key:"returned",label:"Returned",path:"/parcel-list?parcelStatus=returned"}],handleStatusChange=e=>{let t=f.find(t=>t.key===e);t&&o.push(t.path)},b=f.map(e=>({key:e.key,label:e.label,onClick:()=>handleStatusChange(e.key)})),y=[{key:"parcel",icon:(0,r.tZ)("img",{src:"/images/sidebar/".concat(d?"active":"inactive","/").concat(s.iconName,".svg"),alt:s.key,style:{marginRight:"0px",marginLeft:!l&&n?"0px":"5px",filter:p?"grayscale(100%)":"none",opacity:p?.5:1},width:20,height:20}),label:c,children:b}];return(0,r.tZ)("div",{css:parcel_status_dropdown_css(l),className:"parcel-status-dropdown",children:(0,r.tZ)(F.default,{mode:"inline",selectedKeys:[_],items:y,style:{border:"none",background:"transparent",padding:0},className:"parcel-status-menu","data-testid":"ParcelStatusDropdown_Menu",disabled:p})})};let parcel_status_dropdown_css=e=>(0,w.iv)(ParcelStatusDropdown_templateObject(),e?"0px":"12px",e?"12px":"24px");var Y=n(57054);function PageLayout_templateObject(){let e=(0,a._)(["\n  .ant-layout {\n    background-color: ",";\n  }\n  background-color: ",";\n  min-height: 100vh;\n  ","\n"]);return PageLayout_templateObject=function(){return e},e}let K=G()(()=>Promise.resolve().then(n.bind(n,45697)),{loadableGenerated:{webpack:()=>[45697]},ssr:!1});var components_PageLayout=function(e){let{children:t,backgroundColor:n}=e,a=(0,p.Z)(),i=(0,E.useRouter)(),o=(0,f.I0)(),c=(0,j.useSearchParams)(),m=c.get("type"),[_,S]=(0,l.useState)(()=>{{let e=localStorage.getItem("sidebar-collapsed");return!!e&&"true"===e}}),{state:R,openModal:P,closeModal:w}=(0,u.X)({isOpen:!1,data:{}}),{selectedShop:I,merchantType:O,shopPermissions:M,shopStores:D}=(0,f.v9)(e=>e.shop),{paymentInfo:H,getPaymentInfoRequestStatus:L}=(0,f.v9)(e=>e.dashboard),{isDownloading:Z}=(0,f.v9)(e=>e.exportParcelHistory),{user:B}=(0,f.v9)(e=>e.auth),X=O===b.K3,U=O===b.a8,V=O===b.Eq,G=O===b.Xw,F=X?"/ltl-dashboard":"/dashboard",z=(0,v.Z)(null==I?void 0:I.ID),W=(0,l.useCallback)(async()=>{if(Z){o((0,Y.E_)());return}localStorage.removeItem("registration_ref_code"),localStorage.removeItem("never_show_tour"),localStorage.removeItem("neverShowParcelTour");try{await x.Z.logOut()}catch(e){console.error(e)}o((0,T.w7)()),o((0,C.Gu)()),i.push("/")},[o,i,Z]);(0,l.useEffect)(()=>
1{h()(I)||(async()=>{let[e]=await Promise.all([o((0,C.MB)({shopId:I.ID,status:void 0})),o((0,A.tL)(I.ID)),o((0,A.Md)(I.ID))]);"shop/getShopStores/fulfilled"===e.type&&e.payload&&0===e.payload.length&&P({pickupPhone:I.SHOP_PHONE})})()},[o,I]),(0,l.useEffect)(()=>{let e=Object.entries({"create-parcel":!0}).find(e=>{let[t]=e;return i.pathname.includes(t)});e&&(S(e[1]),localStorage.setItem("sidebar-collapsed",JSON.stringify(e[1])))},[i.pathname]);let q=(0,l.useMemo)(()=>[{title:g.languages.dashboard.profileSteps.addPickupStore,btnText:g.languages.dashboard.profileSteps.addPickupStoreCta,stepPending:0===D.length,btnCallback:()=>P({pickupPhone:null==I?void 0:I.SHOP_PHONE}),key:1},{title:g.languages.dashboard.profileSteps.setupPayment,btnText:g.languages.dashboard.profileSteps.setupPaymentCta,stepPending:"fulfilled"===L&&null===H,btnCallback:()=>i.push("/update-shop-payment"),key:2},{title:g.languages.dashboard.profileSteps.addNID,btnText:g.languages.dashboard.profileSteps.addNIDCta,stepPending:(null==B?void 0:B.NID_VERIFICATION_STATUS)===null,btnCallback:()=>i.push("/update-nid-info"),key:3}],[D.length,L,H,null==B?void 0:B.NID_VERIFICATION_STATUS,P,null==I?void 0:I.SHOP_PHONE,i]),Q=(0,l.useMemo)(()=>{let getPaymentLinkByMercahntType=e=>e===b.K3?"/c2cPayments":e===b.a8?"/offlinePayments":"/payments",e="item",t="children",n=[{key:"dashboard",path:F,title:"Dashboard",status:"active",pageName:y.a3.DASHBOARD,access:y.OV.ACCESS_TO_PAGE,iconName:"dashboard-sidebar",type:e},{key:"parcelStatusDropdown",children:(0,r.tZ)(Dashboard_ParcelStatusDropdown,{collapsed:_,hasParcels:z,hasPermission:(0,N.F)({shopPermissions:M,pageName:y.a3.PARCEL_LIST,access:y.wh.ACCESS_TO_PAGE}),isMobileView:a}),type:t,title:"Parcel Status Breakdown"},{key:"payments",path:getPaymentLinkByMercahntType(O),title:"Payments",status:X||U||V?"active":null===H?"in active":"active",pageName:y.a3.PAYMENTS,access:y.$R.ACCESS_TO_PAGE,iconName:"payment-info-sidebar",type:e},{key:"myShops",title:"MyShops",path:"/shop-list",status:"active",access:y.wh.ACCESS_TO_PAGE,iconName:"my-shops-sidebar",type:e,hide:U},{key:"shopSettings",title:"ShopSettings",path:null!==H?"/shop-payment":"/update-shop-payment",status:"active",pageName:y.a3.SHOP_PAYMENT_UPDATE,access:y.jU.ACCESS_TO_PAGE,iconName:"shop-settings-sidebar",type:e,hide:X||U},{key:"manageTeam",title:"ManageTeam",path:"/team-management/manage-team",status:"active",pageName:y.a3.MENU,access:y.$P.MANAGE_TEAM,iconName:"manage-team-sidebar",type:e,hide:X||U},{key:"coupons",title:"Coupons",path:"/coupon",status:"active",iconName:"coupons-sidebar",type:e,hide:U},{key:"returnList",path:"/return-list",title:"Return",status:"active",pageName:y.a3.RETURN,access:y.H8.ACCESS_TO_PAGE,iconName:"return-approval-sidebar",type:e,hide:U},{key:"customerAddress",title:"CustomerAddress",path:"/customer-parcel-request/all-parcel-requests",status:"active",iconName:"customer-address",type:e,hide:!I||X||U},{key:"creditHistory",title:"CreditHistory",path:"/credit-history",status:"active",pageName:y.a3.CREDIT_HISTORY,access:y.zM.ACCESS_TO_PAGE,iconName:"credit-history",type:e,hide:X||U},{children:(0,r.tZ)(Dashboard_ProfileProgress,{allProfileSteps:q,collapsed:_}),type:t,title:"ProfileProgress"},{key:"developerApis",title:"DeveloperAPIs",path:"/developer-api",status:"active",iconName:"developer-api-sidebar",type:e,hide:U},{key:"issueList",path:"/issue-list",title:"Issue",status:"active",pageName:y.a3.PARCEL_LIST,access:y.wh.ACCESS_TO_PAGE,iconName:"report-issues-sidebar",type:e,hide:U}].filter(e=>{let{pageName:t,access:n,hide:a}=e;return("boolean"!=typeof a||!a)&&(!t||!n||(0,N.F)({shopPermissions:M,pageName:t,access:n}))}),i=[{path:"/ltl-dashboard",title:"Dashboard",status:"active",key:"ltlDashboard",iconName:"dashboard-sidebar",type:e},{key:"myShops",title:"My Shops",path:"/shop-list",status:"active",access:y.wh.ACCESS_TO_PAGE,iconName:"my-shops-sidebar",type:e,hide:U},{key:"coupons",title:"Coupons",path:"/coupon",status:"active",iconName:"coupons-sidebar",type:e,hide:U},{key:"developerApis",title:"Developer APIs",path:"/developer-api",status:"active",iconName:"developer-api-sidebar",type:e,hide:U}],l=[{key:"parcelList",path:"/parcel-list",title:"Parcels",status:"active",iconName:"parcels-sidebar",type:e},{key:"payments",path:getPaymentLinkByMercahntType(O),title:"Payments",status:"active",iconName:"payment-info-sidebar",type:e}],o=X?i:V?[{key:"dashboard",path:"/consignment-list",title:"Consignments",status:"active",iconName:"dashboard-sidebar",type:e},{key:"payment",path:"/consignment-payments",title:"Payments",status:"active",iconName:"payment-info-sidebar",type:e},{key:"notification",path:"/notification-settings",title:"Notification Settings",status:"active",iconName:"dashboard-sidebar",type:e},{key:"shop-list",path:"/shop-list",title:"My Shops",status:"active",iconName:"my-shops-sidebar",type:e}]:G?l:n;return[...o,{key:"logout",title:"Logout",path:"logout",status:"active",onClick:()=>W(),iconName:"logout",type:e}]},[F,z,O,X,U,V,G,H,I,_,M,W,q]),$="/create-parcel"===i.pathname&&"multiple"===m;return(0,r.BX)(d.default,{"data-testid":"layout-wrapper",css:page_layout_css(n),children:[(0,r.BX)("div",{style:{display:a?"":"flex",minHeight:"100vh",minWidth:"100%"},children:[(0,r.tZ)("div",{style:{width:a?0:_?75:200,transition:"width 0.3s ease",flexShrink:0},children:!a&&(0,r.tZ)(k,{collapsed:_,setCollapsedDesktopSidebar:()=>S(()=>{let e=!_;return localStorage.setItem("sidebar-collapsed",JSON.stringify(e)),e}),merchantType:O,routes:Q,dashboardRoute:F})}),(0,r.BX)(d.default,{"data-testid":"sidebar-wrapper",style:{flex:1,...$&&{minWidth:0,overflow:"hidden"}},children:[(0,r.tZ)(s.l,{mobileRoutes:Q,collapsed:_}),(0,r.tZ)("div",{children:t})]})]}),(0,r.tZ)(K,{isOpen:R.isOpen,onClose:w,defaultValues:R.data})]})};let page_layout_css=e=>
1(0,i.iv)(PageLayout_templateObject(),e||o.colors.nearerWhite,e||o.colors.nearerWhite,(0,c.mq)({paddingBottom:["150px","150px","150px","0","0"]}))},95181:function(e,t,n){n.d(t,{$P:function(){return _},$R:function(){return o},H8:function(){return m},IC:function(){return a},OV:function(){return i},Qn:function(){return s},YR:function(){return E},a3:function(){return r},e:function(){return d},jU:function(){return u},kX:function(){return f},lw:function(){return h},wh:function(){return l},yX:function(){return p},zM:function(){return c}});let a="redxthreeplmerchantpanels",r={DASHBOARD:"dashboard",PARCEL_LIST:"parcellist",PAYMENTS:"payments",SHOP_LIST:"shoplist",CREDIT_HISTORY:"credithistory",CHANGE_PASSWORD:"changepassword",NOTIFICATION_SETTINGS:"notificationsettings",SHOP_PAYMENT_UPDATE:"shoppaymentupdate",RETURN:"reattemptlist",CREATE_PARCEL:"createparcel",MENU:"menu",SHOP_PICKUP:"shoppickup",SHOP_PAYMENT:"shoppayment",COUPONS:"coupons",SHOP_MEMBERS:"shopmembers",SHOP_MEMBER_CREATE:"shopmembercreate",RETURN_NUMBER:"returnnumber"},i={ACCESS_TO_PAGE:"page",REFFERER_BANNER:"referredxbanner",PACKAGING_BANNER:"packagingbanner",ELOAN_DASHBOARD_BANNER:"advancepaymentbanner",ELOAN_WELCOME_MODAL:"advancepaymentwelcomemodal",ELOAN_PAYMENT_SUCCESS_MODAL:"advancepaymentsuccessmodal",ADD_PAYMENT_METHOD_BANNER:"addpaymentmethodbanner",PAYMENT_OUTSTANDING_BANNER:"addpaymentoutstandingbanner",SMART_RETURN_BANNER:"smartreturnbanner",PRE_PAYMENT_BANNER:"prepaymentbanner",BOUNCED_PAYMENT_BANNER:"bouncepaymentbanner",ALL_ORDERS_TAB:"allorderstab",ORDERS_TO_BE_DELIVERED_TAB:"orderstobedeliverdtab",PAYMENT_SUMMARY_TAB:"paymentsummarytab",ADD_NID_BANNER:"addnidbanner",NID_VERIFICATION_FAILED_BANNER:"nidverificationfailedbanner",RETURN_NUMBER_BANNER:"returnnumberbanner"},l={ACCESS_TO_PAGE:"page",PARCEL_EDIT_BUTTON:"parceledit",PARCEL_EXCHANGE_BUTTON:"parcelexchange",PARCEL_PAY_NOW_BUTTON:"parcelpaynow",PARCEL_RAISE_ISSUE_BUTTON:"parcelraiseissue",PARCEL_VIEW_ISSUE_LOG_BUTTON:"parcelviewissuelog",PARCEL_VIEW_CALL_LOG_BUTTON:"parcelviewcalllog",PARCEL_RETURN_BUTTON:"parcelreturn",PARCEL_REATTEMPT_BUTTON:"parcelreattempt",PARCEL_DELETE_BUTTON:"parceldelete"},o={ACCESS_TO_PAGE:"page"},s={ACCESS_TO_PAGE:"page",SHOP_ADD_BUTTON:"shopadd",SHOP_EDIT_BUTTON:"shopedit",SHOP_MANAGE_PICKUP_BUTTON:"managepickup"},c={ACCESS_TO_PAGE:"page"},d={ACCESS_TO_PAGE:"page"},p={ACCESS_TO_PAGE:"page"},u={ACCESS_TO_PAGE:"page"},m={ACCESS_TO_PAGE:"page"},h={ACCESS_TO_PAGE:"page"},E={ACCESS_TO_PAGE:"page"},_={MANAGE_TEAM:"manageteam",COVERAGE_AREA:"coveragearea",CUSTOMER_ADDRESS:"customeraddress",TUTORIALS:"tutorials",FAQ:"faq",LIVE_CHAT:"livechat",LOGOUT:"logout"},f=["dashboard","parcellist","payments","reattemptlist","createparcel","menu"]},87616:function(e,t,n){n.d(t,{T:function(){return useAntNotificationAlert}});var a=n(67294),r=n(25617);function useAntNotificationAlert(e,t,n,i){let l=(0,r.I0)();(0,a.useEffect)(()=>{t&&n&&e&&("rejected"===t?e.error(n):"fulfilled"===t&&e.success(n),i&&setTimeout(()=>{l(i())},2e3))},[t,n,i,l,e])}},44555:function(e,t,n){n.d(t,{$$:function(){return createIssueGlobalTrackingCustomerEvent},A7:function(){return reportProblemsTutorialEvent},Aq:function(){return sendParcelEvent},EK:function(){return merchantTrackDeliveryEvent},Er:function(){return redxPaymentMethodEvent},Kj:function(){return exchangeParcelVideoEvent},Of:function(){return trackGlobalParcelEvent},Sf:function(){return faceIssuePageEvent},aF:function(){return redxDomainEvent},fE:function(){return issueThroughAppTutorialEvent},fl:function(){return merchantReferrerEvent},fr:function(){return createAccountEvent},hA:function(){return createIssueGlobalTrackingMerchantEvent},jw:function(){return redxAppIssueEvent},me:function(){return reportIssueFromWebTutorialEvent},uj:function(){return faceIssueEvent},xZ:function(){return productChangeAfterDeliveryEvent}});var a=n(99261);let merchantTrackDeliveryEvent=e=>{(0,a.Kz)(e,"REDX_MERCHANT_DELIVERY_EVENT",{sourcePanel:"redx-merchant-web",action:"REDX_MERCHANT_DELIVERY_EVENT"}),window.location.href="https://blog.redx.com.bd/how-to-track-parcel/"},merchantReferrerEvent=(e,t)=>
1{(0,a.Kz)(e,"REDX_MERCHANT_REFERRER_EVENT",{sourcePanel:"redx-merchant-web",action:"REDX_MERCHANT_REFERRER_EVENT",referralCode:t})},trackGlobalParcelEvent=e=>{(0,a.Kz)(e,"REDX_MERCHANT_GLOBAL_PARCEL_EVENT",{sourcePanel:"redx-merchant-web",action:"REDX_MERCHANT_GLOBAL_PARCEL_EVENT"}),window.location.href="https://redx.com.bd/track-global-parcel/"},createAccountEvent=e=>{(0,a.Kz)(e,"REDX_MERCHANT_CREATE_ACCOUNT_EVENT",{sourcePanel:"redx-merchant-web",action:"REDX_MERCHANT_CREATE_ACCOUNT_EVENT"}),window.location.href="https://blog.redx.com.bd/how-to-create-redx-account/"},sendParcelEvent=e=>{(0,a.Kz)(e,"REDX_MERCHANT_SEND_PARCEL_EVENT",{sourcePanel:"redx-merchant-web",action:"REDX_MERCHANT_SEND_PARCEL_EVENT"}),window.location.href="https://blog.redx.com.bd/how-to-send-parcels-with-redx/"},exchangeParcelVideoEvent=e=>{(0,a.Kz)(e,"REDX_MERCHANT_EXCHANGE_PARCEL_VIDEO_EVENT",{sourcePanel:"redx-merchant-web",action:"REDX_MERCHANT_EXCHANGE_PARCEL_VIDEO_EVENT"}),window.location.href="https://www.youtube.com/watch?v=KIvhGdTxCNo&list=PLV7mbrLlubt3pPBMxjNVFmJIqBycZzylQ&index=5"},productChangeAfterDeliveryEvent=e=>{(0,a.Kz)(e,"REDX_MERCHANT_PRODUCT_CHANGE_AFTER_DELIVERY_EVENT",{sourcePanel:"redx-merchant-web",action:"REDX_MERCHANT_PRODUCT_CHANGE_AFTER_DELIVERY_EVENT"}),window.location.href="https://blog.redx.com.bd/product-change-after-delivery/"},redxDomainEvent=e=>{(0,a.Kz)(e,"REDX_MERCHANT_DOMAIN_EVENT",{sourcePanel:"redx-merchant-web",action:"REDX_MERCHANT_DOMAIN_EVENT"}),window.location.href="https://redx.com.bd/"},redxPaymentMethodEvent=e=>{(0,a.Kz)(e,"REDX_MERCHANT_PAYMENT_METHOD_EVENT",{sourcePanel:"redx-merchant-web",action:"REDX_MERCHANT_PAYMENT_METHOD_EVENT"}),window.location.href="https://blog.redx.com.bd/redx-payment-method/"},reportIssueFromWebTutorialEvent=e=>{(0,a.Kz)(e,"REDX_MERCHANT_REPORT_ISSUE_TUTORIAL_EVENT",{sourcePanel:"redx-merchant-web",action:"REDX_MERCHANT_REPORT_ISSUE_TUTORIAL_EVENT"}),window.location.href="https://www.youtube.com/watch?v=0lIi8DsGDKc&list=PLV7mbrLlubt1hSqys2QdWaElOFLtj7bim&index=4"},faceIssueEvent=e=>{(0,a.Kz)(e,"REDX_MERCHANT_FACE_ISSUE_EVENT",{sourcePanel:"redx-merchant-web",action:"REDX_MERCHANT_FACE_ISSUE_EVENT"}),window.location.href="https://blog.redx.com.bd/what-will-you-do-if-face-isse/"},issueThroughAppTutorialEvent=e=>{(0,a.Kz)(e,"REDX_MERCHANT_ISSUE_THROUGH_APP_EVENT",{sourcePanel:"redx-merchant-web",action:"REDX_MERCHANT_ISSUE_THROUGH_APP_EVENT"}),window.location.href="https://www.youtube.com/watch?v=qv2cJP9HWv8&list=PLV7mbrLlubt1Xd0E2WFJg3iUtMQynGOm5&index=3"},reportProblemsTutorialEvent=e=>{(0,a.Kz)(e,"REDX_MERCHANT_REPORT_ISSUE_TUTORIAL_EVENT",{sourcePanel:"redx-merchant-web",action:"REDX_MERCHANT_REPORT_ISSUE_TUTORIAL_EVENT"}),window.location.href="https://www.youtube.com/watch?v=0lIi8DsGDKc&list=PLV7mbrLlubt1hSqys2QdWaElOFLtj7bim&index=4"},faceIssuePageEvent=e=>{(0,a.Kz)(e,"REDX_MERCHANT_FACE_ISSUE_EVENT",{sourcePanel:"redx-merchant-web",action:"REDX_MERCHANT_FACE_ISSUE_EVENT"}),window.location.href="https://blog.redx.com.bd/what-will-you-do-if-face-isse/"},redxAppIssueEvent=e=>{(0,a.Kz)(e,"REDX_MERCHANT_ISSUE_THROUGH_APP_EVENT",{sourcePanel:"redx-merchant-web",action:"REDX_MERCHANT_ISSUE_THROUGH_APP_EVENT"}),window.location.href="https://www.youtube.com/watch?v=qv2cJP9HWv8&list=PLV7mbrLlubt1Xd0E2WFJg3iUtMQynGOm5&index=3/"},createIssueGlobalTrackingCustomerEvent=e=>{(0,a.Kz)(e,"REDX_MERCHANT_CREATE_ISSUE_GLOBAL_TRACKING_CUSTOMER_EVENT",{sourcePanel:"redx-merchant-web",action:"REDX_MERCHANT_CREATE_ISSUE_GLOBAL_TRACKING_CUSTOMER_EVENT"})},createIssueGlobalTrackingMerchantEvent=e=>{(0,a.Kz)(e,"REDX_MERCHANT_CREATE_ISSUE_GLOBAL_TRACKING_MERCHANT_EVENT",{sourcePanel:"redx-merchant-web",action:"REDX_MERCHANT_CREATE_ISSUE_GLOBAL_TRACKING_MERCHANT_EVENT"})}},32635:function(e,t,n){n.d(t,{F:function(){return hasPermission}});var a=n(95181);let permissionMatcherCallback=e=>{let{permissionIdToMatch:t,pageName:n,access:r}=e;return t==="".concat(a.IC,":").concat(n,":").concat(r)};function hasPermission(e){let{shopPermissions:t=[""],pageName:n,access:a}=e;return t.some(e=>permissionMatcherCallback({permissionIdToMatch:e,pageName:n,access:a}))}}}]);

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.