forstok-ui-lib 5.12.2 → 5.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2410,16 +2410,53 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
2410
2410
  `,yb=o.default.span`
2411
2411
  letter-spacing: 1.25px;
2412
2412
  display: inline;
2413
- `,bb=t.css`
2413
+ `,bb=o.default.section`
2414
+ display: grid;
2415
+ justify-content: end;
2416
+ padding-left: 10px;
2417
+ `,vb=o.default.section`
2418
+ padding-left: 10px;
2419
+ > :first-child {
2420
+ margin-right: 2px;
2421
+ &::after {
2422
+ position: absolute;
2423
+ content: '';
2424
+ right: 50%;
2425
+ padding: 4px;
2426
+ border-style: solid;
2427
+ border-width: 0 2px 2px 0;
2428
+ transform: rotate(135deg) translate(-50%, -50%);
2429
+ }
2430
+ }
2431
+ > :last-child {
2432
+ &::after {
2433
+ position: absolute;
2434
+ content: '';
2435
+ left: 50%;
2436
+ padding: 4px;
2437
+ border-style: solid;
2438
+ border-width: 0 2px 2px 0;
2439
+ transform: rotate(-45deg) translate(-50%, -50%);
2440
+ }
2441
+ }
2442
+ button {
2443
+ height: 30px;
2444
+ padding: 0 15px;
2445
+ border-radius: 0;
2446
+ &:hover {
2447
+ color: var(--sec-clr-lnk__hvr);
2448
+ }
2449
+ }
2450
+ `,wb=t.css`
2414
2451
  align-items: center;
2415
2452
  display: flex;
2416
2453
  flex: 1;
2417
2454
  flex-wrap: wrap;
2418
2455
  height: 100%;
2419
- `,vb=t.css`
2456
+ `,Cb=t.css`
2420
2457
  background-color: var(--act-clr-bg);
2421
2458
  color: var(--sec-clr);
2422
- `,wb=({$isError:e})=>{if(e)return"\n input { \n border:1px solid var(--err-clr-ln) !important; \n }\n "},Cb=o.default.section`
2459
+ `,kb=({$isError:e})=>{if(e)return"\n input { \n border:1px solid var(--err-clr-ln) !important; \n }\n "},Ib=o.default.section`
2423
2460
  ${j}
2424
2461
  top:100%;
2425
2462
  margin: 8px 0;
@@ -2436,14 +2473,14 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
2436
2473
  @media (min-width: 1280px) {
2437
2474
  width: 660px;
2438
2475
  }
2439
- ${({$mode:e})=>{let t="";return"filterorder"===e?t+=`\n width: auto;\n transform: translateX(-50%);\n ${Db} {\n text-align: center;\n }\n @media (min-width: 768px) {\n width: auto;\n left: 50% !important;\n transform: translateX(-50%);\n }\n @media (min-width: 1024px) {\n width: auto;\n }\n @media (min-width: 1280px) {\n width: 660px;\n ${Db} {\n text-align: left;\n }\n }\n `:"filterdashboard"===e?t+=`\n width: auto;\n left: 50% !important;\n transform: translateX(-50%);\n ${Db} {\n text-align: center;\n }\n @media (min-width: 768px) {\n width: auto;\n left: 50% !important;\n transform: translateX(-50%);\n }\n @media (min-width: 1024px) {\n width: auto;\n }\n @media (min-width: 1280px) {\n width: 660px;\n left: 0 !important;\n transform: none;\n ${Db} {\n text-align: left;\n }\n }\n `:"filterordertofulfill"===e?t+=` \n width: auto;\n left: 50% !important;\n transform: translateX(-50%);\n ${Db} {\n text-align: center;\n }\n @media (min-width: 768px) {\n width: auto;\n left: unset !important;\n right: 0;\n transform: none;\n }\n @media (min-width: 1024px) {\n width: auto;\n }\n @media (min-width: 1280px) {\n width: 660px;\n ${Db} {\n text-align: left;\n }\n }\n `:"popuppayment"===e&&(t+="\n width: auto;\n border-radius: var(--ter-rd);\n "),t}}
2440
- `,kb=o.default.div`
2441
- ${bb}
2476
+ ${({$mode:e})=>{let t="";return"filterorder"===e?t+=`\n width: auto;\n transform: translateX(-50%);\n ${Mb} {\n text-align: center;\n }\n @media (min-width: 768px) {\n width: auto;\n left: 50% !important;\n transform: translateX(-50%);\n }\n @media (min-width: 1024px) {\n width: auto;\n }\n @media (min-width: 1280px) {\n width: 660px;\n ${Mb} {\n text-align: left;\n }\n }\n `:"filterdashboard"===e?t+=`\n width: auto;\n left: 50% !important;\n transform: translateX(-50%);\n ${Mb} {\n text-align: center;\n }\n @media (min-width: 768px) {\n width: auto;\n left: 50% !important;\n transform: translateX(-50%);\n }\n @media (min-width: 1024px) {\n width: auto;\n }\n @media (min-width: 1280px) {\n width: 660px;\n left: 0 !important;\n transform: none;\n ${Mb} {\n text-align: left;\n }\n }\n `:"filterordertofulfill"===e?t+=` \n width: auto;\n left: 50% !important;\n transform: translateX(-50%);\n ${Mb} {\n text-align: center;\n }\n @media (min-width: 768px) {\n width: auto;\n left: unset !important;\n right: 0;\n transform: none;\n }\n @media (min-width: 1024px) {\n width: auto;\n }\n @media (min-width: 1280px) {\n width: 660px;\n ${Mb} {\n text-align: left;\n }\n }\n `:"popuppayment"===e&&(t+="\n width: auto;\n border-radius: var(--ter-rd);\n "),t}}
2477
+ `,Ab=o.default.div`
2478
+ ${wb}
2442
2479
  border: 1px solid var(--ck-clr-ln);
2443
2480
  border-radius: var(--ter-rd);
2444
2481
  cursor: pointer;
2445
2482
  justify-content: space-between;
2446
- ${({$mode:e,$size:t})=>{let n="";return n+="small"===t?"height: 30px;":"height: 36px;","filterorder"===e||"filterdashboard"===e||"filterordertofulfill"===e?n+="\n height: auto;\n border: none;\n ":"popuppayment"===e&&(n+=`\n height: 30px;\n border-radius: var(--ter-rd);\n background-color: hsl(0,0%,100%);\n & ${Ab} {\n color: var(--inp-clr);\n padding-bottom: 0;\n }\n & ${Sb} {\n padding: 0 4px;\n }\n `),n}}
2483
+ ${({$mode:e,$size:t})=>{let n="";return n+="small"===t?"height: 30px;":"height: 36px;","filterorder"===e||"filterdashboard"===e||"filterordertofulfill"===e?n+="\n height: auto;\n border: none;\n ":"popuppayment"===e&&(n+=`\n height: 30px;\n border-radius: var(--ter-rd);\n background-color: hsl(0,0%,100%);\n & ${jb} {\n color: var(--inp-clr);\n padding-bottom: 0;\n }\n & ${Db} {\n padding: 0 4px;\n }\n `),n}}
2447
2484
  `;o.default.section`
2448
2485
  position: relative;
2449
2486
  display: inline-grid;
@@ -2454,14 +2491,14 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
2454
2491
  @media (min-width: 1280px) {
2455
2492
  width: 305px;
2456
2493
  }
2457
- ${({$mode:e})=>{let t=`\n &.is-shown {\n & ${Cb} {\n display: block;\n }\n > div button { box-shadow: var(--act-shd-bx); }\n }\n `;return"filter"===e?t+=`\n width: 100%;\n & ${Cb} {\n width: 100%;\n margin-left: 16px;\n @media (min-width: 768px) {\n width: calc(40vw - 32px);\n }\n }\n & ${kb}, \n & ${Ib}, \n & ${Sb} {\n height: 14px;\n }\n & ${Ib} {\n margin-left: 15px;\n }\n & ${kb} {\n border: 0;\n }\n & ${Ab} {\n padding-top: 3px;\n }\n & ${Sb} {\n margin-top: -5px;\n }\n & ${jb} {\n fill: #429ddf;\n }\n & .DateRangePicker__Month {\n @media (min-width: 768px) {\n width: calc((40vw - 182px) / 2);\n margin: 0 10px;\n }\n @media (min-width: 1280px) {\n width: calc((40vw - 234px) / 2);\n margin: 0 20px;\n }\n }\n ._refCheckboxContainer {\n position: absolute; \n top: 7px;\n left: 0;\n }\n @media (min-width: 768px) {\n width: 100%;\n }\n `:"filterorder"===e||"filterdashboard"===e||"filterordertofulfill"===e?t+="\n width: auto !important;\n ":"popuppayment"===e&&(t+=" \n width: 100% !important;\n &.is-shown {\n > div {\n border: 1px solid var(--pri-clr-ln__fc) !important; \n }\n }\n "),t}}
2458
- `;const Ib=o.default.div`
2459
- ${bb}
2494
+ ${({$mode:e})=>{let t=`\n &.is-shown {\n & ${Ib} {\n display: block;\n }\n > div button { box-shadow: var(--act-shd-bx); }\n }\n `;return"filter"===e?t+=`\n width: 100%;\n & ${Ib} {\n width: 100%;\n margin-left: 16px;\n @media (min-width: 768px) {\n width: calc(40vw - 32px);\n }\n }\n & ${Ab}, \n & ${Sb}, \n & ${Db} {\n height: 14px;\n }\n & ${Sb} {\n margin-left: 15px;\n }\n & ${Ab} {\n border: 0;\n }\n & ${jb} {\n padding-top: 3px;\n }\n & ${Db} {\n margin-top: -5px;\n }\n & ${Eb} {\n fill: #429ddf;\n }\n & .DateRangePicker__Month {\n @media (min-width: 768px) {\n width: calc((40vw - 182px) / 2);\n margin: 0 10px;\n }\n @media (min-width: 1280px) {\n width: calc((40vw - 234px) / 2);\n margin: 0 20px;\n }\n }\n ._refCheckboxContainer {\n position: absolute; \n top: 7px;\n left: 0;\n }\n @media (min-width: 768px) {\n width: 100%;\n }\n `:"filterorder"===e||"filterdashboard"===e||"filterordertofulfill"===e?t+="\n width: auto !important;\n ":"popuppayment"===e&&(t+=" \n width: 100% !important;\n &.is-shown {\n > div {\n border: 1px solid var(--pri-clr-ln__fc) !important; \n }\n }\n "),t}}
2495
+ `;const Sb=o.default.div`
2496
+ ${wb}
2460
2497
  padding: 0 8px;
2461
2498
  position: relative;
2462
2499
  overflow: hidden;
2463
2500
 
2464
- `,Ab=o.default.div`
2501
+ `,jb=o.default.div`
2465
2502
  position: absolute;
2466
2503
  top: 50%;
2467
2504
  max-width: calc(100% - 8px);
@@ -2474,12 +2511,12 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
2474
2511
  padding-bottom: 2px;
2475
2512
  font-weight: 400;
2476
2513
  ${({$size:e})=>{if("small"===e)return"\n font-size: 14px;\n "}}
2477
- `,Sb=o.default.div`
2514
+ `,Db=o.default.div`
2478
2515
  color: #757575;
2479
2516
  display: flex;
2480
2517
  padding: 0 8px;
2481
2518
  transition: color 150ms;
2482
- `,jb=o.default.svg`
2519
+ `,Eb=o.default.svg`
2483
2520
  display: inline-block;
2484
2521
  fill: currentColor;
2485
2522
  stroke: currentColor;
@@ -2491,7 +2528,7 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
2491
2528
  @media (min-width: 1280px) {
2492
2529
  grid-template-columns: 112px 1fr;
2493
2530
  }
2494
- `;const Db=o.default.aside`
2531
+ `;const Mb=o.default.aside`
2495
2532
  display: inline-grid;
2496
2533
  grid-auto-flow: column;
2497
2534
  border-bottom: 1px solid rgba(0, 0, 0, .1);
@@ -2521,7 +2558,7 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
2521
2558
  height: auto;
2522
2559
  border-right: 0;
2523
2560
  }
2524
- ${({$activated:e})=>{if(e)return vb}}
2561
+ ${({$activated:e})=>{if(e)return Cb}}
2525
2562
  `,o.default.aside`
2526
2563
  display: grid;
2527
2564
  width: 100%;
@@ -2539,13 +2576,13 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
2539
2576
  grid-auto-flow: column;
2540
2577
  grid-gap: 8px;
2541
2578
  }
2542
- `;const Eb=o.default.div`
2579
+ `;const Tb=o.default.div`
2543
2580
  position: relative;
2544
2581
  .react-datepicker-wrapper {
2545
2582
  width: 100%;
2546
2583
  }
2547
- ${wb}
2548
- `,Mb=o.default.div`
2584
+ ${kb}
2585
+ `,Nb=o.default.div`
2549
2586
  position: absolute;
2550
2587
  top: 5px;
2551
2588
  right: 2px;
@@ -2570,7 +2607,7 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
2570
2607
  .react-datepicker-wrapper {
2571
2608
  width: 100%;
2572
2609
  }
2573
- ${wb}
2610
+ ${kb}
2574
2611
  `,o.default.div`
2575
2612
  display: inline-block;
2576
2613
  position: fixed;
@@ -2578,20 +2615,20 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
2578
2615
  left: 0;
2579
2616
  z-index: 999;
2580
2617
  &.is-shown {
2581
- & ${Cb} {
2618
+ & ${Ib} {
2582
2619
  display: block;
2583
2620
  }
2584
2621
  }
2585
2622
  `,o.default.div`
2586
2623
  display: flex;
2587
2624
  padding: 0 0 0 12px;
2588
- `;const Tb=e.forwardRef(((t,n)=>{var{dateFormat:r="MMM dd, yyyy",name:i,evChange:a,isField:o,saveFormat:s,showFormat:c,evChangeCustom:d,value:u,isForceUpdate:p,setForceUpdate:h,isError:g=!1,showTimeInput:f=!1,allowEmpty:m=!1}=t,y=l(t,["dateFormat","name","evChange","isField","saveFormat","showFormat","evChangeCustom","value","isForceUpdate","setForceUpdate","isError","showTimeInput","allowEmpty"]);const[b,v]=e.useState(u||(m?null:new Date)),w=e=>{v(e),a&&a(i,e),o&&d&&d(i,e?Tx(e).format(s):e)};return e.useEffect((()=>{if(p){const e=u||(m?null:new Date);v(e),h&&h(!1)}}),[p,h,u,m]),x.jsxs(Eb,Object.assign({$isError:g},y["data-qa-id"]&&{"data-qa-id":y["data-qa-id"]},{children:[x.jsx(Ix,{selected:b,name:i,portalId:"popup-portal",dateFormat:r,onChange:w,showTimeInput:f,onKeyDown:e=>e.preventDefault(),ref:n}),m&&b?x.jsx(Mb,{onClick:()=>w(null),title:"clear",children:x.jsx("svg",{height:"20",width:"20",viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",children:x.jsx("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"})})}):null]}))})),Nb=o.default.div`
2625
+ `;const Ob=e.forwardRef(((t,n)=>{var{dateFormat:r="MMM dd, yyyy",name:i,evChange:a,isField:o,saveFormat:s,showFormat:c,evChangeCustom:d,value:u,isForceUpdate:p,setForceUpdate:h,isError:g=!1,showTimeInput:f=!1,allowEmpty:m=!1}=t,y=l(t,["dateFormat","name","evChange","isField","saveFormat","showFormat","evChangeCustom","value","isForceUpdate","setForceUpdate","isError","showTimeInput","allowEmpty"]);const[b,v]=e.useState(u||(m?null:new Date)),w=e=>{v(e),a&&a(i,e),o&&d&&d(i,e?Tx(e).format(s):e)};return e.useEffect((()=>{if(p){const e=u||(m?null:new Date);v(e),h&&h(!1)}}),[p,h,u,m]),x.jsxs(Tb,Object.assign({$isError:g},y["data-qa-id"]&&{"data-qa-id":y["data-qa-id"]},{children:[x.jsx(Ix,{selected:b,name:i,portalId:"popup-portal",dateFormat:r,onChange:w,showTimeInput:f,onKeyDown:e=>e.preventDefault(),ref:n}),m&&b?x.jsx(Nb,{onClick:()=>w(null),title:"clear",children:x.jsx("svg",{height:"20",width:"20",viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",children:x.jsx("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"})})}):null]}))})),Lb=o.default.div`
2589
2626
  display: grid;
2590
- `,Ob=o.default.div`
2627
+ `,_b=o.default.div`
2591
2628
  display: grid;
2592
2629
  grid-auto-flow: column;
2593
2630
  justify-self: self-start;
2594
- `,Lb=o.default.span`
2631
+ `,Pb=o.default.span`
2595
2632
  position: relative;
2596
2633
  cursor: pointer;
2597
2634
  display: inline-block;
@@ -2626,12 +2663,12 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
2626
2663
  border: none;
2627
2664
  }
2628
2665
  `}}
2629
- `,_b=o.default.input`
2666
+ `,Bb=o.default.input`
2630
2667
  position: absolute;
2631
2668
  opacity: 0;
2632
2669
  pointer-events: none;
2633
2670
  width: auto;
2634
- &:checked + ${Lb} {
2671
+ &:checked + ${Pb} {
2635
2672
  &:before {
2636
2673
  border: 2px solid var(--err-clr-ln);
2637
2674
  }
@@ -2642,7 +2679,7 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
2642
2679
  }
2643
2680
  }
2644
2681
  ${({$mode:e})=>{if("check"===e)return t.css`
2645
- &:checked + ${Lb} {
2682
+ &:checked + ${Pb} {
2646
2683
  &:before,
2647
2684
  &:after {
2648
2685
  border: none;
@@ -2655,16 +2692,16 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
2655
2692
  }
2656
2693
  }
2657
2694
  `}}
2658
- `,Pb=o.default.div`
2695
+ `,Rb=o.default.div`
2659
2696
  > input:checked + label::after {
2660
2697
  left: 16px;
2661
2698
  }
2662
2699
  > input:checked + label {
2663
2700
  background-color: var(--sw-clr-bg__fc);
2664
2701
  }
2665
- `,Bb=o.default.input`
2702
+ `,Fb=o.default.input`
2666
2703
  display: none;
2667
- `,Rb=o.default.label`
2704
+ `,Gb=o.default.label`
2668
2705
  position: relative;
2669
2706
  display: inline-block;
2670
2707
  width: 32px;
@@ -2684,7 +2721,7 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
2684
2721
  left: 1px;
2685
2722
  transition: all 0.3s;
2686
2723
  }
2687
- `,Fb=t=>{var{isForceUpdate:n,setForceUpdate:r,reset:i,setReset:a,evChange:o}=t,s=l(t,["isForceUpdate","setForceUpdate","reset","setReset","evChange"]);const{id:c,defaultChecked:d}=s,[u,p]=e.useState(d||!1);e.useEffect((()=>{n&&(p(d||!1),r&&r(!1)),i&&(p(!1),a&&a(!1))}),[n,r,i,a,d,p]);let h=Object.assign({},s);return delete h.defaultChecked,x.jsxs(Pb,{children:[x.jsx(Bb,Object.assign({type:"checkbox",checked:u,onChange:e=>{(e=>{const t=e.target.checked;p(t)})(e),o&&o(e)}},h)),x.jsx(Rb,{role:"checkbox-label",htmlFor:c})]})},Gb=t.css`
2724
+ `,Wb=t=>{var{isForceUpdate:n,setForceUpdate:r,reset:i,setReset:a,evChange:o}=t,s=l(t,["isForceUpdate","setForceUpdate","reset","setReset","evChange"]);const{id:c,defaultChecked:d}=s,[u,p]=e.useState(d||!1);e.useEffect((()=>{n&&(p(d||!1),r&&r(!1)),i&&(p(!1),a&&a(!1))}),[n,r,i,a,d,p]);let h=Object.assign({},s);return delete h.defaultChecked,x.jsxs(Rb,{children:[x.jsx(Fb,Object.assign({type:"checkbox",checked:u,onChange:e=>{(e=>{const t=e.target.checked;p(t)})(e),o&&o(e)}},h)),x.jsx(Gb,{role:"checkbox-label",htmlFor:c})]})},Yb=t.css`
2688
2725
  overflow: hidden;
2689
2726
  position: relative;
2690
2727
  top: 0;
@@ -2697,7 +2734,7 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
2697
2734
  font-size: 1em
2698
2735
  color: var(--hd-clr);
2699
2736
  transition: width .25s ease-in-out;
2700
- `,Wb=t.css`
2737
+ `,Vb=t.css`
2701
2738
  overflow: hidden;
2702
2739
  position: relative;
2703
2740
  top: 0;
@@ -2712,14 +2749,14 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
2712
2749
  align-self: flex-start;
2713
2750
  cursor: pointer;
2714
2751
  }
2715
- `,Yb=t.css`
2752
+ `,Hb=t.css`
2716
2753
  overflow: auto;
2717
2754
  top: auto;
2718
2755
  height: auto;
2719
2756
  padding: 0;
2720
2757
  border: 0;
2721
2758
  cursor: default;
2722
- `,Vb=t.css`
2759
+ `,$b=t.css`
2723
2760
  input, textarea, .table-image-figure.is-error, .rc-cascader-selector, ._refCascaderContainer > div {
2724
2761
  border: 1px solid var(--err-clr-ln) !important;
2725
2762
  }
@@ -2732,7 +2769,7 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
2732
2769
  border: none !important;
2733
2770
  }
2734
2771
  }
2735
- `,Hb=t.css`
2772
+ `,zb=t.css`
2736
2773
  .table-image-figure {
2737
2774
  display: block;
2738
2775
  overflow: hidden;
@@ -2816,7 +2853,7 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
2816
2853
  background-color: var(--pri-clr-bg);
2817
2854
  }
2818
2855
  }
2819
- `,$b=t.css`
2856
+ `,Xb=t.css`
2820
2857
  .truncate-overflow {
2821
2858
  position: relative;
2822
2859
  max-height: calc(16 * 3)px;
@@ -2832,14 +2869,14 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
2832
2869
  line-height: 16px;
2833
2870
  }
2834
2871
  }
2835
- `,zb=o.default.section`
2872
+ `,Zb=o.default.section`
2836
2873
  position: relative;
2837
- `,Xb=o.default.article`
2874
+ `,qb=o.default.article`
2838
2875
  display: inline-block;
2839
2876
  width: 100vw;
2840
2877
  height: 100vh;
2841
2878
  position: relative;
2842
- `,Zb=o.default.section`
2879
+ `,Qb=o.default.section`
2843
2880
  display: inline-block;
2844
2881
  width: 100vw;
2845
2882
  height: calc(100vh - 220px);
@@ -2849,13 +2886,13 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
2849
2886
  @media only screen and (min-width: 768px) {
2850
2887
  height: calc(100vh - 140px);
2851
2888
  }
2852
- ${({$mode:e})=>{let t="";return"edit-master"===e||"create-listing"===e||"edit-listing"===e?(t+="\n height: calc(100vh - 120px);\n @media only screen and (min-width: 768px) {\n height: calc(100vh - 70px);\n }\n ","create-listing"!==e&&"edit-listing"!==e||(t+=`\n ${Kb} .cell-colGroup {\n &, > div {\n min-height: 122px;\n }\n .cell-uneditable {\n min-width: 449px;\n }\n }\n `)):"create-inbound"===e||"create-outbound"===e||"create-adjustment"===e?t+="\n height: calc(100vh - 164px - 367px);\n @media only screen and (min-width: 768px) {\n height: calc(100vh - 70px - 239px);\n }\n @media only screen and (min-width: 1024px) {\n height: calc(100vh - 70px - 180px);\n }\n ":"create-transfer"===e&&(t+="\n height: calc(100vh - 120px - 426px);\n @media only screen and (min-width: 768px) {\n height: calc(100vh - 76px - 249px);\n }\n @media only screen and (min-width: 1024px) {\n height: calc(100vh - 76px - 180px);\n }\n "),t}}
2853
- `,qb=o.default.article`
2889
+ ${({$mode:e})=>{let t="";return"edit-master"===e||"create-listing"===e||"edit-listing"===e?(t+="\n height: calc(100vh - 120px);\n @media only screen and (min-width: 768px) {\n height: calc(100vh - 70px);\n }\n ","create-listing"!==e&&"edit-listing"!==e||(t+=`\n ${tv} .cell-colGroup {\n &, > div {\n min-height: 122px;\n }\n .cell-uneditable {\n min-width: 449px;\n }\n }\n `)):"create-inbound"===e||"create-outbound"===e||"create-adjustment"===e?t+="\n height: calc(100vh - 164px - 367px);\n @media only screen and (min-width: 768px) {\n height: calc(100vh - 70px - 239px);\n }\n @media only screen and (min-width: 1024px) {\n height: calc(100vh - 70px - 180px);\n }\n ":"create-transfer"===e&&(t+="\n height: calc(100vh - 120px - 426px);\n @media only screen and (min-width: 768px) {\n height: calc(100vh - 76px - 249px);\n }\n @media only screen and (min-width: 1024px) {\n height: calc(100vh - 76px - 180px);\n }\n "),t}}
2890
+ `,Ub=o.default.article`
2854
2891
  display: inline-grid;
2855
2892
  grid-auto-flow: row;
2856
2893
  padding-bottom: 1px;
2857
2894
  min-width: 100vw;
2858
- `,Qb=o.default.section`
2895
+ `,Jb=o.default.section`
2859
2896
  display: inline-block;
2860
2897
  width: 100%;
2861
2898
  position: relative;
@@ -2864,7 +2901,7 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
2864
2901
  transition: left 0s linear;
2865
2902
  visibility: hidden;
2866
2903
  > section > div {
2867
- ${Gb}
2904
+ ${Yb}
2868
2905
  & >header {
2869
2906
  position: absolute;
2870
2907
  top: 50% !important;
@@ -2895,7 +2932,7 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
2895
2932
  min-width: 100%;
2896
2933
  overflow-y: hidden;
2897
2934
  }
2898
- `,Ub=o.default.section`
2935
+ `,Kb=o.default.section`
2899
2936
  display: inline-block;
2900
2937
  width: 100%;
2901
2938
  height: 50px;
@@ -2908,16 +2945,16 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
2908
2945
  position: relative;
2909
2946
  top: 2px;
2910
2947
  }
2911
- `,Jb=o.default.section`
2948
+ `,ev=o.default.section`
2912
2949
  display: inline-grid;
2913
2950
  grid-auto-flow: row;
2914
2951
  height: 100%;
2915
2952
  align-content: start;
2916
- `,Kb=o.default.article`
2953
+ `,tv=o.default.article`
2917
2954
  position: relative;
2918
2955
  border-bottom: 1px solid var(--tab-clr-ln);
2919
- ${Hb}
2920
- ${$b}
2956
+ ${zb}
2957
+ ${Xb}
2921
2958
  &.is-highlighted, &.is-fullfilled {
2922
2959
  background-color: rgba(232, 255, 237, .7);
2923
2960
  .cell-rowGroup {
@@ -2947,10 +2984,10 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
2947
2984
  }
2948
2985
  }
2949
2986
  > div {
2950
- ${Wb}
2987
+ ${Vb}
2951
2988
  }
2952
2989
  .custom-error {
2953
- ${Vb}
2990
+ ${$b}
2954
2991
  }
2955
2992
  .cell {
2956
2993
  > div:not(.truncate-overflow) {
@@ -3019,7 +3056,7 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
3019
3056
  }
3020
3057
  &-error {
3021
3058
  &:not(.cell-custom_select):not(.cell-custom_input) {
3022
- ${Vb}
3059
+ ${$b}
3023
3060
  }
3024
3061
  }
3025
3062
  &-uneditable {
@@ -3063,7 +3100,7 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
3063
3100
  border-right: 0;
3064
3101
  line-height: 0;
3065
3102
  > div {
3066
- ${Wb}
3103
+ ${Vb}
3067
3104
  &:first-child {
3068
3105
  > div {
3069
3106
  display: grid;
@@ -3073,7 +3110,7 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
3073
3110
  }
3074
3111
  }
3075
3112
  .cell-rowGroup {
3076
- ${Yb}
3113
+ ${Hb}
3077
3114
  position: absolute;
3078
3115
  top: 0;
3079
3116
  display: inline-grid;
@@ -3086,7 +3123,7 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
3086
3123
  border-bottom: 0;
3087
3124
  }
3088
3125
  > div {
3089
- ${Wb}
3126
+ ${Vb}
3090
3127
  }
3091
3128
  .cell-disabled {
3092
3129
  background-color: rgb(250, 250, 250);
@@ -3192,7 +3229,7 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
3192
3229
  ${({$mode:e})=>{let t="";return"create-transfer"===e||"confirm-inbound"===e||"confirm-outbound"===e||"confirm-adjustment"===e?t+='\n > div {\n min-height: 66px;\n &.cell-colGroup {\n > div { \n min-height: 66px; \n }\n }\n &.cell-rowGroup {\n .cell-row {\n &, > div { \n min-height: 66px; \n }\n }\n }\n .cell {\n &-label {\n &:not([data-key="item"]) {\n > span, .cell-wrapper {\n padding-top: 6px;\n }\n }\n }\n &-trash {\n > article, >div {\n padding-top: 6px;\n }\n }\n &-checkbox {\n padding-top: 22px;\n }\n }\n }\n ':"create-return"===e?t+='\n > div {\n .cell {\n &-label {\n &:not([data-key="item"]) {\n > span, .cell-wrapper {\n padding-top: 6px;\n }\n }\n }\n &-trash {\n > article, >div {\n padding-top: 6px;\n }\n }\n &-checkbox {\n padding-top: 22px;\n }\n }\n }\n ':"create-price"===e?t+=`\n > div {\n min-height: 100px;\n &.cell-colGroup {\n > div { \n min-height: 100px; \n }\n }\n &.cell-rowGroup {\n .cell-row {\n &, \n > div { \n min-height: 100px; \n }\n }\n }\n }\n ._refErrorContainer {\n ${A}\n }\n `:"create-adjustment"!==e&&"create-outbound"!==e||(t+=" \n > div {\n min-height: 90px;\n &.cell-colGroup {\n > div { \n min-height: 90px; \n }\n }\n &.cell-rowGroup {\n .cell-row {\n &, \n > div { \n min-height: 90px; \n }\n }\n }\n }\n "),t}}
3193
3230
  `;o.default.section`
3194
3231
  overflow: hidden;
3195
- ${Hb}
3232
+ ${zb}
3196
3233
  .ck-editor__editable {
3197
3234
  min-height: 200px;
3198
3235
  max-height: 200px;
@@ -3256,14 +3293,14 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
3256
3293
  ${({$mode:e})=>{if("switch"===e)return t.css`
3257
3294
  grid-auto-flow: column;
3258
3295
  `}}
3259
- `;const ev=o.default.article`
3296
+ `;const nv=o.default.article`
3260
3297
  display: inline-grid;
3261
3298
  width: 100%;
3262
3299
  grid-auto-flow: column;
3263
3300
  grid-template-columns: max-content auto;
3264
3301
  grid-gap: 10px;
3265
3302
  align-items: center;
3266
- `,tv=o.default.div`
3303
+ `,rv=o.default.div`
3267
3304
  display: inline-grid;
3268
3305
  width: 100%;
3269
3306
  grid-auto-flow: row;
@@ -3292,7 +3329,7 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
3292
3329
  line-height: 13px;
3293
3330
  }
3294
3331
  }
3295
- `,nv=o.default.div`
3332
+ `,iv=o.default.div`
3296
3333
  height: auto;
3297
3334
  max-height: 34px;
3298
3335
  white-space: nowrap;
@@ -3306,7 +3343,7 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
3306
3343
  -webkit-line-clamp: 2;
3307
3344
  -webkit-box-orient: vertical;
3308
3345
  }
3309
- `,rv=o.default.article`
3346
+ `,av=o.default.article`
3310
3347
  ${({$mode:e})=>{if("add"===e)return t.css`
3311
3348
  div {
3312
3349
  position: relative;
@@ -3314,7 +3351,7 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
3314
3351
  text-align: center;
3315
3352
  }
3316
3353
  `}}
3317
- `,iv=o.default.article`
3354
+ `,ov=o.default.article`
3318
3355
  display: inline-grid;
3319
3356
  position: relative;
3320
3357
  width: 100%;
@@ -3347,7 +3384,7 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
3347
3384
  grid-auto-flow: row;
3348
3385
  grid-gap: 10px;
3349
3386
  input, textarea { box-shadow: none; }
3350
- ${({$isExpand:e,$isEditable:t})=>{let n="";return e&&(n+=`\n & ${iv} {\n padding-bottom: 8px;\n }\n `),!1===t&&(n+="\n grid-gap: 4px;\n padding-left: 4px;\n padding-top: 6px;\n "),n}}
3387
+ ${({$isExpand:e,$isEditable:t})=>{let n="";return e&&(n+=`\n & ${ov} {\n padding-bottom: 8px;\n }\n `),!1===t&&(n+="\n grid-gap: 4px;\n padding-left: 4px;\n padding-top: 6px;\n "),n}}
3351
3388
  `,o.default.div`
3352
3389
  width: 429px;
3353
3390
  display: block;
@@ -3373,15 +3410,15 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
3373
3410
  grid-auto-flow: row;
3374
3411
  grid-gap:8px;
3375
3412
  font-size: 13px;
3376
- ${({$isVariant:e,$isTotal:t})=>e?`\n padding: 12px !important;\n border-bottom: 1px solid #e3e3e3;\n & ${av} {\n grid-template-columns: 90px repeat(${t||4}, 114px);\n > aside {\n padding-left: 0;\n }\n }\n `:`\n padding-bottom: 8px;\n ${av} {\n grid-template-columns: repeat(4,150px);\n }\n `}
3377
- `;const av=o.default.div`
3413
+ ${({$isVariant:e,$isTotal:t})=>e?`\n padding: 12px !important;\n border-bottom: 1px solid #e3e3e3;\n & ${sv} {\n grid-template-columns: 90px repeat(${t||4}, 114px);\n > aside {\n padding-left: 0;\n }\n }\n `:`\n padding-bottom: 8px;\n ${sv} {\n grid-template-columns: repeat(4,150px);\n }\n `}
3414
+ `;const sv=o.default.div`
3378
3415
  display: grid;
3379
3416
  grid-auto-flow: column;
3380
3417
  grid-template-columns: 110px auto;
3381
3418
  grid-gap:10px;
3382
3419
  align-items: baseline;
3383
3420
  justify-content: start;
3384
- `,ov=o.default.div`
3421
+ `,lv=o.default.div`
3385
3422
  grid-gap: 12px !important;
3386
3423
  > a {
3387
3424
  position: relative;
@@ -3398,7 +3435,7 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
3398
3435
  }
3399
3436
  }
3400
3437
  }
3401
- `,sv=o.default.div`
3438
+ `,cv=o.default.div`
3402
3439
  display: inline-grid;
3403
3440
  width: 100%;
3404
3441
  grid-auto-flow: row;
@@ -3416,34 +3453,34 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
3416
3453
  font-size: 13px;
3417
3454
  }
3418
3455
  }
3419
- `,lv=o.default.span`
3456
+ `,dv=o.default.span`
3420
3457
  display: inline-block;
3421
3458
  font-weight: 600;
3422
3459
  margin-top: 5px;
3423
3460
  width: 100%;
3424
- `,cv=o.default.span`
3461
+ `,uv=o.default.span`
3425
3462
  display: flex;
3426
3463
  margin-top: 5px;
3427
3464
  font-size: 12px;
3428
3465
  text-wrap: wrap;
3429
3466
  word-wrap: break-word;
3430
- `,dv=({data:e,heightContent:t,firstHeaderColumnsWidth:n,evCheckbox:r,headerColumns:i,switchEditor:a,totalColGroupWidth:o,lastHeaderColumnsWidth:s,evRemove:l,type:c,isRemovable:d})=>e.map(((e,u)=>{const p=t?e.variants.length*t:e.variants.length;let h=u;if("putaway-inbound"===c)h=e.id;else h=u;return x.jsxs(Kb,{className:"_refMasterTableBodyContent",style:{height:p},children:[x.jsxs("div",{className:"cell-colGroup",style:{height:p},children:[x.jsx("div",{className:"cell cell-checkbox",style:{width:n,height:p},children:x.jsxs("article",{children:[x.jsx("div",{children:u+1}),x.jsx(he,{id:`checkbox-list-${u}`,name:"checkbox-list",extendKey:u.toString(),onClick:r})]})},0),i.filter((e=>!(null==e?void 0:e.isHidden))).filter((e=>"colGroup"===e.type)).map(((t,n)=>{const r=e[t.key],i=n+1,o=(null==e?void 0:e[t.key+"_error"])||"",s=a(u,t,r,o,void 0,p,e);return x.jsx("div",{"data-idx":u,"data-key":t.key,className:`cell cell-${t.fieldType} ${o?"cell-error":""}`,style:{width:t.width,height:p},children:s},i)}))]},0),x.jsx("div",{className:"cell-rowGroup",style:{left:o,overflow:"hidden"},children:e.locations.map(((n,r)=>{var o;const p="create-adjustment"===c?r+"-"+((null===(o=n.batchId)||void 0===o?void 0:o.value)||"0")+"-"+(n.location||"0"):r;let h=[];return x.jsxs("div",{className:"cell-row","data-row":r,style:{height:t},children:[i.filter((e=>!(null==e?void 0:e.isHidden))).filter((e=>"colGroup"!==e.type)).map(((t,i)=>{var o,s,l,c,d;const p=i+1;let g=null,f="",m=!1,y=t.key.replace("locations-","");if(-1===y.indexOf("-"))g=n[y],f=(null===(s=null===(o=null==e?void 0:e.locations)||void 0===o?void 0:o[r])||void 0===s?void 0:s[y+"_error"])||"";else{const t=y.split("-"),i=t[0],a=t[1],o=n[i]?n[i].length:0;if(o){let t=0;h.filter((e=>e===y)).length&&(t=h.filter((e=>e===y)).length),g=o>t?n[i][t][a]:null,f=o>t?null===(c=null===(l=null==e?void 0:e.locations)||void 0===l?void 0:l[r])||void 0===c?void 0:c[i][t][a+"_error"]:null,h.push(y)}}"adjustLocation"!==(null==t?void 0:t.condition)&&"countAdjustment"!==(null==t?void 0:t.condition)||(null===(d=e.locations[r])||void 0===d?void 0:d.location)||(m=!0);const b=a(u,t,g,f,r);return x.jsx("div",{"data-idx":u,"data-key":t.key,"data-row":r,className:`cell cell-${t.fieldType} ${f?"cell-error":""} ${m?"cell-disabled":""}`,style:{width:t.width},children:b},p)})),d?x.jsx("div",{"data-idx":u,"data-key":"trash","data-row":r,className:"cell cell-trash",onClick:l,style:{width:s},children:x.jsx("div",{children:x.jsx(Se,{$name:"trash",$width:"18px","data-qa-id":`mt-icon-trash-${u}${null!==r?"-"+r:""}`})})},i.length+1):null]},p)}))},1)]},h)})),uv=({data:e,firstHeaderColumnsWidth:t,evCheckbox:n,headerColumns:r,switchEditor:i,lastHeaderColumnsWidth:a,evRemove:o,type:s,isRemovable:l})=>e.map(((e,c)=>{var d;let u=c;switch(s){case"create-promotion":case"create-adjustment":case"create-price":case"create-inbound":case"create-outbound":case"create-transfer":case"confirm-adjustment":case"confirm-inbound":case"confirm-outbound":u=e.id;break;case"create-return":u=(null===(d=null==e?void 0:e.product)||void 0===d?void 0:d.id)||c;break;default:u=c}let p="";return"edit-picklist"===s?p=e.qtyOrdered===e.qtyPicked?"is-fullfilled":"":"create-package"===s?p=e.qtyOrdered===e.qtyPack?"is-fullfilled":"":"create-return"===s&&(p=e.qtyOrdered-e.qtyReturned===e.qtyToReturn?"is-fullfilled":""),x.jsx(Kb,{$mode:s,id:`row-${u}`,className:`_refMasterTableBodyContent ${p}`,children:x.jsxs("div",{className:"cell-colGroup",children:[x.jsx("div",{className:"cell cell-checkbox",style:{width:t},children:l?x.jsxs("article",{children:[x.jsx("div",{children:c+1}),x.jsx("div",{children:x.jsx(he,{id:`checkbox-list-${c}`,name:"checkbox-list",extendKey:c.toString(),onClick:n})})]}):x.jsx("div",{children:c+1})},0),r.filter((e=>!(null==e?void 0:e.isHidden))).filter((e=>"colGroup"===e.type)).map(((t,n)=>{const r=e[t.key],a=n+1,o=(null==e?void 0:e[t.key+"_error"])||"",l=i(c,t,r,o,void 0,"auto",e);let d=!1;if("create-price"===s&&"price"!==t.key&&"salePrice"!==t.key&&"item"!==t.key){const n=t.key.split("_");"salePrice"===n[1]||"saleStartAt"===n[1]||"saleEndAt"===n[1]?void 0===e[`${n[0]}_salePrice`]&&void 0===e[`${n[0]}_saleStartAt`]&&void 0===e[`${n[0]}_saleEndAt`]&&(d=!0):void 0===r&&(d=!0)}return x.jsx("div",{"data-idx":c,"data-key":t.key,className:`cell cell-${t.fieldType} ${d?"cell-disabled":""} ${o?"cell-error":""}`,style:{width:t.width},children:l},a)})),l?x.jsx("div",{"data-idx":c,"data-key":"trash",className:"cell cell-trash",style:{width:a},onClick:o,children:x.jsx("div",{children:x.jsx(Se,{$name:"trash",$width:"18px","data-qa-id":`mt-icon-trash-${c}`})})},r.length+1):null]},0)},u)})),pv=({head:t,value:n,height:r,evChange:i,idx:a,variantIdx:o,error:s,evCloseEditor:l})=>{const[c,d]=e.useState(!1),[u,p]=e.useState(n||null),[h,g]=e.useState(!0),[f,m]=e.useState(!1),y=e.useRef(null),b=t.format||"DD/MM/YYYY",w=`${t.key}-${a}${void 0!==o?"-"+o:""}`;e.useEffect((()=>{const e=n?Tx(n,b).toDate():n;p(e)}),[b,n]);const C=e.useCallback((e=>{const n=document.getElementById("cur-key"),r=n?n.innerHTML:"";r&&r===w&&(i(t,e,a,o),l((()=>{d(!1)})))}),[w,t,a,o,i,l]);e.useEffect((()=>{if(h)g(!1);else{const e=u?Tx(u).format(b):u;C(e)}}),[u,C,h,b]),e.useEffect((()=>{const e=document.body,t=e=>{if(!c)return!1;const t=e.target;return!t.closest(".react-datepicker")&&!t.closest(".cell-wrapper")&&(t.closest(".master-editor")?void 0:(p(u),void l((()=>{d(!1)}))))};return e.addEventListener("click",t),()=>e.removeEventListener("click",t)}),[u,c,l]);const k=`${t.name.toLowerCase().replaceAll(" ","-")}-${a}${void 0!==o?"-"+o:""}`;return c?x.jsx("div",{className:"master-editor",children:x.jsx(Tb,Object.assign({ref:y,saveFormat:b,evChange:(e,t)=>{p(t),m(!0)},name:t.fieldType+"_"+t.key},u&&{value:u},{isError:!!s,isForceUpdate:f,setForceUpdate:m,"data-qa-id":`mt-field-date-${k}`},(null==t?void 0:t.allowEmpty)&&{allowEmpty:t.allowEmpty},(null==t?void 0:t.showFormat)&&{showFormat:t.showFormat}))}):x.jsx("section",{onClick:e=>{e.preventDefault();const t=e.target;if(t.closest(".cell-disabled"))return!1;const n=document.getElementById("cur-key");n&&(n.innerHTML=w),d(!c);const r=t.closest(".cell");c?r&&r.classList.remove("cell-editing"):r&&r.classList.add("cell-editing")},className:"cell-wrapper",children:t.multiline?x.jsxs(x.Fragment,{children:[!u&&s?x.jsx(v,{$color:"blue",style:{fontWeight:500},children:"+ Add"}):x.jsx("div",{className:"truncate-overflow",style:{maxHeight:r?parseInt(r)-34:"auto"},"data-qa-id":`mt-input-label-${k}`,children:(null==t?void 0:t.showFormat)&&u?Tx(u,b).format(t.showFormat):u}),s&&x.jsx(ap,{$mode:"table",children:s})]}):x.jsxs(x.Fragment,{children:[!u&&s?x.jsx(v,{$color:"blue",style:{fontWeight:500},children:"+ Add"}):x.jsx("div",{"data-qa-id":`mt-input-label-${k}`,children:(null==t?void 0:t.showFormat)&&u?Tx(u,b).format(t.showFormat):u}),s&&x.jsx(ap,{$mode:"table",children:s})]})})},hv=({head:t,value:n,evChange:r,idx:i,variantIdx:a,error:o,isForceUpdate:s,setForceUpdate:l})=>{const c=`${t.key}-${i}${void 0!==a?"-"+a:""}`,d=e.useCallback((e=>{const n=document.getElementById("cur-key"),o=n?n.innerHTML:"";o&&o===c&&r(t,e,i,a)}),[c,t,i,a,r]),u=t.format||"DD/MM/YYYY",p=`${t.name.toLowerCase().replaceAll(" ","-")}-${i}${void 0!==a?"-"+a:""}`,h=n?Tx(n,u).toDate():n;return x.jsx("div",{className:"master-editor",children:void 0===n&&"sale"===(null==t?void 0:t.condition)?x.jsx(v,{$color:"grey",children:"No Listing yet!"}):x.jsx(Tb,Object.assign({saveFormat:u,evChange:(e,t)=>{const n=document.getElementById("cur-key");n&&(n.innerHTML=c);const r=t?Tx(t).format(u):t;d(r)},name:t.fieldType+"_"+t.key,value:h},(null==t?void 0:t.allowEmpty)&&{allowEmpty:!0},o&&{isError:!0,"data-tip":o,"data-place":"top","data-type":"error"},{isForceUpdate:s,setForceUpdate:l,"data-qa-id":`mt-field-date-${p}`},(null==t?void 0:t.showFormat)&&{showFormat:t.showFormat}))})},gv=({head:t,value:n,height:r,evChange:i,idx:a,variantIdx:o,error:s,evCloseEditor:l,content:c})=>{const[d,u]=e.useState(!1),[p,h]=e.useState(n||""),[g,f]=e.useState(!0);e.useEffect((()=>{h(n)}),[n]);const m=`${t.key}-${a}${void 0!==o?"-"+o:""}`,y=e.useCallback((e=>{const n=document.getElementById("cur-key"),r=n?n.innerHTML:"";r&&r===m&&(i(t,e,a,o),l((()=>{u(!1)})))}),[m,t,a,o,i,l]);e.useEffect((()=>{g?f(!1):y(p)}),[p,y,g]);const b=H((e=>{}),250),w=e=>{const n=e.value,r="Integer"===t.typeData?!p&&!n||parseInt(p)===parseInt(n):p===n;h(n),r&&l((()=>{u(!1)}))},C=`${t.name.toLowerCase().replaceAll(" ","-")}-${a}${void 0!==o?"-"+o:""}`,k="Currency"===t.typeData||"Integer"===t.typeData?null!==p?p:"":p?"string"==typeof p?p.toString().trim():p:"";let I=x.jsx("div",{"data-qa-id":`mt-input-label-${C}`,children:U(n,t.key)});if("priceAdjustment"===(null==t?void 0:t.condition)||"priceAdjustment-sale"===(null==t?void 0:t.condition)){let e=parseInt(n||0)-parseInt(c[`${t.key}_base`]||0),r=q(e);e>0?r="+"+q(e):0===e&&(r=""),I=x.jsxs("div",{children:[x.jsx("div",{"data-qa-id":`mt-input-label-${C}`,children:U(n,t.key)}),0!==e&&null!==e&&!s&&x.jsx(lv,{style:{color:V(e)},children:r})]})}return d?x.jsx("div",{className:"master-editor",children:t.multiline?x.jsx(vp,{name:t.fieldType+"_"+t.key,defaultValue:p,evChange:e=>{b(e.target)},evBlur:e=>{b(e.target),w(e.target)}}):x.jsx(se,Object.assign({type:"Integer"===t.typeData?"number":"text"},"Currency"===t.typeData&&{mode:"currency"},{name:t.fieldType+"_"+t.key,defaultValue:p,evChange:e=>{b(e.target)},evBlur:e=>{b(e.target),w(e.target)},evKeyUp:e=>{if("Enter"===e.key){e.preventDefault();const n=e.currentTarget.value,r="Integer"===t.typeData?parseInt(p)===parseInt(n):p===n;return h(n),void(r&&l((()=>{u(!1)})))}},"data-qa-id":`mt-input-${C}`}))}):x.jsx("section",{onClick:e=>{e.preventDefault();const t=e.target;if(t.closest(".cell-disabled"))return!1;const n=document.getElementById("cur-key");n&&(n.innerHTML=m),u(!d);const r=t.closest(".cell");d?r&&r.classList.remove("cell-editing"):r&&r.classList.add("cell-editing"),setTimeout((()=>{const e=r.querySelector("input");e&&e.focus(),e&&e.select()}),1)},className:"cell-wrapper",children:t.multiline?x.jsxs(x.Fragment,{children:[""===k&&s?x.jsx(v,{$color:"blue",style:{fontWeight:500},children:"+ Add"}):x.jsx("div",{className:"truncate-overflow","data-qa-id":`mt-input-label-${C}`,style:{maxHeight:r?parseInt(r)-34:"auto"},children:U(n,t.key)}),s&&x.jsx(ap,{$mode:"table",children:s})]}):x.jsxs(x.Fragment,{children:[""===k&&s?x.jsx(v,{$color:"blue",style:{fontWeight:500},children:"+ Add"}):I,s&&x.jsx(ap,{$mode:"table",children:s})]})})},fv=({head:t,value:n,evChange:r,idx:i,variantIdx:a,error:o,content:s,type:l,isForceUpdate:c,setForceUpdate:d})=>{const u=`${t.key}-${i}${void 0!==a?"-"+a:""}`,p=e.useCallback((e=>{const n=document.getElementById("cur-key"),o=n?n.innerHTML:"";o&&o===u&&r(t,e,i,a)}),[u,t,i,a,r]),h=H((e=>{}),250),g=e=>{p(e.value)},f=e=>{if("Enter"===e.key)return e.preventDefault(),void p(e.currentTarget.value)},m=e=>{e.persist(),setTimeout((()=>{const t=e.target,n=t.value;""!==n&&null!=n&&(t&&t.focus(),t&&t.select())}),1);const t=document.getElementById("cur-key");t&&(t.innerHTML=u)},y=U(n,t.key),b=["shipping","platformRebate"],v=t.multiline?x.jsx(vp,Object.assign({name:t.fieldType+"_"+t.key,defaultValue:n,evChange:e=>{h(e.target)},evBlur:e=>{h(e.target),g(e.target)},onClick:e=>{e.persist();const t=document.getElementById("cur-key");t&&(t.innerHTML=u)}},o&&{isError:!0,"data-tip":o,"data-place":"top","data-type":"error"})):x.jsx(se,Object.assign({type:"Integer"===t.typeData?"number":"text",name:t.fieldType+"_"+t.key,defaultValue:n,evChange:e=>{h(e.target)},evBlur:e=>{h(e.target),g(e.target)},onKeyUp:f,onClick:m,onFocus:m,isForceUpdate:c,setForceUpdate:d,"data-qa-id":`mt-input-${t.name.toLowerCase().replaceAll(" ","-")}-${i}${void 0!==a?"-"+a:""}`},"Currency"===t.typeData&&{mode:"currency",aliasLabel:b.includes(t.key)?"+":"-"},t.placeholder&&{placeholder:t.placeholder},o&&{isError:!0,"data-tip":o,"data-place":"top","data-type":"error"}));let w=x.jsx("div",{className:"master-editor",children:v});return"countAdjustment"===(null==t?void 0:t.condition)?w=x.jsx("div",{className:"master-editor",children:x.jsxs(x.Fragment,{children:[v,null!==n&&n<s.qtyReserved&&x.jsx(cv,{style:{color:"red"},children:"Qty Available'll be minus"})]})}):"countOutbound"===(null==t?void 0:t.condition)&&(w=x.jsx("div",{className:"master-editor",children:x.jsxs(x.Fragment,{children:[v,null!==n&&n>s.qtyOnHand&&x.jsx(cv,{style:{color:"red"},children:"Qty On Hand'll be minus"})]})})),"create-paymentreceive"===l?x.jsx(se,Object.assign({type:"Integer"===t.typeData?"number":"text",disabled:s.orderCashless&&"shipping"===t.key||!1,name:t.fieldType+"_"+t.key,defaultValue:y,evChange:e=>{h(e.target)},evBlur:e=>{h(e.target),g(e.target)},evKeyUp:f,onClick:m,onFocus:m,"data-qa-id":`mt-input-${t.name.toLowerCase().replaceAll(" ","-")}-${i}${void 0!==a?"-"+a:""}`},"Currency"===t.typeData&&{mode:"currency",aliasLabel:b.includes(t.key)?"+":"-"},t.placeholder&&{placeholder:t.placeholder},o&&{isError:!0,"data-tip":o,"data-place":"top","data-type":"error"})):w},mv=({head:t,value:n,evChange:r,evOpenPopup:i,idx:a,variantIdx:o,resultPopup:s,setResultPopup:l,error:c,evCloseEditor:d})=>{const u=`${t.key}-${a}${void 0!==o?"-"+o:""}`,p=e.useCallback((e=>{const n=document.getElementById("cur-key"),i=n?n.innerHTML:"";i&&i===u&&(r(t,e,a,o),d())}),[u,t,a,o,r,d]);e.useEffect((()=>(s&&"image"in s&&(l&&l(null),p(s.image)),()=>{l&&l(null)})),[s,l,p]);return x.jsxs("section",{className:"cell-wrapper",onClick:e=>{e.preventDefault();const t=e.target;if(t.closest(".cell-disabled"))return!1;const n=document.getElementById("cur-key");n&&(n.innerHTML=u);const r=t.closest(".cell");r&&r.classList.add("cell-editing"),i&&i(e,"cell-wrapper")},"data-popup":"table-image","data-detail":JSON.stringify({title:t.name,value:n,head:t}),children:[c&&-1===c.indexOf("minimum")&&-1===c.indexOf("maximum")?x.jsx(v,{$color:"blue",style:{fontWeight:500},children:"+ Add"}):x.jsx("div",{children:n&&x.jsx("figure",{className:"table-image-figure","data-qa-id":`mt-image-${t.name.toLowerCase().replaceAll(" ","-")}-${a}${void 0!==o?"-"+o:""}`,children:x.jsx(ha,{src:Array.isArray(n)?n[0]:n})})}),c&&x.jsx(ap,{$mode:"table",children:c.replace("Product","")})]})},xv=({head:e,value:t,height:n,idx:r,evOpenPopup:i,content:a,type:o})=>{let s=t?"object"==typeof(l=t)&&!Array.isArray(l)&&null!==l&&Object.keys(t).length?t[Object.keys(t)[0]]:t:"Integer"===e.typeData?t.toString():"";var l;let c;if("product"===(null==e?void 0:e.condition)){const e=t.imageUrl?Array.isArray(t.imageUrl)&&t.imageUrl.length?t.imageUrl[0]:t.imageUrl:"";c=x.jsx("section",{className:"cell-wrapper",children:x.jsxs(tv,{children:[x.jsxs("section",{children:[x.jsx("figure",{className:"table-image-figure",children:x.jsx(ha,{src:e})}),x.jsxs("div",{children:[x.jsx(nv,{children:t.name}),t.totalVariant&&x.jsxs("span",{className:"counter-product-label",children:[t.totalVariant," variants"]})]})]}),x.jsxs("section",{children:[x.jsxs("div",{children:[x.jsx(Hx,{$size:"medium",children:"Category: "})," ",t.category||"No Category"]}),x.jsxs("div",{children:[x.jsx(Hx,{$size:"medium",children:"Brand: "})," ",t.brand||"No Brand"]})]})]})})}else if("addVariant"===(null==e?void 0:e.condition))c=x.jsx("section",{className:"cell-wrapper","data-detail":JSON.stringify({idx:r,data:a}),"data-popup":"add-variant-master",children:x.jsx(rv,{$mode:"add",children:x.jsx("div",{onClick:e=>i&&i(e,"cell-wrapper"),children:x.jsx(v,{color:"blue",title:"Add Variant",style:{fontWeight:500},children:"+ Add"})})})});else if("item"===(null==e?void 0:e.condition)){const e=t.imageUrl?Array.isArray(t.imageUrl)&&t.imageUrl.length?t.imageUrl[0]:t.imageUrl:"";c=x.jsx("section",{className:"cell-wrapper",children:x.jsxs(ev,{children:[x.jsx(Qx,{$size:"30px",children:x.jsx(ha,{alt:t.name,$mode:"product",src:e||""})}),x.jsxs("div",{children:[x.jsx(nv,{children:x.jsx("strong",{children:t.name})}),t.sku&&x.jsxs(Hx,{$size:"medium",children:[x.jsx("span",{children:"SKU:"}),x.jsx(P,{target:"_blank",href:`https://app.forstok.com/dashboard/items/master/${encodeURIComponent(t.sku)}?src=sku`,children:t.sku})]})]})]})})}else if("productPicklist"===(null==e?void 0:e.condition)){const e=t.imageUrl?Array.isArray(t.imageUrl)&&t.imageUrl.length?t.imageUrl[0]:t.imageUrl:"";c=x.jsx("section",{className:"cell-wrapper",children:x.jsxs(ev,{children:[x.jsx(Qx,{$size:"30px",children:x.jsx(ha,{alt:t.name,$mode:"product",src:e||""})}),x.jsxs("div",{style:{display:"grid",gridGap:"4px"},children:[x.jsx(v,{style:{fontWeight:600},children:t.name}),x.jsxs(Hx,{$size:"medium",children:[x.jsx("span",{children:"SKU:"}),t.sku?x.jsx(P,{target:"_blank",href:`https://app.forstok.com/dashboard/items/master/${encodeURIComponent(t.sku)}?src=sku`,children:t.sku}):"-"]}),x.jsxs(Hx,{$size:"medium",children:[x.jsx("span",{children:"UPC:"}),t.barcode||"-"]})]})]})})}else if("option"===(null==e?void 0:e.condition))c=x.jsx(v,{$elipsis:!1,className:"multi-elipsis",children:t||"-"});else if("adjustment"===(null==e?void 0:e.condition)){let t=a.quantity-a.availableQuantity;t>0?t="+"+t:0===t&&(t=""),c=x.jsx(v,{$elipsis:!1,id:`text-${e.key}-${r}`,className:"multi-elipsis",style:Object.assign({display:"inline"},(null==e?void 0:e.align)&&{textAlign:e.align}),children:t||"-"})}else if("countAdjustment"===(null==e?void 0:e.condition)){let t=0;null!==a.quantity&&void 0!==a.quantity&&(t=a.quantity-a.qtyOnHand);const n=t>0?"+"+t:t;c=t?x.jsx(lv,{id:`text-${e.key}-${r}`,className:"multi-elipsis",style:{color:V(t),textAlign:(null==e?void 0:e.align)||";eft"},children:n}):x.jsx(x.Fragment,{})}else c="store"===(null==e?void 0:e.condition)?x.jsx("section",{className:"cell-wrapper",children:x.jsx(sv,{children:x.jsxs("section",{children:[t.channelImage?x.jsx(ha,{$mode:"store",alt:t.channelName,src:t.channelImage,width:"30px"}):x.jsx(Zx,{style:{fontSize:"10px",width:"30px",height:"30px",backgroundColor:t.channelColor||"#000000"},children:t.channelInitials}),x.jsxs("div",{children:[x.jsx("strong",{className:"multi-elipsis",title:null==t?void 0:t.accountName,children:(null==t?void 0:t.accountName)||"-"}),x.jsxs(P,{target:"_blank",href:`https://app.forstok.com/dashboard/invoices/salesinvoices/${a.invoiceId}`,children:["INV-",a.invoiceId]})]})]})})}):x.jsx("section",{className:"cell-wrapper",children:x.jsx("div",Object.assign({className:"truncate-overflow"},n&&"auto"!==n&&{style:{maxHeight:n?parseInt(n)-34:"auto"}},(null==e?void 0:e.align)&&{style:{textAlign:e.align}},{children:s}))});return c},yv=({head:t,value:n,height:r,evChange:i,idx:a,variantIdx:o,error:s,evCloseEditor:l})=>{var c,d;const[u,p]=e.useState(!1),[h,g]=e.useState(null),[f,m]=e.useState(null!==n||void 0!==n?n:""),[y,b]=e.useState(!1),[w,C]=e.useState(!0),k=`${t.key}-${a}${void 0!==o?"-"+o:""}`,I=e.useCallback((e=>{const n=document.getElementById("cur-key"),r=n?n.innerHTML:"";r&&r===k&&(i(t,e,a,o),l&&l((()=>{p(!1)})))}),[k,t,a,o,i,l]);e.useEffect((()=>{w?y?I(f):C(!1):I(f)}),[f,I,w,y]),e.useEffect((()=>{const e=document.body,t=e=>{if(!u)return!1;const t=e.target,n=t.dataset.id||"";return(!n||!/^react-select/.test(n))&&(t.closest(".master-editor ._refSelectContainer")?void 0:(m(f),void l((()=>{p(!1)}))))};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}),[f,u,l]);e.useEffect((()=>{if(!h){const e=document.getElementById("master-categories"),n=(null==t?void 0:t.schema)&&"master_category"===t.schema?""!==e.innerHTML?JSON.parse(ee(e.innerHTML)):[]:t.options||[];g&&g(n)}}),[t,h]);const A="Boolean"===t.typeData?(null===(c=t.options)||void 0===c?void 0:c.filter((e=>e.value===n)).length)?t.options.filter((e=>e.value===n))[0]:n:n?"string"==typeof n?{value:n,label:n}:n:{},S="Boolean"===t.typeData&&(null===(d=t.options)||void 0===d?void 0:d.filter((e=>e.value===n)).length)?t.options.filter((e=>e.value===n))[0].label:n,j=`${t.name.toLowerCase().replaceAll(" ","-")}-${a}${void 0!==o?"-"+o:""}`;return u?x.jsx("div",{className:"master-editor",children:x.jsx(rp,Object.assign({options:h,defaultValue:A,mode:"small-table",name:t.fieldType+"_"+t.key,evCreate:e=>{m(e),b(!0)},evChange:e=>{const t=e;(null==t?void 0:t.value)&&m(t.value),b(!0)},isForceUpdate:y,setForceUpdate:b,"data-qa-id":`mt-select-${j}`},"category"===t.key&&{isCreateable:!0}))}):x.jsx("section",{onClick:e=>{e.preventDefault();const t=e.target;if(t.closest(".cell-disabled"))return!1;const n=document.getElementById("cur-key");n&&(n.innerHTML=k),p(!u);const r=t.closest(".cell");u?r&&r.classList.remove("cell-editing"):r&&r.classList.add("cell-editing")},className:"cell-wrapper",children:t.multiline?x.jsxs(x.Fragment,{children:[""===f&&s?x.jsx(v,{$color:"blue",style:{fontWeight:500},children:"+ Add"}):x.jsx("div",{className:"truncate-overflow","data-qa-id":`mt-select-label-${j}`,style:{maxHeight:r?parseInt(r)-34:"auto"},children:S}),s&&x.jsx(ap,{$mode:"table",children:s})]}):x.jsxs(x.Fragment,{children:[""===f&&s?x.jsx(v,{$color:"blue",style:{fontWeight:500},children:"+ Add"}):x.jsx("div",{"data-qa-id":`mt-select-label-${j}`,children:S}),s&&x.jsx(ap,{$mode:"table",children:s})]})})},bv=({head:t,value:n,evChange:r,idx:i,variantIdx:a,error:o,isForceUpdate:s,setForceUpdate:l,content:c})=>{var d,u;const[p,h]=e.useState(null),g=`${t.key}-${i}${void 0!==a?"-"+a:""}`,f=e.useCallback((e=>{const n=document.getElementById("cur-key"),o=n?n.innerHTML:"";o&&o===g&&r(t,e,i,a)}),[g,t,i,a,r]),m=e.useCallback((()=>{let e=[];if(null==c?void 0:c.dataLocations)if("locations-batchId"===t.key){const t=c.dataLocations.filter((e=>{var t,n;return e.location===(null===(n=null===(t=c.locations)||void 0===t?void 0:t[a||0])||void 0===n?void 0:n.location)}));t.length&&(e=t.map((e=>e.batchId)).filter(((e,t,n)=>n.indexOf(e)===t)).map((e=>({value:e,label:e}))))}else if("locations-expiryDate"===t.key){const t=c.dataLocations.filter((e=>{var t,n,r,i;return e.location===(null===(n=null===(t=c.locations)||void 0===t?void 0:t[a||0])||void 0===n?void 0:n.location)&&e.batchId===(null===(i=null===(r=c.locations)||void 0===r?void 0:r[a||0])||void 0===i?void 0:i.batchId.value)}));t.length&&(e=t.map((e=>({value:e.expiryDate,label:Tx(e.expiryDate,"YYYY-MM-DD HH:mm:ss ZZ").format("D MMM YYYY, hh:mm A")}))))}return e}),[c,t,a]);e.useEffect((()=>{if(!p){const e=document.getElementById("master-categories");let n=[];if("qtyToReturn"===(null==t?void 0:t.condition)){const e=c.qtyOrdered-c.qtyReturned;for(let t=0;t<=e;t++)n.push({value:t,label:t})}else n=(null==t?void 0:t.schema)?"master_category"===t.schema&&""!==(null==e?void 0:e.innerHTML)?JSON.parse(ee(null==e?void 0:e.innerHTML)):[]:m().length?m():t.options||[];h(n)}}),[c,m,t,p]),e.useEffect((()=>{if(s){const e=m();e.length&&h(e),l&&l(!1)}}),[c,m,t,s,l,a]);const y="qtyToReturn"===(null==t?void 0:t.condition)?{value:n,label:n}:"Boolean"===t.typeData?(null===(d=t.options)||void 0===d?void 0:d.filter((e=>e.value===n)).length)?t.options.filter((e=>e.value===n))[0]:n:n?"string"==typeof n?{value:n,label:n}:n:{},b=`${t.name.toLowerCase().replaceAll(" ","-")}-${i}${void 0!==a?"-"+a:""}`;return"adjustLocation"!==(null==t?void 0:t.condition)||(null===(u=c.locations[a||0])||void 0===u?void 0:u.location)?x.jsx("div",{className:"master-editor",children:x.jsx(rp,Object.assign({},"category"===t.key&&{isCreateable:!0},{options:p,defaultValue:y,mode:"small-table",name:t.fieldType+"_"+t.key,evCreate:e=>{const t=document.getElementById("cur-key");t&&(t.innerHTML=g),f(e),l&&l(!0)},evChange:e=>{const n=e,r=document.getElementById("cur-key");r&&(r.innerHTML=g),"qtyToReturn"===(null==t?void 0:t.condition)?f(null==n?void 0:n.value):f(n),l&&l(!0)},isForceUpdate:s,setForceUpdate:l,"data-qa-id":`mt-select-${b}`},o&&{isError:!0,"data-tip":o,"data-place":"top","data-type":"error"},{placeholder:`Select ${t.name}`}))}):null},vv=({head:t,value:n,evChange:r,idx:i,variantIdx:a,evCloseEditor:o})=>{const[s,l]=e.useState(n||!1),[c,d]=e.useState(!0),u=`${t.name.toLowerCase().replaceAll(" ","-")}-${i}${void 0!==a?"-"+a:""}`;e.useEffect((()=>{const e=document.getElementById(`${t.fieldType}_${u}`);e&&(e.checked=n),l(n)}),[n,t,u]);const p=`${t.key}-${i}${void 0!==a?"-"+a:""}`,h=e.useCallback((e=>{const n=document.getElementById("cur-key"),s=n?n.innerHTML:"";s&&s===p&&(r(t,e,i,a),o())}),[p,t,i,a,r,o]);e.useEffect((()=>{c?d(!1):h(s)}),[s,h,c]);const g=s;return x.jsx("div",{className:"master-editor",children:x.jsx(Fb,{name:t.fieldType+"_"+t.key,id:`${t.fieldType}_${u}`,"aria-label":t.name,value:s.toString(),defaultChecked:g,"data-qa-id":`mt-checkbox-${u}`,evChange:e=>{(e=>{const t=document.getElementById("cur-key");t&&(t.innerHTML=p);const n=e.closest(".cell");n&&n.classList.add("cell-editing");const r=e.checked,i=s===r;l(r),i&&o()})(e.target)}})})},wv=({head:t,value:n,height:r,evChange:i,evOpenPopup:a,idx:o,variantIdx:s,resultPopup:l,setResultPopup:c,evCloseEditor:d})=>{const u=`${t.key}-${o}${void 0!==s?"-"+s:""}`,p=e.useCallback((e=>{const n=document.getElementById("cur-key"),r=n?n.innerHTML:"";r&&r===u&&(i(t,e,o,s),d())}),[u,t,o,s,i,d]);e.useEffect((()=>{l&&"tag"in l&&(c&&c(null),p(l.tag))}),[l,c,p]);return x.jsx("section",{className:"cell-wrapper",onClick:e=>{e.preventDefault();const t=e.target;if(t.closest(".cell-disabled"))return!1;const n=document.getElementById("cur-key");n&&(n.innerHTML=u);const r=t.closest(".cell");r&&r.classList.add("cell-editing"),a&&a(e,"cell-wrapper")},"data-popup":"table-tag","data-detail":JSON.stringify({title:t.name,value:n}),children:x.jsx("div",{className:"truncate-overflow",style:{maxHeight:r?parseInt(r)-34:"auto"},children:n&&n.map(((e,t)=>x.jsx("span",{children:e},t)))})})},Cv=({value:e,height:t})=>x.jsx("section",{className:"cell-wrapper",children:x.jsx("div",Object.assign({className:"truncate-overflow"},t&&"auto"!==t&&{style:{maxHeight:t?parseInt(t)-34:"auto"}},{children:e}))}),kv=t.css`
3467
+ `,pv=({data:e,heightContent:t,firstHeaderColumnsWidth:n,evCheckbox:r,headerColumns:i,switchEditor:a,totalColGroupWidth:o,lastHeaderColumnsWidth:s,evRemove:l,type:c,isRemovable:d})=>e.map(((e,u)=>{const p=t?e.variants.length*t:e.variants.length;let h=u;if("putaway-inbound"===c)h=e.id;else h=u;return x.jsxs(tv,{className:"_refMasterTableBodyContent",style:{height:p},children:[x.jsxs("div",{className:"cell-colGroup",style:{height:p},children:[x.jsx("div",{className:"cell cell-checkbox",style:{width:n,height:p},children:x.jsxs("article",{children:[x.jsx("div",{children:u+1}),x.jsx(he,{id:`checkbox-list-${u}`,name:"checkbox-list",extendKey:u.toString(),onClick:r})]})},0),i.filter((e=>!(null==e?void 0:e.isHidden))).filter((e=>"colGroup"===e.type)).map(((t,n)=>{const r=e[t.key],i=n+1,o=(null==e?void 0:e[t.key+"_error"])||"",s=a(u,t,r,o,void 0,p,e);return x.jsx("div",{"data-idx":u,"data-key":t.key,className:`cell cell-${t.fieldType} ${o?"cell-error":""}`,style:{width:t.width,height:p},children:s},i)}))]},0),x.jsx("div",{className:"cell-rowGroup",style:{left:o,overflow:"hidden"},children:e.locations.map(((n,r)=>{var o;const p="create-adjustment"===c?r+"-"+((null===(o=n.batchId)||void 0===o?void 0:o.value)||"0")+"-"+(n.location||"0"):r;let h=[];return x.jsxs("div",{className:"cell-row","data-row":r,style:{height:t},children:[i.filter((e=>!(null==e?void 0:e.isHidden))).filter((e=>"colGroup"!==e.type)).map(((t,i)=>{var o,s,l,c,d;const p=i+1;let g=null,f="",m=!1,y=t.key.replace("locations-","");if(-1===y.indexOf("-"))g=n[y],f=(null===(s=null===(o=null==e?void 0:e.locations)||void 0===o?void 0:o[r])||void 0===s?void 0:s[y+"_error"])||"";else{const t=y.split("-"),i=t[0],a=t[1],o=n[i]?n[i].length:0;if(o){let t=0;h.filter((e=>e===y)).length&&(t=h.filter((e=>e===y)).length),g=o>t?n[i][t][a]:null,f=o>t?null===(c=null===(l=null==e?void 0:e.locations)||void 0===l?void 0:l[r])||void 0===c?void 0:c[i][t][a+"_error"]:null,h.push(y)}}"adjustLocation"!==(null==t?void 0:t.condition)&&"countAdjustment"!==(null==t?void 0:t.condition)||(null===(d=e.locations[r])||void 0===d?void 0:d.location)||(m=!0);const b=a(u,t,g,f,r);return x.jsx("div",{"data-idx":u,"data-key":t.key,"data-row":r,className:`cell cell-${t.fieldType} ${f?"cell-error":""} ${m?"cell-disabled":""}`,style:{width:t.width},children:b},p)})),d?x.jsx("div",{"data-idx":u,"data-key":"trash","data-row":r,className:"cell cell-trash",onClick:l,style:{width:s},children:x.jsx("div",{children:x.jsx(Se,{$name:"trash",$width:"18px","data-qa-id":`mt-icon-trash-${u}${null!==r?"-"+r:""}`})})},i.length+1):null]},p)}))},1)]},h)})),hv=({data:e,firstHeaderColumnsWidth:t,evCheckbox:n,headerColumns:r,switchEditor:i,lastHeaderColumnsWidth:a,evRemove:o,type:s,isRemovable:l})=>e.map(((e,c)=>{var d;let u=c;switch(s){case"create-promotion":case"create-adjustment":case"create-price":case"create-inbound":case"create-outbound":case"create-transfer":case"confirm-adjustment":case"confirm-inbound":case"confirm-outbound":u=e.id;break;case"create-return":u=(null===(d=null==e?void 0:e.product)||void 0===d?void 0:d.id)||c;break;default:u=c}let p="";return"edit-picklist"===s?p=e.qtyOrdered===e.qtyPicked?"is-fullfilled":"":"create-package"===s?p=e.qtyOrdered===e.qtyPack?"is-fullfilled":"":"create-return"===s&&(p=e.qtyOrdered-e.qtyReturned===e.qtyToReturn?"is-fullfilled":""),x.jsx(tv,{$mode:s,id:`row-${u}`,className:`_refMasterTableBodyContent ${p}`,children:x.jsxs("div",{className:"cell-colGroup",children:[x.jsx("div",{className:"cell cell-checkbox",style:{width:t},children:l?x.jsxs("article",{children:[x.jsx("div",{children:c+1}),x.jsx("div",{children:x.jsx(he,{id:`checkbox-list-${c}`,name:"checkbox-list",extendKey:c.toString(),onClick:n})})]}):x.jsx("div",{children:c+1})},0),r.filter((e=>!(null==e?void 0:e.isHidden))).filter((e=>"colGroup"===e.type)).map(((t,n)=>{const r=e[t.key],a=n+1,o=(null==e?void 0:e[t.key+"_error"])||"",l=i(c,t,r,o,void 0,"auto",e);let d=!1;if("create-price"===s&&"price"!==t.key&&"salePrice"!==t.key&&"item"!==t.key){const n=t.key.split("_");"salePrice"===n[1]||"saleStartAt"===n[1]||"saleEndAt"===n[1]?void 0===e[`${n[0]}_salePrice`]&&void 0===e[`${n[0]}_saleStartAt`]&&void 0===e[`${n[0]}_saleEndAt`]&&(d=!0):void 0===r&&(d=!0)}return x.jsx("div",{"data-idx":c,"data-key":t.key,className:`cell cell-${t.fieldType} ${d?"cell-disabled":""} ${o?"cell-error":""}`,style:{width:t.width},children:l},a)})),l?x.jsx("div",{"data-idx":c,"data-key":"trash",className:"cell cell-trash",style:{width:a},onClick:o,children:x.jsx("div",{children:x.jsx(Se,{$name:"trash",$width:"18px","data-qa-id":`mt-icon-trash-${c}`})})},r.length+1):null]},0)},u)})),gv=({head:t,value:n,height:r,evChange:i,idx:a,variantIdx:o,error:s,evCloseEditor:l})=>{const[c,d]=e.useState(!1),[u,p]=e.useState(n||null),[h,g]=e.useState(!0),[f,m]=e.useState(!1),y=e.useRef(null),b=t.format||"DD/MM/YYYY",w=`${t.key}-${a}${void 0!==o?"-"+o:""}`;e.useEffect((()=>{const e=n?Tx(n,b).toDate():n;p(e)}),[b,n]);const C=e.useCallback((e=>{const n=document.getElementById("cur-key"),r=n?n.innerHTML:"";r&&r===w&&(i(t,e,a,o),l((()=>{d(!1)})))}),[w,t,a,o,i,l]);e.useEffect((()=>{if(h)g(!1);else{const e=u?Tx(u).format(b):u;C(e)}}),[u,C,h,b]),e.useEffect((()=>{const e=document.body,t=e=>{if(!c)return!1;const t=e.target;return!t.closest(".react-datepicker")&&!t.closest(".cell-wrapper")&&(t.closest(".master-editor")?void 0:(p(u),void l((()=>{d(!1)}))))};return e.addEventListener("click",t),()=>e.removeEventListener("click",t)}),[u,c,l]);const k=`${t.name.toLowerCase().replaceAll(" ","-")}-${a}${void 0!==o?"-"+o:""}`;return c?x.jsx("div",{className:"master-editor",children:x.jsx(Ob,Object.assign({ref:y,saveFormat:b,evChange:(e,t)=>{p(t),m(!0)},name:t.fieldType+"_"+t.key},u&&{value:u},{isError:!!s,isForceUpdate:f,setForceUpdate:m,"data-qa-id":`mt-field-date-${k}`},(null==t?void 0:t.allowEmpty)&&{allowEmpty:t.allowEmpty},(null==t?void 0:t.showFormat)&&{showFormat:t.showFormat}))}):x.jsx("section",{onClick:e=>{e.preventDefault();const t=e.target;if(t.closest(".cell-disabled"))return!1;const n=document.getElementById("cur-key");n&&(n.innerHTML=w),d(!c);const r=t.closest(".cell");c?r&&r.classList.remove("cell-editing"):r&&r.classList.add("cell-editing")},className:"cell-wrapper",children:t.multiline?x.jsxs(x.Fragment,{children:[!u&&s?x.jsx(v,{$color:"blue",style:{fontWeight:500},children:"+ Add"}):x.jsx("div",{className:"truncate-overflow",style:{maxHeight:r?parseInt(r)-34:"auto"},"data-qa-id":`mt-input-label-${k}`,children:(null==t?void 0:t.showFormat)&&u?Tx(u,b).format(t.showFormat):u}),s&&x.jsx(ap,{$mode:"table",children:s})]}):x.jsxs(x.Fragment,{children:[!u&&s?x.jsx(v,{$color:"blue",style:{fontWeight:500},children:"+ Add"}):x.jsx("div",{"data-qa-id":`mt-input-label-${k}`,children:(null==t?void 0:t.showFormat)&&u?Tx(u,b).format(t.showFormat):u}),s&&x.jsx(ap,{$mode:"table",children:s})]})})},fv=({head:t,value:n,evChange:r,idx:i,variantIdx:a,error:o,isForceUpdate:s,setForceUpdate:l})=>{const c=`${t.key}-${i}${void 0!==a?"-"+a:""}`,d=e.useCallback((e=>{const n=document.getElementById("cur-key"),o=n?n.innerHTML:"";o&&o===c&&r(t,e,i,a)}),[c,t,i,a,r]),u=t.format||"DD/MM/YYYY",p=`${t.name.toLowerCase().replaceAll(" ","-")}-${i}${void 0!==a?"-"+a:""}`,h=n?Tx(n,u).toDate():n;return x.jsx("div",{className:"master-editor",children:void 0===n&&"sale"===(null==t?void 0:t.condition)?x.jsx(v,{$color:"grey",children:"No Listing yet!"}):x.jsx(Ob,Object.assign({saveFormat:u,evChange:(e,t)=>{const n=document.getElementById("cur-key");n&&(n.innerHTML=c);const r=t?Tx(t).format(u):t;d(r)},name:t.fieldType+"_"+t.key,value:h},(null==t?void 0:t.allowEmpty)&&{allowEmpty:!0},o&&{isError:!0,"data-tip":o,"data-place":"top","data-type":"error"},{isForceUpdate:s,setForceUpdate:l,"data-qa-id":`mt-field-date-${p}`},(null==t?void 0:t.showFormat)&&{showFormat:t.showFormat}))})},mv=({head:t,value:n,height:r,evChange:i,idx:a,variantIdx:o,error:s,evCloseEditor:l,content:c})=>{const[d,u]=e.useState(!1),[p,h]=e.useState(n||""),[g,f]=e.useState(!0);e.useEffect((()=>{h(n)}),[n]);const m=`${t.key}-${a}${void 0!==o?"-"+o:""}`,y=e.useCallback((e=>{const n=document.getElementById("cur-key"),r=n?n.innerHTML:"";r&&r===m&&(i(t,e,a,o),l((()=>{u(!1)})))}),[m,t,a,o,i,l]);e.useEffect((()=>{g?f(!1):y(p)}),[p,y,g]);const b=H((e=>{}),250),w=e=>{const n=e.value,r="Integer"===t.typeData?!p&&!n||parseInt(p)===parseInt(n):p===n;h(n),r&&l((()=>{u(!1)}))},C=`${t.name.toLowerCase().replaceAll(" ","-")}-${a}${void 0!==o?"-"+o:""}`,k="Currency"===t.typeData||"Integer"===t.typeData?null!==p?p:"":p?"string"==typeof p?p.toString().trim():p:"";let I=x.jsx("div",{"data-qa-id":`mt-input-label-${C}`,children:U(n,t.key)});if("priceAdjustment"===(null==t?void 0:t.condition)||"priceAdjustment-sale"===(null==t?void 0:t.condition)){let e=parseInt(n||0)-parseInt(c[`${t.key}_base`]||0),r=q(e);e>0?r="+"+q(e):0===e&&(r=""),I=x.jsxs("div",{children:[x.jsx("div",{"data-qa-id":`mt-input-label-${C}`,children:U(n,t.key)}),0!==e&&null!==e&&!s&&x.jsx(dv,{style:{color:V(e)},children:r})]})}return d?x.jsx("div",{className:"master-editor",children:t.multiline?x.jsx(vp,{name:t.fieldType+"_"+t.key,defaultValue:p,evChange:e=>{b(e.target)},evBlur:e=>{b(e.target),w(e.target)}}):x.jsx(se,Object.assign({type:"Integer"===t.typeData?"number":"text"},"Currency"===t.typeData&&{mode:"currency"},{name:t.fieldType+"_"+t.key,defaultValue:p,evChange:e=>{b(e.target)},evBlur:e=>{b(e.target),w(e.target)},evKeyUp:e=>{if("Enter"===e.key){e.preventDefault();const n=e.currentTarget.value,r="Integer"===t.typeData?parseInt(p)===parseInt(n):p===n;return h(n),void(r&&l((()=>{u(!1)})))}},"data-qa-id":`mt-input-${C}`}))}):x.jsx("section",{onClick:e=>{e.preventDefault();const t=e.target;if(t.closest(".cell-disabled"))return!1;const n=document.getElementById("cur-key");n&&(n.innerHTML=m),u(!d);const r=t.closest(".cell");d?r&&r.classList.remove("cell-editing"):r&&r.classList.add("cell-editing"),setTimeout((()=>{const e=r.querySelector("input");e&&e.focus(),e&&e.select()}),1)},className:"cell-wrapper",children:t.multiline?x.jsxs(x.Fragment,{children:[""===k&&s?x.jsx(v,{$color:"blue",style:{fontWeight:500},children:"+ Add"}):x.jsx("div",{className:"truncate-overflow","data-qa-id":`mt-input-label-${C}`,style:{maxHeight:r?parseInt(r)-34:"auto"},children:U(n,t.key)}),s&&x.jsx(ap,{$mode:"table",children:s})]}):x.jsxs(x.Fragment,{children:[""===k&&s?x.jsx(v,{$color:"blue",style:{fontWeight:500},children:"+ Add"}):I,s&&x.jsx(ap,{$mode:"table",children:s})]})})},xv=({head:t,value:n,evChange:r,idx:i,variantIdx:a,error:o,content:s,type:l,isForceUpdate:c,setForceUpdate:d})=>{const u=`${t.key}-${i}${void 0!==a?"-"+a:""}`,p=e.useCallback((e=>{const n=document.getElementById("cur-key"),o=n?n.innerHTML:"";o&&o===u&&r(t,e,i,a)}),[u,t,i,a,r]),h=H((e=>{}),250),g=e=>{p(e.value)},f=e=>{if("Enter"===e.key)return e.preventDefault(),void p(e.currentTarget.value)},m=e=>{e.persist(),setTimeout((()=>{const t=e.target,n=t.value;""!==n&&null!=n&&(t&&t.focus(),t&&t.select())}),1);const t=document.getElementById("cur-key");t&&(t.innerHTML=u)},y=U(n,t.key),b=["shipping","platformRebate"],v=t.multiline?x.jsx(vp,Object.assign({name:t.fieldType+"_"+t.key,defaultValue:n,evChange:e=>{h(e.target)},evBlur:e=>{h(e.target),g(e.target)},onClick:e=>{e.persist();const t=document.getElementById("cur-key");t&&(t.innerHTML=u)}},o&&{isError:!0,"data-tip":o,"data-place":"top","data-type":"error"})):x.jsx(se,Object.assign({type:"Integer"===t.typeData?"number":"text",name:t.fieldType+"_"+t.key,defaultValue:n,evChange:e=>{h(e.target)},evBlur:e=>{h(e.target),g(e.target)},onKeyUp:f,onClick:m,onFocus:m,isForceUpdate:c,setForceUpdate:d,"data-qa-id":`mt-input-${t.name.toLowerCase().replaceAll(" ","-")}-${i}${void 0!==a?"-"+a:""}`},"Currency"===t.typeData&&{mode:"currency",aliasLabel:b.includes(t.key)?"+":"-"},t.placeholder&&{placeholder:t.placeholder},o&&{isError:!0,"data-tip":o,"data-place":"top","data-type":"error"}));let w=x.jsx("div",{className:"master-editor",children:v});return"countAdjustment"===(null==t?void 0:t.condition)?w=x.jsx("div",{className:"master-editor",children:x.jsxs(x.Fragment,{children:[v,null!==n&&n<s.qtyReserved&&x.jsx(uv,{style:{color:"red"},children:"Qty Available'll be minus"})]})}):"countOutbound"===(null==t?void 0:t.condition)&&(w=x.jsx("div",{className:"master-editor",children:x.jsxs(x.Fragment,{children:[v,null!==n&&n>s.qtyOnHand&&x.jsx(uv,{style:{color:"red"},children:"Qty On Hand'll be minus"})]})})),"create-paymentreceive"===l?x.jsx(se,Object.assign({type:"Integer"===t.typeData?"number":"text",disabled:s.orderCashless&&"shipping"===t.key||!1,name:t.fieldType+"_"+t.key,defaultValue:y,evChange:e=>{h(e.target)},evBlur:e=>{h(e.target),g(e.target)},evKeyUp:f,onClick:m,onFocus:m,"data-qa-id":`mt-input-${t.name.toLowerCase().replaceAll(" ","-")}-${i}${void 0!==a?"-"+a:""}`},"Currency"===t.typeData&&{mode:"currency",aliasLabel:b.includes(t.key)?"+":"-"},t.placeholder&&{placeholder:t.placeholder},o&&{isError:!0,"data-tip":o,"data-place":"top","data-type":"error"})):w},yv=({head:t,value:n,evChange:r,evOpenPopup:i,idx:a,variantIdx:o,resultPopup:s,setResultPopup:l,error:c,evCloseEditor:d})=>{const u=`${t.key}-${a}${void 0!==o?"-"+o:""}`,p=e.useCallback((e=>{const n=document.getElementById("cur-key"),i=n?n.innerHTML:"";i&&i===u&&(r(t,e,a,o),d())}),[u,t,a,o,r,d]);e.useEffect((()=>(s&&"image"in s&&(l&&l(null),p(s.image)),()=>{l&&l(null)})),[s,l,p]);return x.jsxs("section",{className:"cell-wrapper",onClick:e=>{e.preventDefault();const t=e.target;if(t.closest(".cell-disabled"))return!1;const n=document.getElementById("cur-key");n&&(n.innerHTML=u);const r=t.closest(".cell");r&&r.classList.add("cell-editing"),i&&i(e,"cell-wrapper")},"data-popup":"table-image","data-detail":JSON.stringify({title:t.name,value:n,head:t}),children:[c&&-1===c.indexOf("minimum")&&-1===c.indexOf("maximum")?x.jsx(v,{$color:"blue",style:{fontWeight:500},children:"+ Add"}):x.jsx("div",{children:n&&x.jsx("figure",{className:"table-image-figure","data-qa-id":`mt-image-${t.name.toLowerCase().replaceAll(" ","-")}-${a}${void 0!==o?"-"+o:""}`,children:x.jsx(ha,{src:Array.isArray(n)?n[0]:n})})}),c&&x.jsx(ap,{$mode:"table",children:c.replace("Product","")})]})},bv=({head:e,value:t,height:n,idx:r,evOpenPopup:i,content:a,type:o})=>{let s=t?"object"==typeof(l=t)&&!Array.isArray(l)&&null!==l&&Object.keys(t).length?t[Object.keys(t)[0]]:t:"Integer"===e.typeData?t.toString():"";var l;let c;if("product"===(null==e?void 0:e.condition)){const e=t.imageUrl?Array.isArray(t.imageUrl)&&t.imageUrl.length?t.imageUrl[0]:t.imageUrl:"";c=x.jsx("section",{className:"cell-wrapper",children:x.jsxs(rv,{children:[x.jsxs("section",{children:[x.jsx("figure",{className:"table-image-figure",children:x.jsx(ha,{src:e})}),x.jsxs("div",{children:[x.jsx(iv,{children:t.name}),t.totalVariant&&x.jsxs("span",{className:"counter-product-label",children:[t.totalVariant," variants"]})]})]}),x.jsxs("section",{children:[x.jsxs("div",{children:[x.jsx(Hx,{$size:"medium",children:"Category: "})," ",t.category||"No Category"]}),x.jsxs("div",{children:[x.jsx(Hx,{$size:"medium",children:"Brand: "})," ",t.brand||"No Brand"]})]})]})})}else if("addVariant"===(null==e?void 0:e.condition))c=x.jsx("section",{className:"cell-wrapper","data-detail":JSON.stringify({idx:r,data:a}),"data-popup":"add-variant-master",children:x.jsx(av,{$mode:"add",children:x.jsx("div",{onClick:e=>i&&i(e,"cell-wrapper"),children:x.jsx(v,{color:"blue",title:"Add Variant",style:{fontWeight:500},children:"+ Add"})})})});else if("item"===(null==e?void 0:e.condition)){const e=t.imageUrl?Array.isArray(t.imageUrl)&&t.imageUrl.length?t.imageUrl[0]:t.imageUrl:"";c=x.jsx("section",{className:"cell-wrapper",children:x.jsxs(nv,{children:[x.jsx(Qx,{$size:"30px",children:x.jsx(ha,{alt:t.name,$mode:"product",src:e||""})}),x.jsxs("div",{children:[x.jsx(iv,{children:x.jsx("strong",{children:t.name})}),t.sku&&x.jsxs(Hx,{$size:"medium",children:[x.jsx("span",{children:"SKU:"}),x.jsx(P,{target:"_blank",href:`https://app.forstok.com/dashboard/items/master/${encodeURIComponent(t.sku)}?src=sku`,children:t.sku})]})]})]})})}else if("productPicklist"===(null==e?void 0:e.condition)){const e=t.imageUrl?Array.isArray(t.imageUrl)&&t.imageUrl.length?t.imageUrl[0]:t.imageUrl:"";c=x.jsx("section",{className:"cell-wrapper",children:x.jsxs(nv,{children:[x.jsx(Qx,{$size:"30px",children:x.jsx(ha,{alt:t.name,$mode:"product",src:e||""})}),x.jsxs("div",{style:{display:"grid",gridGap:"4px"},children:[x.jsx(v,{style:{fontWeight:600},children:t.name}),x.jsxs(Hx,{$size:"medium",children:[x.jsx("span",{children:"SKU:"}),t.sku?x.jsx(P,{target:"_blank",href:`https://app.forstok.com/dashboard/items/master/${encodeURIComponent(t.sku)}?src=sku`,children:t.sku}):"-"]}),x.jsxs(Hx,{$size:"medium",children:[x.jsx("span",{children:"UPC:"}),t.barcode||"-"]})]})]})})}else if("option"===(null==e?void 0:e.condition))c=x.jsx(v,{$elipsis:!1,className:"multi-elipsis",children:t||"-"});else if("adjustment"===(null==e?void 0:e.condition)){let t=a.quantity-a.availableQuantity;t>0?t="+"+t:0===t&&(t=""),c=x.jsx(v,{$elipsis:!1,id:`text-${e.key}-${r}`,className:"multi-elipsis",style:Object.assign({display:"inline"},(null==e?void 0:e.align)&&{textAlign:e.align}),children:t||"-"})}else if("countAdjustment"===(null==e?void 0:e.condition)){let t=0;null!==a.quantity&&void 0!==a.quantity&&(t=a.quantity-a.qtyOnHand);const n=t>0?"+"+t:t;c=t?x.jsx(dv,{id:`text-${e.key}-${r}`,className:"multi-elipsis",style:{color:V(t),textAlign:(null==e?void 0:e.align)||";eft"},children:n}):x.jsx(x.Fragment,{})}else c="store"===(null==e?void 0:e.condition)?x.jsx("section",{className:"cell-wrapper",children:x.jsx(cv,{children:x.jsxs("section",{children:[t.channelImage?x.jsx(ha,{$mode:"store",alt:t.channelName,src:t.channelImage,width:"30px"}):x.jsx(Zx,{style:{fontSize:"10px",width:"30px",height:"30px",backgroundColor:t.channelColor||"#000000"},children:t.channelInitials}),x.jsxs("div",{children:[x.jsx("strong",{className:"multi-elipsis",title:null==t?void 0:t.accountName,children:(null==t?void 0:t.accountName)||"-"}),x.jsxs(P,{target:"_blank",href:`https://app.forstok.com/dashboard/invoices/salesinvoices/${a.invoiceId}`,children:["INV-",a.invoiceId]})]})]})})}):x.jsx("section",{className:"cell-wrapper",children:x.jsx("div",Object.assign({className:"truncate-overflow"},n&&"auto"!==n&&{style:{maxHeight:n?parseInt(n)-34:"auto"}},(null==e?void 0:e.align)&&{style:{textAlign:e.align}},{children:s}))});return c},vv=({head:t,value:n,height:r,evChange:i,idx:a,variantIdx:o,error:s,evCloseEditor:l})=>{var c,d;const[u,p]=e.useState(!1),[h,g]=e.useState(null),[f,m]=e.useState(null!==n||void 0!==n?n:""),[y,b]=e.useState(!1),[w,C]=e.useState(!0),k=`${t.key}-${a}${void 0!==o?"-"+o:""}`,I=e.useCallback((e=>{const n=document.getElementById("cur-key"),r=n?n.innerHTML:"";r&&r===k&&(i(t,e,a,o),l&&l((()=>{p(!1)})))}),[k,t,a,o,i,l]);e.useEffect((()=>{w?y?I(f):C(!1):I(f)}),[f,I,w,y]),e.useEffect((()=>{const e=document.body,t=e=>{if(!u)return!1;const t=e.target,n=t.dataset.id||"";return(!n||!/^react-select/.test(n))&&(t.closest(".master-editor ._refSelectContainer")?void 0:(m(f),void l((()=>{p(!1)}))))};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}),[f,u,l]);e.useEffect((()=>{if(!h){const e=document.getElementById("master-categories"),n=(null==t?void 0:t.schema)&&"master_category"===t.schema?""!==e.innerHTML?JSON.parse(ee(e.innerHTML)):[]:t.options||[];g&&g(n)}}),[t,h]);const A="Boolean"===t.typeData?(null===(c=t.options)||void 0===c?void 0:c.filter((e=>e.value===n)).length)?t.options.filter((e=>e.value===n))[0]:n:n?"string"==typeof n?{value:n,label:n}:n:{},S="Boolean"===t.typeData&&(null===(d=t.options)||void 0===d?void 0:d.filter((e=>e.value===n)).length)?t.options.filter((e=>e.value===n))[0].label:n,j=`${t.name.toLowerCase().replaceAll(" ","-")}-${a}${void 0!==o?"-"+o:""}`;return u?x.jsx("div",{className:"master-editor",children:x.jsx(rp,Object.assign({options:h,defaultValue:A,mode:"small-table",name:t.fieldType+"_"+t.key,evCreate:e=>{m(e),b(!0)},evChange:e=>{const t=e;(null==t?void 0:t.value)&&m(t.value),b(!0)},isForceUpdate:y,setForceUpdate:b,"data-qa-id":`mt-select-${j}`},"category"===t.key&&{isCreateable:!0}))}):x.jsx("section",{onClick:e=>{e.preventDefault();const t=e.target;if(t.closest(".cell-disabled"))return!1;const n=document.getElementById("cur-key");n&&(n.innerHTML=k),p(!u);const r=t.closest(".cell");u?r&&r.classList.remove("cell-editing"):r&&r.classList.add("cell-editing")},className:"cell-wrapper",children:t.multiline?x.jsxs(x.Fragment,{children:[""===f&&s?x.jsx(v,{$color:"blue",style:{fontWeight:500},children:"+ Add"}):x.jsx("div",{className:"truncate-overflow","data-qa-id":`mt-select-label-${j}`,style:{maxHeight:r?parseInt(r)-34:"auto"},children:S}),s&&x.jsx(ap,{$mode:"table",children:s})]}):x.jsxs(x.Fragment,{children:[""===f&&s?x.jsx(v,{$color:"blue",style:{fontWeight:500},children:"+ Add"}):x.jsx("div",{"data-qa-id":`mt-select-label-${j}`,children:S}),s&&x.jsx(ap,{$mode:"table",children:s})]})})},wv=({head:t,value:n,evChange:r,idx:i,variantIdx:a,error:o,isForceUpdate:s,setForceUpdate:l,content:c})=>{var d,u;const[p,h]=e.useState(null),g=`${t.key}-${i}${void 0!==a?"-"+a:""}`,f=e.useCallback((e=>{const n=document.getElementById("cur-key"),o=n?n.innerHTML:"";o&&o===g&&r(t,e,i,a)}),[g,t,i,a,r]),m=e.useCallback((()=>{let e=[];if(null==c?void 0:c.dataLocations)if("locations-batchId"===t.key){const t=c.dataLocations.filter((e=>{var t,n;return e.location===(null===(n=null===(t=c.locations)||void 0===t?void 0:t[a||0])||void 0===n?void 0:n.location)}));t.length&&(e=t.map((e=>e.batchId)).filter(((e,t,n)=>n.indexOf(e)===t)).map((e=>({value:e,label:e}))))}else if("locations-expiryDate"===t.key){const t=c.dataLocations.filter((e=>{var t,n,r,i;return e.location===(null===(n=null===(t=c.locations)||void 0===t?void 0:t[a||0])||void 0===n?void 0:n.location)&&e.batchId===(null===(i=null===(r=c.locations)||void 0===r?void 0:r[a||0])||void 0===i?void 0:i.batchId.value)}));t.length&&(e=t.map((e=>({value:e.expiryDate,label:Tx(e.expiryDate,"YYYY-MM-DD HH:mm:ss ZZ").format("D MMM YYYY, hh:mm A")}))))}return e}),[c,t,a]);e.useEffect((()=>{if(!p){const e=document.getElementById("master-categories");let n=[];if("qtyToReturn"===(null==t?void 0:t.condition)){const e=c.qtyOrdered-c.qtyReturned;for(let t=0;t<=e;t++)n.push({value:t,label:t})}else n=(null==t?void 0:t.schema)?"master_category"===t.schema&&""!==(null==e?void 0:e.innerHTML)?JSON.parse(ee(null==e?void 0:e.innerHTML)):[]:m().length?m():t.options||[];h(n)}}),[c,m,t,p]),e.useEffect((()=>{if(s){const e=m();e.length&&h(e),l&&l(!1)}}),[c,m,t,s,l,a]);const y="qtyToReturn"===(null==t?void 0:t.condition)?{value:n,label:n}:"Boolean"===t.typeData?(null===(d=t.options)||void 0===d?void 0:d.filter((e=>e.value===n)).length)?t.options.filter((e=>e.value===n))[0]:n:n?"string"==typeof n?{value:n,label:n}:n:{},b=`${t.name.toLowerCase().replaceAll(" ","-")}-${i}${void 0!==a?"-"+a:""}`;return"adjustLocation"!==(null==t?void 0:t.condition)||(null===(u=c.locations[a||0])||void 0===u?void 0:u.location)?x.jsx("div",{className:"master-editor",children:x.jsx(rp,Object.assign({},"category"===t.key&&{isCreateable:!0},{options:p,defaultValue:y,mode:"small-table",name:t.fieldType+"_"+t.key,evCreate:e=>{const t=document.getElementById("cur-key");t&&(t.innerHTML=g),f(e),l&&l(!0)},evChange:e=>{const n=e,r=document.getElementById("cur-key");r&&(r.innerHTML=g),"qtyToReturn"===(null==t?void 0:t.condition)?f(null==n?void 0:n.value):f(n),l&&l(!0)},isForceUpdate:s,setForceUpdate:l,"data-qa-id":`mt-select-${b}`},o&&{isError:!0,"data-tip":o,"data-place":"top","data-type":"error"},{placeholder:`Select ${t.name}`}))}):null},Cv=({head:t,value:n,evChange:r,idx:i,variantIdx:a,evCloseEditor:o})=>{const[s,l]=e.useState(n||!1),[c,d]=e.useState(!0),u=`${t.name.toLowerCase().replaceAll(" ","-")}-${i}${void 0!==a?"-"+a:""}`;e.useEffect((()=>{const e=document.getElementById(`${t.fieldType}_${u}`);e&&(e.checked=n),l(n)}),[n,t,u]);const p=`${t.key}-${i}${void 0!==a?"-"+a:""}`,h=e.useCallback((e=>{const n=document.getElementById("cur-key"),s=n?n.innerHTML:"";s&&s===p&&(r(t,e,i,a),o())}),[p,t,i,a,r,o]);e.useEffect((()=>{c?d(!1):h(s)}),[s,h,c]);const g=s;return x.jsx("div",{className:"master-editor",children:x.jsx(Wb,{name:t.fieldType+"_"+t.key,id:`${t.fieldType}_${u}`,"aria-label":t.name,value:s.toString(),defaultChecked:g,"data-qa-id":`mt-checkbox-${u}`,evChange:e=>{(e=>{const t=document.getElementById("cur-key");t&&(t.innerHTML=p);const n=e.closest(".cell");n&&n.classList.add("cell-editing");const r=e.checked,i=s===r;l(r),i&&o()})(e.target)}})})},kv=({head:t,value:n,height:r,evChange:i,evOpenPopup:a,idx:o,variantIdx:s,resultPopup:l,setResultPopup:c,evCloseEditor:d})=>{const u=`${t.key}-${o}${void 0!==s?"-"+s:""}`,p=e.useCallback((e=>{const n=document.getElementById("cur-key"),r=n?n.innerHTML:"";r&&r===u&&(i(t,e,o,s),d())}),[u,t,o,s,i,d]);e.useEffect((()=>{l&&"tag"in l&&(c&&c(null),p(l.tag))}),[l,c,p]);return x.jsx("section",{className:"cell-wrapper",onClick:e=>{e.preventDefault();const t=e.target;if(t.closest(".cell-disabled"))return!1;const n=document.getElementById("cur-key");n&&(n.innerHTML=u);const r=t.closest(".cell");r&&r.classList.add("cell-editing"),a&&a(e,"cell-wrapper")},"data-popup":"table-tag","data-detail":JSON.stringify({title:t.name,value:n}),children:x.jsx("div",{className:"truncate-overflow",style:{maxHeight:r?parseInt(r)-34:"auto"},children:n&&n.map(((e,t)=>x.jsx("span",{children:e},t)))})})},Iv=({value:e,height:t})=>x.jsx("section",{className:"cell-wrapper",children:x.jsx("div",Object.assign({className:"truncate-overflow"},t&&"auto"!==t&&{style:{maxHeight:t?parseInt(t)-34:"auto"}},{children:e}))}),Av=t.css`
3431
3468
  display: grid;
3432
3469
  grid-template-columns: 1fr;
3433
3470
  align-items: center;
3434
3471
  padding: 14px 16px 13px;
3435
3472
  border-bottom: 1px solid var(--pri-clr-ln);
3436
- `,Iv=o.default.div`
3437
- ${kv}
3473
+ `,Sv=o.default.div`
3474
+ ${Av}
3438
3475
  ${({$mode:e,$selected:t,$type:n})=>{let r="";return"check"===e||"uncheck"===e?(r+="order"===n||"return"===n?"\n grid-template-columns: 24px 38px 50% 30%;\n @media (min-width: 375px) {\n grid-template-columns: 24px 38px 50% 32%;\n }\n @media (min-width: 425px) {\n grid-template-columns: 24px 38px 50% 34%;\n }\n @media (min-width: 768px) {\n grid-template-columns: 24px 38px 2.5fr 1.5fr;\n }\n ":"confirm"===n?"\n grid-template-columns: 24px 38px 3.5fr 25px 1fr;\n \n div:nth-child(3) {\n grid-row-start: 1;\n }\n div:nth-child(4) {\n grid-row-start: 1;\n grid-row-end: 3;\n justify-self: center;\n padding-top: 8px;\n padding-left: 4px;\n }\n ":"item"===n||"price"===n?"\n grid-auto-flow: column;\n grid-template-columns: 24px 38px auto 100px 158px 100px;\n ._refCheckboxWrapper, figure {\n grid-row: unset !important;\n }\n *:nth-child(3) {\n padding-right: 1em;\n }\n ":"\n grid-template-columns: 24px 38px 3fr 1fr;\n ",r+="\n align-items: center;\n :hover {\n background-color: var(--hg-clr-bg);\n }\n ._refCheckboxWrapper {\n grid-row-start: 1;\n grid-row-end: 4;\n }\n figure {\n grid-row-start: 1;\n grid-row-end: 4;\n }\n &.is-selected {\n &, &:hover {\n background-color: var(--hg-clr-bg__fc); \n }\n }\n "):"clear"===e?r+="\n display: block;\n padding: 4px 16px;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n font-size: 13px;\n line-height: 21px\n text-transform: uppercase;\n @media (min-width: 425px) {\n font-size: 13px;\n }\n ":"remove"===e&&(r+="\n grid-template-columns: 40px 3fr 1fr 20px;\n align-items:start;\n padding: 14px 16px 13px;\n @media (min-width: 768px) {\n grid-template-columns: 40px 3fr 1fr 30px;\n padding: 12px 16px;\n }\n figure {\n grid-row-start: 1;\n grid-row-end: 4;\n }\n i {\n display: grid;\n justify-content: end;\n }\n &, &:hover {\n background-color: var(--hg-clr-bg__fc); \n }\n "),"uncheck"===e&&(r+="\n figure {\n grid-column-start: 2;\n }\n div:nth-child(2) {\n grid-column-start: 3;\n }\n div:nth-child(3) {\n grid-column-start: 4;\n }\n div:nth-child(4) {\n grid-column-start: 3;\n }\n div:nth-child(5) {\n grid-column-start: 4;\n }\n "),"check"===e&&t&&(r+=" \n &, &:hover {\n background-color: var(--hg-clr-bg__fc); \n }\n "),r+=" cursor: pointer; ",r}}
3439
- `,Av=t.css`
3476
+ `,jv=t.css`
3440
3477
  display: grid;
3441
3478
  grid-row-gap: 12px;
3442
3479
  grid-column-gap: 16px;
3443
3480
  width: 100%;
3444
3481
  margin-bottom: 12px;
3445
3482
  align-items: start;
3446
- `,Sv=o.default.form.attrs((e=>({name:e.name||"form",autoComplete:e.autoComplete||"off"})))`
3483
+ `,Dv=o.default.form.attrs((e=>({name:e.name||"form",autoComplete:e.autoComplete||"off"})))`
3447
3484
  display: inline-grid;
3448
3485
  grid-auto-flow: row;
3449
3486
  grid-gap: 25px;
@@ -3458,8 +3495,8 @@ r.version="2.30.1",i(qn),r.fn=la,r.min=Kn,r.max=er,r.now=tr,r.utc=g,r.unix=ca,r.
3458
3495
  }
3459
3496
  }
3460
3497
  ${({name:e})=>{let t="";return"invoiceForm"===e&&(t+="\n grid-gap: 15px;\n "),t}}
3461
- `,jv=o.default.section`
3462
- ${Av}
3498
+ `,Ev=o.default.section`
3499
+ ${jv}
3463
3500
  ${({$width:e})=>{let t="";return e&&(t+=` \n @media (min-width: 768px) {\n width: ${e}; \n }\n `),t}}
3464
3501
  `
3465
3502
  /*! *****************************************************************************
@@ -3475,13 +3512,13 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
3475
3512
 
3476
3513
  See the Apache Version 2.0 License for specific language governing permissions
3477
3514
  and limitations under the License.
3478
- ***************************************************************************** */;var Dv=function(){return Dv=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Dv.apply(this,arguments)};var Ev=function(t){var n=t.animate,r=void 0===n||n,i=t.backgroundColor,a=void 0===i?"#f5f6f7":i,o=t.backgroundOpacity,s=void 0===o?1:o,l=t.baseUrl,c=void 0===l?"":l,d=t.children,u=t.foregroundColor,p=void 0===u?"#eee":u,h=t.foregroundOpacity,g=void 0===h?1:h,f=t.gradientRatio,m=void 0===f?2:f,x=t.uniqueKey,y=t.rtl,b=void 0!==y&&y,v=t.speed,w=void 0===v?1.2:v,C=t.style,k=void 0===C?{}:C,I=t.title,A=void 0===I?"Loading...":I,S=t.beforeMask,j=void 0===S?null:S,D=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(t,["animate","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","uniqueKey","rtl","speed","style","title","beforeMask"]),E=x||Math.random().toString(36).substring(6),M="".concat(E,"-diff"),T="".concat(E,"-animated-diff"),N="".concat(E,"-aria"),O=b?{transform:"scaleX(-1)"}:null,L="".concat(w,"s"),_="".concat(-1*m," 0"),P="".concat(m," 0");return e.createElement("svg",Dv({"aria-labelledby":N,role:"img",style:Dv(Dv({},k),O)},D),A?e.createElement("title",{id:N},A):null,j&&e.isValidElement(j)?j:null,e.createElement("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url(".concat(c,"#").concat(M,")"),style:{fill:"url(".concat(c,"#").concat(T,")")}}),e.createElement("defs",null,e.createElement("clipPath",{id:M},d),e.createElement("linearGradient",{id:T,gradientTransform:"translate(".concat(_,")")},e.createElement("stop",{offset:"0%",stopColor:a,stopOpacity:s}),e.createElement("stop",{offset:"50%",stopColor:p,stopOpacity:g}),e.createElement("stop",{offset:"100%",stopColor:a,stopOpacity:s}),r&&e.createElement("animateTransform",{attributeName:"gradientTransform",type:"translate",values:"".concat(_,"; 0 0; ").concat(P),dur:L,repeatCount:"indefinite"}))))},Mv=function(t){return t.children?e.createElement(Ev,Dv({},t)):e.createElement(Tv,Dv({},t))},Tv=function(t){return e.createElement(Mv,Dv({viewBox:"0 0 476 124"},t),e.createElement("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),e.createElement("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),e.createElement("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),e.createElement("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),e.createElement("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),e.createElement("circle",{cx:"20",cy:"20",r:"20"}))};o.default.div`
3515
+ ***************************************************************************** */;var Mv=function(){return Mv=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Mv.apply(this,arguments)};var Tv=function(t){var n=t.animate,r=void 0===n||n,i=t.backgroundColor,a=void 0===i?"#f5f6f7":i,o=t.backgroundOpacity,s=void 0===o?1:o,l=t.baseUrl,c=void 0===l?"":l,d=t.children,u=t.foregroundColor,p=void 0===u?"#eee":u,h=t.foregroundOpacity,g=void 0===h?1:h,f=t.gradientRatio,m=void 0===f?2:f,x=t.uniqueKey,y=t.rtl,b=void 0!==y&&y,v=t.speed,w=void 0===v?1.2:v,C=t.style,k=void 0===C?{}:C,I=t.title,A=void 0===I?"Loading...":I,S=t.beforeMask,j=void 0===S?null:S,D=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(t,["animate","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","uniqueKey","rtl","speed","style","title","beforeMask"]),E=x||Math.random().toString(36).substring(6),M="".concat(E,"-diff"),T="".concat(E,"-animated-diff"),N="".concat(E,"-aria"),O=b?{transform:"scaleX(-1)"}:null,L="".concat(w,"s"),_="".concat(-1*m," 0"),P="".concat(m," 0");return e.createElement("svg",Mv({"aria-labelledby":N,role:"img",style:Mv(Mv({},k),O)},D),A?e.createElement("title",{id:N},A):null,j&&e.isValidElement(j)?j:null,e.createElement("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url(".concat(c,"#").concat(M,")"),style:{fill:"url(".concat(c,"#").concat(T,")")}}),e.createElement("defs",null,e.createElement("clipPath",{id:M},d),e.createElement("linearGradient",{id:T,gradientTransform:"translate(".concat(_,")")},e.createElement("stop",{offset:"0%",stopColor:a,stopOpacity:s}),e.createElement("stop",{offset:"50%",stopColor:p,stopOpacity:g}),e.createElement("stop",{offset:"100%",stopColor:a,stopOpacity:s}),r&&e.createElement("animateTransform",{attributeName:"gradientTransform",type:"translate",values:"".concat(_,"; 0 0; ").concat(P),dur:L,repeatCount:"indefinite"}))))},Nv=function(t){return t.children?e.createElement(Tv,Mv({},t)):e.createElement(Ov,Mv({},t))},Ov=function(t){return e.createElement(Nv,Mv({viewBox:"0 0 476 124"},t),e.createElement("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),e.createElement("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),e.createElement("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),e.createElement("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),e.createElement("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),e.createElement("circle",{cx:"20",cy:"20",r:"20"}))};o.default.div`
3479
3516
  display: inline-block;
3480
3517
  position: relative;
3481
3518
  width: 100%;
3482
3519
  vertical-align: middle;
3483
3520
  overflow: hidden;
3484
- `;const Nv=o.default.div`
3521
+ `;const Lv=o.default.div`
3485
3522
  display: block;
3486
3523
  max-height: calc(100vh - 286px);
3487
3524
  height: calc(100vh - 286px);
@@ -3492,14 +3529,14 @@ and limitations under the License.
3492
3529
  > div:not(:first-child) {
3493
3530
  margin-top: 15px;
3494
3531
  }
3495
- `,Ov=o.default.div`
3532
+ `,_v=o.default.div`
3496
3533
  ${S}
3497
3534
  display: inline-block;
3498
3535
  width: auto;
3499
3536
  height: 220px;
3500
3537
  position: relative;
3501
3538
  margin: 30px 30px 0px 30px;
3502
- `,Lv=o.default.div`
3539
+ `,Pv=o.default.div`
3503
3540
  ${S}
3504
3541
  display: inline-block;
3505
3542
  width: 100%;
@@ -3507,47 +3544,47 @@ and limitations under the License.
3507
3544
  max-height: calc(100vh - 286px);
3508
3545
  height: calc(100vh - 286px);
3509
3546
  overflow: hidden;
3510
- `,_v=o.default.div`
3547
+ `,Bv=o.default.div`
3511
3548
  display: inline-block;
3512
3549
  margin-top: -15px;
3513
- `,Pv=o.default.div`
3550
+ `,Rv=o.default.div`
3514
3551
  display: inline-block;
3515
3552
  width: 100%;
3516
3553
  background: #FFF;
3517
3554
  position: relative;
3518
3555
  height: 100%;
3519
3556
  overflow: hidden;
3520
- `,Bv=o.default.div`
3557
+ `,Fv=o.default.div`
3521
3558
  display: inline-block;
3522
3559
  width: 100%;
3523
3560
  border-radius: 10px;
3524
3561
  height: 80px;
3525
3562
  position: relative;
3526
- `,Rv=o.default.div`
3563
+ `,Gv=o.default.div`
3527
3564
  ${S}
3528
3565
  display: inline-block;
3529
3566
  max-height: 750px;
3530
3567
  height: calc(100vh - 124px);
3531
3568
  overflow: hidden;
3532
3569
  padding-bottom: 28px;
3533
- `,Fv=o.default.div`
3570
+ `,Wv=o.default.div`
3534
3571
  display: inline-block;
3535
3572
  background-color: #fff;
3536
3573
  border-radius: 5px;
3537
3574
  border: 1px solid #E3E3E3;
3538
3575
  height: 89px;
3539
3576
  margin-bottom: 20px;
3540
- `,Gv=o.default.div`
3577
+ `,Yv=o.default.div`
3541
3578
  display: inline-block;
3542
- `,Wv=o.default.div`
3579
+ `,Vv=o.default.div`
3543
3580
  ${S}
3544
3581
  padding: 2em;
3545
3582
  margin-bottom: 30px;
3546
- `,Yv=o.default.rect`
3583
+ `,Hv=o.default.rect`
3547
3584
  ${({$width:e,$x:n})=>e?t.css`
3548
3585
  width: ${e}
3549
3586
  `:n?t.css`
3550
3587
  x: ${n}
3551
3588
  `:void 0}
3552
- `,Vv=Q().width,Hv=Q().height,$v={rangeDate:"lastsecondweek",startDate:Tx().clone().subtract(13,"days").format("YYYY-MM-DD"),endDate:Tx().clone().format("YYYY-MM-DD"),placeholder:"Last 14 days",minDate:Tx().clone().subtract(89,"days").format("YYYY-MM-DD")};exports.BoxContainer=zx,exports.BreadcrumbContainer=Yx,exports.BulkActionWrapper=Xx,exports.ButtonComponent=xe,exports.ButtonGroup=jy,exports.ButtonLabel=Cy,exports.CardContainer=Hy,exports.CardWrapper=$y,exports.CheckboxComponent=he,exports.CollapseContainer=my,exports.ContentLoaderAccountsList=()=>x.jsxs(Mv,{height:284,width:"100%",speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,viewBox:"0 0 290 284",children:[x.jsx("rect",{x:"10",y:"15",rx:"0",ry:"0",width:"40",height:"40"}),x.jsx("rect",{x:"62",y:"15",rx:"0",ry:"0",width:"90",height:"13"}),x.jsx("rect",{x:"62",y:"30",rx:"0",ry:"0",width:"185",height:"13"}),x.jsx("rect",{x:"62",y:"45",rx:"0",ry:"0",width:"50",height:"11"}),x.jsx("rect",{x:"257",y:"23",rx:"50",ry:"50",width:"25",height:"25"}),x.jsx("rect",{x:"10",y:"70",rx:"0",ry:"0",width:"40",height:"40"}),x.jsx("rect",{x:"62",y:"70",rx:"0",ry:"0",width:"90",height:"13"}),x.jsx("rect",{x:"62",y:"85",rx:"0",ry:"0",width:"185",height:"13"}),x.jsx("rect",{x:"62",y:"100",rx:"0",ry:"0",width:"50",height:"11"}),x.jsx("rect",{x:"257",y:"77",rx:"50",ry:"50",width:"25",height:"25"}),x.jsx("rect",{x:"10",y:"125",rx:"0",ry:"0",width:"40",height:"40"}),x.jsx("rect",{x:"62",y:"125",rx:"0",ry:"0",width:"90",height:"13"}),x.jsx("rect",{x:"62",y:"140",rx:"0",ry:"0",width:"185",height:"13"}),x.jsx("rect",{x:"62",y:"155",rx:"0",ry:"0",width:"50",height:"11"}),x.jsx("rect",{x:"257",y:"131",rx:"50",ry:"50",width:"25",height:"25"}),x.jsx("rect",{x:"10",y:"180",rx:"0",ry:"0",width:"40",height:"40"}),x.jsx("rect",{x:"62",y:"180",rx:"0",ry:"0",width:"90",height:"13"}),x.jsx("rect",{x:"62",y:"195",rx:"0",ry:"0",width:"185",height:"13"}),x.jsx("rect",{x:"62",y:"210",rx:"0",ry:"0",width:"50",height:"11"}),x.jsx("rect",{x:"257",y:"185",rx:"50",ry:"50",width:"25",height:"25"}),x.jsx("rect",{x:"10",y:"235",rx:"0",ry:"0",width:"40",height:"40"}),x.jsx("rect",{x:"62",y:"235",rx:"0",ry:"0",width:"90",height:"13"}),x.jsx("rect",{x:"62",y:"250",rx:"0",ry:"0",width:"185",height:"13"}),x.jsx("rect",{x:"62",y:"265",rx:"0",ry:"0",width:"50",height:"11"}),x.jsx("rect",{x:"257",y:"239",rx:"50",ry:"50",width:"25",height:"25"})]}),exports.ContentLoaderActivityList=()=>x.jsxs(Mv,{height:260,width:"100%",speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:[x.jsx("rect",{x:"10",y:"15",rx:"50",ry:"50",width:"35",height:"35"}),x.jsx("rect",{x:"55",y:"15",rx:"0",ry:"0",width:"330",height:"13"}),x.jsx("rect",{x:"55",y:"35",rx:"0",ry:"0",width:"330",height:"11"}),x.jsx("rect",{x:"10",y:"65",rx:"50",ry:"50",width:"35",height:"35"}),x.jsx("rect",{x:"55",y:"65",rx:"0",ry:"0",width:"330",height:"13"}),x.jsx("rect",{x:"55",y:"85",rx:"0",ry:"0",width:"330",height:"11"}),x.jsx("rect",{x:"10",y:"115",rx:"50",ry:"50",width:"35",height:"35"}),x.jsx("rect",{x:"55",y:"115",rx:"0",ry:"0",width:"330",height:"13"}),x.jsx("rect",{x:"55",y:"135",rx:"0",ry:"0",width:"330",height:"11"}),x.jsx("rect",{x:"10",y:"165",rx:"50",ry:"50",width:"35",height:"35"}),x.jsx("rect",{x:"55",y:"165",rx:"0",ry:"0",width:"330",height:"13"}),x.jsx("rect",{x:"55",y:"185",rx:"0",ry:"0",width:"330",height:"11"}),x.jsx("rect",{x:"10",y:"215",rx:"50",ry:"50",width:"35",height:"35"}),x.jsx("rect",{x:"55",y:"215",rx:"0",ry:"0",width:"330",height:"13"}),x.jsx("rect",{x:"55",y:"235",rx:"0",ry:"0",width:"330",height:"11"})]}),exports.ContentLoaderAddition=()=>{let e=Vv>=994?Vv>=1031&&Vv>=1031?Vv-100:Vv-60:994;const t=e-777,n=e-665,r=e-555,i=e-405,a=e-230;return x.jsx(Fv,{children:x.jsxs(Mv,{speed:1,width:e,height:"100%",backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[x.jsx("rect",{x:"38",y:"15",rx:"2",ry:"2",width:"31",height:"61"}),x.jsx("rect",{x:95,y:"15",rx:"2",ry:"2",width:t,height:"61"}),x.jsx("rect",{x:n,y:"15",rx:"2",ry:"2",width:90,height:"61"}),x.jsx("rect",{x:r,y:"15",rx:"2",ry:"2",width:140,height:"61"}),x.jsx("rect",{x:i,y:"15",rx:"2",ry:"2",width:160,height:"61"}),x.jsx("rect",{x:a,y:"15",rx:"2",ry:"2",width:140,height:"61"})]})})},exports.ContentLoaderAnalyticsMenu=()=>x.jsx(Mv,{height:60,width:"100%",speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:x.jsx("rect",{x:"0",y:"15",rx:"0",ry:"0",width:"100%",height:"36"})}),exports.ContentLoaderCategoryList=()=>{const t=window.innerHeight-286,n=Vv>=1336||Vv>=1112?400:300,r=32+n+12,i=Vv-n-85,a=t?Math.ceil((t-78)/70):0;return x.jsx(Lv,{children:x.jsxs(Mv,{speed:1,width:Vv,height:"100%",backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[x.jsx("rect",{x:32,y:"23",rx:"2",ry:"2",width:n,height:"16"}),x.jsx("rect",{x:r,y:"23",rx:"2",ry:"2",width:i,height:"16"}),Array.apply(0,Array(a)).map(((t,a)=>{const o=70*a+78;return x.jsxs(e.Fragment,{children:[x.jsx("rect",{x:32,y:o,rx:"2",ry:"2",width:n,height:"31"}),x.jsx("rect",{x:r,y:o,rx:"2",ry:"2",width:i,height:"31"})]},a)}))]})})},exports.ContentLoaderChatAccounts=({mode:t})=>{const n=document.querySelector("._refChatContainer"),r=n?n.offsetWidth:0,i="single"===t?65:n&&n.offsetHeight-140>=0?n.offsetHeight:0,a=r-48-88-20,o=a+60+16,s="single"===t?1:Math.floor(i/64);let l=0;return x.jsx(Mv,{height:i,width:"100%",speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:Array.apply(0,Array(s)).map(((t,n)=>{const r=14+l,i=32+l,s=64+l;return l=s,x.jsxs(e.Fragment,{children:[x.jsx("rect",{x:"16",y:r,rx:"4",ry:"4",width:"32",height:"32"}),x.jsx("rect",{x:"60",y:r,rx:"0",ry:"0",width:a,height:"14"}),x.jsx("rect",{x:"60",y:i,rx:"0",ry:"0",width:a,height:"14"}),x.jsx("rect",{x:o,y:r,rx:"0",ry:"0",width:"66",height:"14"}),x.jsx("rect",{x:o,y:i,rx:"0",ry:"0",width:"66",height:"14"}),x.jsx("rect",{x:"0",y:s,rx:"0",ry:"0",width:"100%",height:"1"})]},n)}))})},exports.ContentLoaderChatMessages=({mode:e})=>{const t=document.querySelectorAll("._refChatContainer > article"),n=document.querySelector("._refChatContainer");let r=t[0]&&t[0].offsetWidth>=0?t[0].offsetWidth:0;r=r<=0?n&&n.offsetWidth>=0?n.offsetWidth:0:r;const i="single"===e?234:n&&n.offsetHeight>=0?n.offsetHeight:0,a=r-32<=360?r-32:360,o=r-a-16,s=i-145,l="single"===e?1:Math.floor(s/76);let c=0;return x.jsx(Mv,{height:s,width:"100%",speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:Array.apply(0,Array(l)).map(((e,t)=>{const n=0===t?s-76:c-76;return c=n,x.jsx("rect",{x:t>=3?"16":o,y:n,rx:"10",ry:"10",width:a,height:"60"},t)}))})},exports.ContentLoaderChatProducts=({mode:t})=>{const n=document.querySelector("._refTabsContent"),r=document.querySelector("._refChatContainer"),i=n&&n.offsetWidth-30>=0?n.offsetWidth-30:0,a="single"===t?65:r&&r.offsetHeight-204>=0?r.offsetHeight-204:0,o=i-48-88,s=o+60+16+22,l="single"===t?1:Math.floor(a/64);let c=0;return!(i<=0)&&x.jsx(Mv,{height:a,width:"100%",speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:Array.apply(0,Array(l)).map(((t,n)=>{const r=14+c,i=32+c,a=64+c;return c=a,x.jsxs(e.Fragment,{children:[x.jsx("rect",{x:"16",y:r,rx:"4",ry:"4",width:"14",height:"14"}),x.jsx("rect",{x:"38",y:r,rx:"4",ry:"4",width:"32",height:"32"}),x.jsx("rect",{x:"78",y:r,rx:"0",ry:"0",width:o,height:"14"}),x.jsx("rect",{x:"78",y:i,rx:"0",ry:"0",width:o,height:"20"}),x.jsx("rect",{x:s,y:r,rx:"0",ry:"0",width:"20",height:"14"}),x.jsx("rect",{x:s,y:i,rx:"0",ry:"0",width:"20",height:"14"}),x.jsx("rect",{x:"0",y:a,rx:"0",ry:"0",width:"100%",height:"1"})]},n)}))})},exports.ContentLoaderChatStores=()=>x.jsxs(Mv,{height:220,width:"100%",speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:[x.jsx("rect",{x:"0",y:"0",rx:"0",ry:"0",width:"100%",height:"14"}),x.jsx("rect",{x:"0",y:"28",rx:"0",ry:"0",width:"100%",height:"14"}),x.jsx("rect",{x:"0",y:"56",rx:"0",ry:"0",width:"100%",height:"14"}),x.jsx("rect",{x:"0",y:"84",rx:"0",ry:"0",width:"100%",height:"14"}),x.jsx("rect",{x:"0",y:"112",rx:"0",ry:"0",width:"100%",height:"14"}),x.jsx("rect",{x:"0",y:"140",rx:"0",ry:"0",width:"100%",height:"14"}),x.jsx("rect",{x:"0",y:"168",rx:"0",ry:"0",width:"100%",height:"14"})]}),exports.ContentLoaderDashboardCard=()=>x.jsx(Wv,{children:x.jsxs(Mv,{height:220,width:"100%",speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:[x.jsx("rect",{x:"0",y:"0",rx:"0",ry:"0",width:"200",height:"50"}),x.jsx("rect",{x:"0",y:"70",rx:"0",ry:"0",width:"100%",height:"25"}),x.jsx("rect",{x:"0",y:"105",rx:"0",ry:"0",width:"100%",height:"15"}),x.jsx("rect",{x:"0",y:"130",rx:"0",ry:"0",width:"100%",height:"15"}),x.jsx("rect",{x:"0",y:"155",rx:"0",ry:"0",width:"100%",height:"15"}),x.jsx("rect",{x:"0",y:"180",rx:"0",ry:"0",width:"100%",height:"15"}),x.jsx("rect",{x:"0",y:"205",rx:"0",ry:"0",width:"100%",height:"15"})]})}),exports.ContentLoaderEditBundle=()=>x.jsxs(Mv,{height:500,width:1150,speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:[x.jsx("rect",{x:"0",y:"25",width:"35",height:"35"}),x.jsx("rect",{x:"50",y:"25",width:"400",height:"35"}),x.jsx("rect",{x:"50",y:"75",width:"170",height:"35"}),x.jsx("rect",{x:"235",y:"75",width:"170",height:"35"}),x.jsx("rect",{x:"420",y:"75",width:"170",height:"35"}),x.jsx("rect",{x:"605",y:"75",width:"170",height:"35"}),x.jsx("rect",{x:"50",y:"125",width:"170",height:"35"}),x.jsx("rect",{x:"0",y:"245",width:"200",height:"35"}),x.jsx("rect",{x:"420",y:"305",width:"150",height:"25"}),x.jsx("rect",{x:"585",y:"305",width:"150",height:"25"}),x.jsx("rect",{x:"750",y:"305",width:"150",height:"25"}),x.jsx("rect",{x:"915",y:"305",width:"150",height:"25"}),x.jsx("rect",{x:"0",y:"345",width:"25",height:"25"}),x.jsx("rect",{x:"40",y:"345",width:"360",height:"25"}),x.jsx("rect",{x:"420",y:"345",width:"150",height:"25"}),x.jsx("rect",{x:"585",y:"345",width:"150",height:"25"}),x.jsx("rect",{x:"750",y:"345",width:"150",height:"25"}),x.jsx("rect",{x:"915",y:"345",width:"150",height:"25"}),x.jsx("rect",{x:"750",y:"395",width:"315",height:"25"})]}),exports.ContentLoaderFilterCategories=()=>x.jsxs(Mv,{height:172,width:210,speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:[x.jsx("rect",{x:"4",y:"12",rx:"4",ry:"4",width:"14",height:"14"}),x.jsx("rect",{x:"28",y:"12",rx:"2",ry:"2",width:"170",height:"14"}),x.jsx("rect",{x:"4",y:"36",rx:"4",ry:"4",width:"14",height:"14"}),x.jsx("rect",{x:"28",y:"36",rx:"2",ry:"2",width:"170",height:"14"}),x.jsx("rect",{x:"4",y:"60",rx:"4",ry:"4",width:"14",height:"14"}),x.jsx("rect",{x:"28",y:"60",rx:"2",ry:"2",width:"170",height:"14"}),x.jsx("rect",{x:"4",y:"84",rx:"4",ry:"4",width:"14",height:"14"}),x.jsx("rect",{x:"28",y:"84",rx:"2",ry:"2",width:"170",height:"14"}),x.jsx("rect",{x:"4",y:"108",rx:"4",ry:"4",width:"14",height:"14"}),x.jsx("rect",{x:"28",y:"108",rx:"2",ry:"2",width:"170",height:"14"}),x.jsx("rect",{x:"4",y:"132",rx:"4",ry:"4",width:"14",height:"14"}),x.jsx("rect",{x:"28",y:"132",rx:"2",ry:"2",width:"170",height:"14"}),x.jsx("rect",{x:"4",y:"156",rx:"4",ry:"4",width:"14",height:"14"}),x.jsx("rect",{x:"28",y:"156",rx:"2",ry:"2",width:"170",height:"14"})]}),exports.ContentLoaderFilters=()=>x.jsxs(Mv,{height:31,width:500,speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:[x.jsx("rect",{x:"0",y:"5",rx:"8",ry:"8",width:"90",height:"20"}),x.jsx("rect",{x:"100",y:"5",rx:"8",ry:"8",width:"90",height:"20"}),x.jsx("rect",{x:"200",y:"5",rx:"8",ry:"8",width:"90",height:"20"}),x.jsx("rect",{x:"300",y:"5",rx:"8",ry:"8",width:"90",height:"20"}),x.jsx("rect",{x:"400",y:"5",rx:"8",ry:"8",width:"90",height:"20"})]}),exports.ContentLoaderInvoiceListPaymentreceiveDetail=()=>x.jsx(Pv,{className:"_refLoadingList",children:x.jsxs(Mv,{speed:1,width:Vv,height:250,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{width:"100%",maxWidth:"1336px",minWidth:"1024px"},children:[x.jsx("rect",{x:"40",y:"0",rx:"2",ry:"2",width:"130",height:"21"}),x.jsx("rect",{x:"190",y:"0",rx:"2",ry:"2",width:"130",height:"21"}),x.jsx("rect",{x:"330",y:"0",rx:"2",ry:"2",width:"250",height:"21"}),x.jsx("rect",{x:"600",y:"0",rx:"2",ry:"2",width:"200",height:"21"}),x.jsx("rect",{x:Vv-240,y:"0",rx:"2",ry:"2",width:"200",height:"21"}),x.jsx("rect",{x:"40",y:"50",rx:"2",ry:"2",width:"130",height:"31"}),x.jsx("rect",{x:"190",y:"50",rx:"2",ry:"2",width:"130",height:"31"}),x.jsx("rect",{x:"330",y:"50",rx:"2",ry:"2",width:"250",height:"31"}),x.jsx("rect",{x:"600",y:"50",rx:"2",ry:"2",width:"200",height:"31"}),x.jsx("rect",{x:Vv-240,y:"50",rx:"2",ry:"2",width:"200",height:"31"}),x.jsx("rect",{x:"40",y:"100",rx:"2",ry:"2",width:"130",height:"31"}),x.jsx("rect",{x:"190",y:"100",rx:"2",ry:"2",width:"130",height:"31"}),x.jsx("rect",{x:"330",y:"100",rx:"2",ry:"2",width:"250",height:"31"}),x.jsx("rect",{x:"600",y:"100",rx:"2",ry:"2",width:"200",height:"31"}),x.jsx("rect",{x:Vv-240,y:"100",rx:"2",ry:"2",width:"200",height:"31"}),x.jsx("rect",{x:"40",y:"150",rx:"2",ry:"2",width:"130",height:"31"}),x.jsx("rect",{x:"190",y:"150",rx:"2",ry:"2",width:"130",height:"31"}),x.jsx("rect",{x:"330",y:"150",rx:"2",ry:"2",width:"250",height:"31"}),x.jsx("rect",{x:"600",y:"150",rx:"2",ry:"2",width:"200",height:"31"}),x.jsx("rect",{x:Vv-240,y:"150",rx:"2",ry:"2",width:"200",height:"31"}),x.jsx("rect",{x:"40",y:"200",rx:"2",ry:"2",width:"130",height:"31"}),x.jsx("rect",{x:"190",y:"200",rx:"2",ry:"2",width:"130",height:"31"}),x.jsx("rect",{x:"330",y:"200",rx:"2",ry:"2",width:"250",height:"31"}),x.jsx("rect",{x:"600",y:"200",rx:"2",ry:"2",width:"200",height:"31"}),x.jsx("rect",{x:Vv-240,y:"200",rx:"2",ry:"2",width:"200",height:"31"})]})}),exports.ContentLoaderMasterBundleDetail=()=>{const e=Vv>=1336?540:Vv>=1112?320:250,t=e+30,n=150,r=t+n+15,i=80,a=r+i+15,o=150,s=a+o+15;return x.jsx(_v,{children:x.jsxs(Mv,{speed:1,width:Vv,height:300,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[x.jsx("rect",{x:"15",y:"25",rx:"2",ry:"2",width:e,height:"15"}),x.jsx("rect",{x:t,y:"25",rx:"2",ry:"2",width:n,height:"15"}),x.jsx("rect",{x:r,y:"25",rx:"2",ry:"2",width:i,height:"15"}),x.jsx("rect",{x:a,y:"25",rx:"2",ry:"2",width:o,height:"15"}),x.jsx("rect",{x:s,y:"25",rx:"2",ry:"2",width:80,height:"15"}),x.jsx("rect",{x:"15",y:"60",rx:"2",ry:"2",width:e,height:"30"}),x.jsx("rect",{x:t,y:"60",rx:"2",ry:"2",width:n,height:"30"}),x.jsx("rect",{x:r,y:"60",rx:"2",ry:"2",width:i,height:"30"}),x.jsx("rect",{x:a,y:"60",rx:"2",ry:"2",width:o,height:"30"}),x.jsx("rect",{x:s,y:"60",rx:"2",ry:"2",width:80,height:"30"}),x.jsx("rect",{x:"15",y:"110",rx:"2",ry:"2",width:e,height:"30"}),x.jsx("rect",{x:t,y:"110",rx:"2",ry:"2",width:n,height:"30"}),x.jsx("rect",{x:r,y:"110",rx:"2",ry:"2",width:i,height:"30"}),x.jsx("rect",{x:a,y:"110",rx:"2",ry:"2",width:o,height:"30"}),x.jsx("rect",{x:s,y:"110",rx:"2",ry:"2",width:80,height:"30"}),x.jsx("rect",{x:"15",y:"160",rx:"2",ry:"2",width:e,height:"30"}),x.jsx("rect",{x:t,y:"160",rx:"2",ry:"2",width:n,height:"30"}),x.jsx("rect",{x:r,y:"160",rx:"2",ry:"2",width:i,height:"30"}),x.jsx("rect",{x:a,y:"160",rx:"2",ry:"2",width:o,height:"30"}),x.jsx("rect",{x:s,y:"160",rx:"2",ry:"2",width:80,height:"30"}),x.jsx("rect",{x:"15",y:"210",rx:"2",ry:"2",width:e,height:"30"}),x.jsx("rect",{x:t,y:"210",rx:"2",ry:"2",width:n,height:"30"}),x.jsx("rect",{x:r,y:"210",rx:"2",ry:"2",width:i,height:"30"}),x.jsx("rect",{x:a,y:"210",rx:"2",ry:"2",width:o,height:"30"}),x.jsx("rect",{x:s,y:"210",rx:"2",ry:"2",width:80,height:"30"})]})})},exports.ContentLoaderMasterDetail=()=>{const e=Vv-250,t=Vv-150,n=Vv-80,r=140,i=183,a=200,o=388,s=140,l=533,c=140,d=678,u=140,p=823,h=140;return x.jsx(Rv,{children:x.jsxs(Mv,{speed:1,width:Vv,height:"100%",backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[x.jsx("rect",{x:38,y:"20",rx:"2",ry:"2",width:e,height:"30"}),x.jsx("rect",{x:t,y:"20",rx:"2",ry:"2",width:60,height:"30"}),x.jsx("rect",{x:n,y:"20",rx:"2",ry:"2",width:30,height:"30"}),x.jsx("rect",{x:"50",y:"80",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"170",y:"80",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"290",y:"80",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"38",y:"130",rx:"2",ry:"2",width:"150",height:"20"}),x.jsx("rect",{x:"200",y:"130",rx:"2",ry:"2",width:"285",height:"20"}),x.jsx("rect",{x:"38",y:"165",rx:"2",ry:"2",width:"150",height:"20"}),x.jsx("rect",{x:"200",y:"165",rx:"2",ry:"2",width:"285",height:"20"}),x.jsx("rect",{x:"38",y:"200",rx:"2",ry:"2",width:"150",height:"20"}),x.jsx("rect",{x:"200",y:"200",rx:"2",ry:"2",width:"285",height:"20"}),x.jsx("rect",{x:"38",y:"235",rx:"2",ry:"2",width:"150",height:"20"}),x.jsx("rect",{x:"200",y:"235",rx:"2",ry:"2",width:"285",height:"20"}),x.jsx("rect",{x:"38",y:"270",rx:"2",ry:"2",width:"150",height:"20"}),x.jsx("rect",{x:"200",y:"270",rx:"2",ry:"2",width:"285",height:"20"}),x.jsx("rect",{x:38,y:"320",rx:"2",ry:"2",width:r,height:"31"}),x.jsx("rect",{x:i,y:"320",rx:"2",ry:"2",width:a,height:"31"}),x.jsx("rect",{x:o,y:"320",rx:"2",ry:"2",width:s,height:"31"}),x.jsx("rect",{x:l,y:"320",rx:"2",ry:"2",width:c,height:"31"}),x.jsx("rect",{x:d,y:"320",rx:"2",ry:"2",width:u,height:"31"}),x.jsx("rect",{x:p,y:"320",rx:"2",ry:"2",width:h,height:"31"}),x.jsx("rect",{x:38,y:"370",rx:"2",ry:"2",width:r,height:"31"}),x.jsx("rect",{x:i,y:"370",rx:"2",ry:"2",width:a,height:"31"}),x.jsx("rect",{x:o,y:"370",rx:"2",ry:"2",width:s,height:"31"}),x.jsx("rect",{x:l,y:"370",rx:"2",ry:"2",width:c,height:"31"}),x.jsx("rect",{x:d,y:"370",rx:"2",ry:"2",width:u,height:"31"}),x.jsx("rect",{x:p,y:"370",rx:"2",ry:"2",width:h,height:"31"}),x.jsx("rect",{x:38,y:"420",rx:"2",ry:"2",width:r,height:"31"}),x.jsx("rect",{x:i,y:"420",rx:"2",ry:"2",width:a,height:"31"}),x.jsx("rect",{x:o,y:"420",rx:"2",ry:"2",width:s,height:"31"}),x.jsx("rect",{x:l,y:"420",rx:"2",ry:"2",width:c,height:"31"}),x.jsx("rect",{x:d,y:"420",rx:"2",ry:"2",width:u,height:"31"}),x.jsx("rect",{x:p,y:"420",rx:"2",ry:"2",width:h,height:"31"}),x.jsx("rect",{x:38,y:"470",rx:"2",ry:"2",width:r,height:"31"}),x.jsx("rect",{x:i,y:"470",rx:"2",ry:"2",width:a,height:"31"}),x.jsx("rect",{x:o,y:"470",rx:"2",ry:"2",width:s,height:"31"}),x.jsx("rect",{x:l,y:"470",rx:"2",ry:"2",width:c,height:"31"}),x.jsx("rect",{x:d,y:"470",rx:"2",ry:"2",width:u,height:"31"}),x.jsx("rect",{x:p,y:"470",rx:"2",ry:"2",width:h,height:"31"}),x.jsx("rect",{x:"38",y:"530",rx:"2",ry:"2",width:"200",height:"15"}),x.jsx("rect",{x:38,y:"560",rx:"2",ry:"2",width:"50",height:"50"}),x.jsx("rect",{x:108,y:"560",rx:"2",ry:"2",width:"50",height:"50"}),x.jsx("rect",{x:178,y:"560",rx:"2",ry:"2",width:"50",height:"50"}),x.jsx("rect",{x:248,y:"560",rx:"2",ry:"2",width:"50",height:"50"}),x.jsx("rect",{x:318,y:"560",rx:"2",ry:"2",width:"50",height:"50"})]})})},exports.ContentLoaderMasterList=()=>{const t=Hv-286,n=Vv>=1336?370:Vv>=1112?250:150,r=29+n+12,i=Vv>=1336?130:Vv>=1112?110:100,a=r+i+12,o=Vv>=1336?100:95,s=a+o+12,l=Vv>=1336?90:80,c=s+l+12,d=Vv>=1336?85:75,u=c+d+12,p=Vv>=1336?80:70,h=u+p+12,g=Vv>=1336?70:60,f=h+g+12,m=Vv>=1336?95:85,y=Vv-100-24,b=Hv&&Math.ceil((t-78)/70)>0?Math.ceil((t-78)/70):0;let v=f+m+12,w=[];for(let e=0;v+122<y;e++)w.push({x:f+m+12+122*e,w:110}),v=f+m+12+122*e;return x.jsx(Lv,{children:x.jsxs(Mv,{speed:1,width:Vv,height:"100%",backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[x.jsx("rect",{x:29,y:"23",rx:"2",ry:"2",width:n,height:"16"}),x.jsx("rect",{x:r,y:"23",rx:"2",ry:"2",width:i,height:"16"}),x.jsx("rect",{x:a,y:"23",rx:"2",ry:"2",width:o,height:"16"}),x.jsx("rect",{x:s,y:"23",rx:"2",ry:"2",width:l,height:"16"}),x.jsx("rect",{x:c,y:"23",rx:"2",ry:"2",width:d,height:"16"}),x.jsx("rect",{x:u,y:"23",rx:"2",ry:"2",width:p,height:"16"}),x.jsx("rect",{x:h,y:"23",rx:"2",ry:"2",width:g,height:"16"}),x.jsx("rect",{x:f,y:"23",rx:"2",ry:"2",width:m,height:"16"}),w.map(((t,n)=>x.jsx(e.Fragment,{children:x.jsx("rect",{x:t.x,y:"23",rx:"2",ry:"2",width:t.w,height:"16"})},n))),x.jsx("rect",{x:y,y:"23",rx:"2",ry:"2",width:100,height:"16"}),Array.apply(0,Array(b)).map(((t,b)=>{const v=70*b+78;return x.jsxs(e.Fragment,{children:[x.jsx("rect",{x:29,y:v,rx:"2",ry:"2",width:n,height:"31"}),x.jsx("rect",{x:r,y:v,rx:"2",ry:"2",width:i,height:"31"}),x.jsx("rect",{x:a,y:v,rx:"2",ry:"2",width:o,height:"31"}),x.jsx("rect",{x:s,y:v,rx:"2",ry:"2",width:l,height:"31"}),x.jsx("rect",{x:c,y:v,rx:"2",ry:"2",width:d,height:"31"}),x.jsx("rect",{x:u,y:v,rx:"2",ry:"2",width:p,height:"31"}),x.jsx("rect",{x:h,y:v,rx:"2",ry:"2",width:g,height:"31"}),x.jsx("rect",{x:f,y:v,rx:"2",ry:"2",width:m,height:"31"}),w.map(((t,n)=>x.jsx(e.Fragment,{children:x.jsx("rect",{x:t.x,y:v,rx:"2",ry:"2",width:t.w,height:"31"})},n))),x.jsx("rect",{x:y,y:v,rx:"2",ry:"2",width:100,height:"31"})]},b)}))]})})},exports.ContentLoaderMasterListingDetail=()=>{const e=Vv>=1336?645:Vv>=1112?400:300,t=e+45,n=e+90;return x.jsx(_v,{children:x.jsxs(Mv,{speed:1,width:Vv,height:300,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[x.jsx("rect",{x:"15",y:"25",rx:"2",ry:"2",width:t,height:"15"}),x.jsx("rect",{x:n,y:"25",rx:"2",ry:"2",width:"250",height:"15"}),x.jsx("rect",{x:"15",y:"60",rx:"8",ry:"8",width:"30",height:"30"}),x.jsx("rect",{x:"60",y:"60",rx:"2",ry:"2",width:e,height:"30"}),x.jsx("rect",{x:n,y:"60",rx:"2",ry:"2",width:"250",height:"30"}),x.jsx("rect",{x:"15",y:"110",rx:"8",ry:"8",width:"30",height:"30"}),x.jsx("rect",{x:"60",y:"110",rx:"2",ry:"2",width:e,height:"30"}),x.jsx("rect",{x:n,y:"110",rx:"2",ry:"2",width:"250",height:"30"}),x.jsx("rect",{x:"15",y:"160",rx:"8",ry:"8",width:"30",height:"30"}),x.jsx("rect",{x:"60",y:"160",rx:"2",ry:"2",width:e,height:"30"}),x.jsx("rect",{x:n,y:"160",rx:"2",ry:"2",width:"250",height:"30"}),x.jsx("rect",{x:"15",y:"210",rx:"8",ry:"8",width:"30",height:"30"}),x.jsx("rect",{x:"60",y:"210",rx:"2",ry:"2",width:e,height:"30"}),x.jsx("rect",{x:n,y:"210",rx:"2",ry:"2",width:"250",height:"30"})]})})},exports.ContentLoaderNonOrderList=()=>{const t=window.innerWidth,n=t>=1336?150:t>=1112?110:100,r=29+n+12,i=t>=1336?120:t>=1112?110:100,a=r+i+12,o=t>=1336||t>=1112?110:105,s=a+o+12,l=t>=1336||t>=1112?140:130,c=s+l+12,d=t>=1336?130:t>=1112?120:100,u=c+d+12,p=t>=1336?115:t>=1112?105:100,h=u+p+12,g=t>=1336?150:t>=1112?110:100,f=t-150-24,m=Hv?Math.ceil((Hv-78)/70):0;let y=h+g+12,b=[];for(let e=0;y+122<f;e++)b.push({x:h+g+12+122*e,w:110}),y=h+g+12+122*e;return x.jsx(Lv,{className:"_refLoadingList",children:x.jsxs(Mv,{speed:1,width:t,height:"100%",backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[x.jsx("rect",{x:29,y:"23",rx:"2",ry:"2",width:n,height:"16"}),x.jsx("rect",{x:r,y:"23",rx:"2",ry:"2",width:i,height:"16"}),x.jsx("rect",{x:a,y:"23",rx:"2",ry:"2",width:o,height:"16"}),x.jsx("rect",{x:s,y:"23",rx:"2",ry:"2",width:l,height:"16"}),x.jsx("rect",{x:c,y:"23",rx:"2",ry:"2",width:d,height:"16"}),x.jsx("rect",{x:u,y:"23",rx:"2",ry:"2",width:p,height:"16"}),x.jsx("rect",{x:h,y:"23",rx:"2",ry:"2",width:g,height:"16"}),b.map(((t,n)=>x.jsx(e.Fragment,{children:x.jsx("rect",{x:t.x,y:"23",rx:"2",ry:"2",width:t.w,height:"16"})},n))),x.jsx("rect",{x:f,y:"23",rx:"2",ry:"2",width:100,height:"16"}),Array.apply(0,Array(m)).map(((t,m)=>{const y=70*m+78;return x.jsxs(e.Fragment,{children:[x.jsx("rect",{x:29,y:y,rx:"2",ry:"2",width:n,height:"31"}),x.jsx("rect",{x:r,y:y,rx:"2",ry:"2",width:i,height:"31"}),x.jsx("rect",{x:a,y:y,rx:"2",ry:"2",width:o,height:"31"}),x.jsx("rect",{x:s,y:y,rx:"2",ry:"2",width:l,height:"31"}),x.jsx("rect",{x:c,y:y,rx:"2",ry:"2",width:d,height:"31"}),x.jsx("rect",{x:u,y:y,rx:"2",ry:"2",width:p,height:"31"}),x.jsx("rect",{x:h,y:y,rx:"2",ry:"2",width:g,height:"31"}),b.map(((t,n)=>x.jsx(e.Fragment,{children:x.jsx("rect",{x:t.x,y:y,rx:"2",ry:"2",width:t.w,height:"31"})},n))),x.jsx("rect",{x:f,y:y,rx:"2",ry:"2",width:100,height:"31"})]},m)}))]})})},exports.ContentLoaderNotifUpdate=()=>x.jsx(Mv,{height:36,width:"100%",speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:x.jsx("rect",{x:"0",y:"0",rx:"0",ry:"0",width:"100%",height:"36"})}),exports.ContentLoaderOneLinePromotion=()=>x.jsx(Mv,{height:16,width:86,speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,viewBox:"0 0 86 16",children:x.jsx("rect",{x:"0",y:"2",rx:"5",ry:"5",width:80,height:14})}),exports.ContentLoaderOnlyBodyDashboardCard=()=>x.jsxs(Mv,{height:650,width:"100%",speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:[x.jsx("rect",{x:"0",y:"30",rx:"0",ry:"0",width:"50%",height:"20"}),x.jsx("rect",{x:"0",y:"55",rx:"0",ry:"0",width:"50%",height:"20"}),x.jsx("rect",{x:"0",y:"80",rx:"0",ry:"0",width:"50%",height:"20"}),x.jsx("rect",{x:"0",y:"105",rx:"0",ry:"0",width:"50%",height:"20"}),x.jsx("rect",{x:"0",y:"130",rx:"0",ry:"0",width:"50%",height:"20"}),x.jsx("rect",{x:"0",y:"155",rx:"0",ry:"0",width:"50%",height:"20"}),x.jsx("rect",{x:"0",y:"180",rx:"0",ry:"0",width:"50%",height:"20"}),x.jsx("rect",{x:"0",y:"205",rx:"0",ry:"0",width:"50%",height:"20"}),x.jsx("rect",{x:"0",y:"250",rx:"0",ry:"0",width:"100%",height:"250"}),x.jsx("rect",{x:"0",y:"525",rx:"0",ry:"0",width:"100%",height:"15"}),x.jsx("rect",{x:"0",y:"550",rx:"0",ry:"0",width:"100%",height:"15"}),x.jsx("rect",{x:"0",y:"575",rx:"0",ry:"0",width:"100%",height:"15"})]}),exports.ContentLoaderOnlyBodyTableList=()=>{const e=window.innerHeight-96,t=Math.floor((Vv-110)/120),n=Math.floor((e-20)/50);return x.jsx(Pv,{children:x.jsx(Mv,{speed:1,width:Vv,height:e,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:Array.apply(0,Array(n)).map(((e,n)=>{const r=n+50*(n+1)-30;return Array.apply(0,Array(t)).map(((e,t)=>{const n=t+120*(t+1)-65;return x.jsx("rect",{x:n,y:r,rx:"2",ry:"2",width:100,height:"30"},t)}))}))})})},exports.ContentLoaderOnlyHeaderTableList=()=>{const e=Math.floor((Vv-110)/120);return x.jsx(Pv,{children:x.jsx(Mv,{speed:1,width:Vv,height:100,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[0].map(((t,n)=>Array.apply(0,Array(e)).map(((e,t)=>{const r=t+120*(t+1)-65;return x.jsx("rect",{x:r,y:20,rx:"2",ry:"2",width:100,height:0===n?16:30},t)}))))})})},exports.ContentLoaderOrderDetail=()=>{const e=Vv-700,t=Vv-432,n=Vv-302,r=Vv-217,i=Vv-72,a=Vv-777,o=Vv-665,s=Vv-625,l=Vv-515,c=Vv-365,d=Vv-190,u=140,p=Vv-777,h=Vv-629,g=Vv-529,f=Vv-389,m=Vv-214;return x.jsx(Rv,{children:x.jsxs(Mv,{speed:1,width:Vv,height:"100%",backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[x.jsx("rect",{x:"38",y:"18",rx:"2",ry:"2",width:"36",height:"36"}),x.jsx("rect",{x:84,y:"18",rx:"2",ry:"2",width:e,height:"36"}),x.jsx("rect",{x:t,y:"20",rx:"2",ry:"2",width:120,height:"32"}),x.jsx("rect",{x:n,y:"20",rx:"2",ry:"2",width:80,height:"32"}),x.jsx("rect",{x:r,y:"20",rx:"2",ry:"2",width:140,height:"32"}),x.jsx("rect",{x:i,y:"20",rx:"2",ry:"2",width:30,height:"32"}),x.jsx("rect",{x:"38",y:"85",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"152",y:"85",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"266",y:"85",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"64",y:"150",rx:"2",ry:"2",width:"31",height:"61"}),x.jsx("rect",{x:121,y:"150",rx:"2",ry:"2",width:p,height:"61"}),x.jsx("rect",{x:h,y:"150",rx:"2",ry:"2",width:90,height:"61"}),x.jsx("rect",{x:g,y:"150",rx:"2",ry:"2",width:140,height:"61"}),x.jsx("rect",{x:f,y:"150",rx:"2",ry:"2",width:160,height:"61"}),x.jsx("rect",{x:m,y:"150",rx:"2",ry:"2",width:140,height:"61"}),x.jsx("rect",{x:"38",y:"284",rx:"2",ry:"2",width:"285",height:"31"}),x.jsx("rect",{x:"389",y:"284",rx:"2",ry:"2",width:"285",height:"31"}),x.jsx("rect",{x:"38",y:"324",rx:"2",ry:"2",width:"285",height:"31"}),x.jsx("rect",{x:"389",y:"324",rx:"2",ry:"2",width:"285",height:"31"}),x.jsx("rect",{x:"38",y:"364",rx:"2",ry:"2",width:"285",height:"31"}),x.jsx("rect",{x:"389",y:"364",rx:"2",ry:"2",width:"285",height:"31"}),x.jsx("rect",{x:"38",y:"404",rx:"2",ry:"2",width:"285",height:"31"}),x.jsx("rect",{x:"389",y:"404",rx:"2",ry:"2",width:"285",height:"31"}),x.jsx("rect",{x:"38",y:"444",rx:"2",ry:"2",width:"285",height:"31"}),x.jsx("rect",{x:"389",y:"444",rx:"2",ry:"2",width:"285",height:"31"}),x.jsx("rect",{x:"38",y:"515",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:95,y:"515",rx:"2",ry:"2",width:a,height:"31"}),x.jsx("rect",{x:o,y:"515",rx:"2",ry:"2",width:26,height:"31"}),x.jsx("rect",{x:s,y:"515",rx:"2",ry:"2",width:90,height:"31"}),x.jsx("rect",{x:l,y:"515",rx:"2",ry:"2",width:140,height:"31"}),x.jsx("rect",{x:c,y:"515",rx:"2",ry:"2",width:160,height:"31"}),x.jsx("rect",{x:d,y:"515",rx:"2",ry:"2",width:u,height:"31"}),x.jsx("rect",{x:"38",y:"555",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:95,y:"555",rx:"2",ry:"2",width:a,height:"31"}),x.jsx("rect",{x:o,y:"555",rx:"2",ry:"2",width:26,height:"31"}),x.jsx("rect",{x:s,y:"555",rx:"2",ry:"2",width:90,height:"31"}),x.jsx("rect",{x:l,y:"555",rx:"2",ry:"2",width:140,height:"31"}),x.jsx("rect",{x:c,y:"555",rx:"2",ry:"2",width:160,height:"31"}),x.jsx("rect",{x:d,y:"555",rx:"2",ry:"2",width:u,height:"31"}),x.jsx("rect",{x:d,y:"604",rx:"2",ry:"2",width:u,height:"31"}),x.jsx("rect",{x:d,y:"654",rx:"2",ry:"2",width:u,height:"31"}),x.jsx("rect",{x:"38",y:"684",rx:"2",ry:"2",width:e,height:"36"})]})})},exports.ContentLoaderOrderList=()=>{const e=100,t=Vv-600,n=Vv-405,r=120,i=Vv-275,a=Vv-190,o=140,s=Vv-45,l=Vv-18,c=Vv-777,d=Vv-665,u=Vv-625,p=Vv-515,h=140,g=Vv-365,f=160,m=Vv-190,y=140;return x.jsxs(Nv,{children:[x.jsx(Ov,{children:x.jsxs(Mv,{speed:1,width:Vv,height:"100%",backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[x.jsx("rect",{x:"52",y:"15",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:e,y:"15",rx:"2",ry:"2",width:t,height:"31"}),x.jsx("rect",{x:n,y:"15",rx:"2",ry:"2",width:r,height:"32"}),x.jsx("rect",{x:i,y:"15",rx:"2",ry:"2",width:80,height:"32"}),x.jsx("rect",{x:a,y:"15",rx:"2",ry:"2",width:o,height:"32"}),x.jsx("rect",{x:s,y:"15",rx:"2",ry:"2",width:30,height:"32"}),x.jsx("rect",{x:"52",y:"80",rx:"2",ry:"2",width:"200",height:"15"}),x.jsx("rect",{x:9,y:"110",rx:"0",ry:"0",width:l,height:"2"}),x.jsx("rect",{x:"52",y:"127",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:95,y:"127",rx:"2",ry:"2",width:c,height:"50"}),x.jsx("rect",{x:d,y:"127",rx:"2",ry:"2",width:26,height:"31"}),x.jsx("rect",{x:u,y:"127",rx:"2",ry:"2",width:90,height:"31"}),x.jsx("rect",{x:p,y:"127",rx:"2",ry:"2",width:h,height:"31"}),x.jsx("rect",{x:g,y:"127",rx:"2",ry:"2",width:f,height:"31"}),x.jsx("rect",{x:m,y:"127",rx:"2",ry:"2",width:y,height:"65"})]})}),x.jsx(Ov,{children:x.jsxs(Mv,{speed:1,width:Vv,height:"100%",backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[x.jsx("rect",{x:"52",y:"15",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:e,y:"15",rx:"2",ry:"2",width:t,height:"31"}),x.jsx("rect",{x:n,y:"15",rx:"2",ry:"2",width:r,height:"32"}),x.jsx("rect",{x:i,y:"15",rx:"2",ry:"2",width:80,height:"32"}),x.jsx("rect",{x:a,y:"15",rx:"2",ry:"2",width:o,height:"32"}),x.jsx("rect",{x:s,y:"15",rx:"2",ry:"2",width:30,height:"32"}),x.jsx("rect",{x:"52",y:"80",rx:"2",ry:"2",width:"200",height:"15"}),x.jsx("rect",{x:9,y:"110",rx:"0",ry:"0",width:l,height:"2"}),x.jsx("rect",{x:"52",y:"127",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:95,y:"127",rx:"2",ry:"2",width:c,height:"50"}),x.jsx("rect",{x:d,y:"127",rx:"2",ry:"2",width:26,height:"31"}),x.jsx("rect",{x:u,y:"127",rx:"2",ry:"2",width:90,height:"31"}),x.jsx("rect",{x:p,y:"127",rx:"2",ry:"2",width:h,height:"31"}),x.jsx("rect",{x:g,y:"127",rx:"2",ry:"2",width:f,height:"31"}),x.jsx("rect",{x:m,y:"127",rx:"2",ry:"2",width:y,height:"65"})]})}),x.jsx(Ov,{children:x.jsxs(Mv,{speed:1,width:Vv,height:"100%",backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[x.jsx("rect",{x:"52",y:"15",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:e,y:"15",rx:"2",ry:"2",width:t,height:"31"}),x.jsx("rect",{x:n,y:"15",rx:"2",ry:"2",width:r,height:"32"}),x.jsx("rect",{x:i,y:"15",rx:"2",ry:"2",width:80,height:"32"}),x.jsx("rect",{x:a,y:"15",rx:"2",ry:"2",width:o,height:"32"}),x.jsx("rect",{x:s,y:"15",rx:"2",ry:"2",width:30,height:"32"}),x.jsx("rect",{x:"52",y:"80",rx:"2",ry:"2",width:"200",height:"15"}),x.jsx("rect",{x:9,y:"110",rx:"0",ry:"0",width:l,height:"2"}),x.jsx("rect",{x:"52",y:"127",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:95,y:"127",rx:"2",ry:"2",width:c,height:"50"}),x.jsx("rect",{x:d,y:"127",rx:"2",ry:"2",width:26,height:"31"}),x.jsx("rect",{x:u,y:"127",rx:"2",ry:"2",width:90,height:"31"}),x.jsx("rect",{x:p,y:"127",rx:"2",ry:"2",width:h,height:"31"}),x.jsx("rect",{x:g,y:"127",rx:"2",ry:"2",width:f,height:"31"}),x.jsx("rect",{x:m,y:"127",rx:"2",ry:"2",width:y,height:"65"})]})}),x.jsx(Ov,{children:x.jsxs(Mv,{speed:1,width:Vv,height:"100%",backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[x.jsx("rect",{x:"52",y:"15",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:e,y:"15",rx:"2",ry:"2",width:t,height:"31"}),x.jsx("rect",{x:n,y:"15",rx:"2",ry:"2",width:r,height:"32"}),x.jsx("rect",{x:i,y:"15",rx:"2",ry:"2",width:80,height:"32"}),x.jsx("rect",{x:a,y:"15",rx:"2",ry:"2",width:o,height:"32"}),x.jsx("rect",{x:s,y:"15",rx:"2",ry:"2",width:30,height:"32"}),x.jsx("rect",{x:"52",y:"80",rx:"2",ry:"2",width:"200",height:"15"}),x.jsx("rect",{x:9,y:"110",rx:"0",ry:"0",width:l,height:"2"}),x.jsx("rect",{x:"52",y:"127",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:95,y:"127",rx:"2",ry:"2",width:c,height:"50"}),x.jsx("rect",{x:d,y:"127",rx:"2",ry:"2",width:26,height:"31"}),x.jsx("rect",{x:u,y:"127",rx:"2",ry:"2",width:90,height:"31"}),x.jsx("rect",{x:p,y:"127",rx:"2",ry:"2",width:h,height:"31"}),x.jsx("rect",{x:g,y:"127",rx:"2",ry:"2",width:f,height:"31"}),x.jsx("rect",{x:m,y:"127",rx:"2",ry:"2",width:y,height:"65"})]})}),x.jsx(Ov,{children:x.jsxs(Mv,{speed:1,width:Vv,height:"100%",backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[x.jsx("rect",{x:"52",y:"15",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:e,y:"15",rx:"2",ry:"2",width:t,height:"31"}),x.jsx("rect",{x:n,y:"15",rx:"2",ry:"2",width:r,height:"32"}),x.jsx("rect",{x:i,y:"15",rx:"2",ry:"2",width:80,height:"32"}),x.jsx("rect",{x:a,y:"15",rx:"2",ry:"2",width:o,height:"32"}),x.jsx("rect",{x:s,y:"15",rx:"2",ry:"2",width:30,height:"32"}),x.jsx("rect",{x:"52",y:"80",rx:"2",ry:"2",width:"200",height:"15"}),x.jsx("rect",{x:9,y:"110",rx:"0",ry:"0",width:l,height:"2"}),x.jsx("rect",{x:"52",y:"127",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:95,y:"127",rx:"2",ry:"2",width:c,height:"50"}),x.jsx("rect",{x:d,y:"127",rx:"2",ry:"2",width:26,height:"31"}),x.jsx("rect",{x:u,y:"127",rx:"2",ry:"2",width:90,height:"31"}),x.jsx("rect",{x:p,y:"127",rx:"2",ry:"2",width:h,height:"31"}),x.jsx("rect",{x:g,y:"127",rx:"2",ry:"2",width:f,height:"31"}),x.jsx("rect",{x:m,y:"127",rx:"2",ry:"2",width:y,height:"65"})]})})]})},exports.ContentLoaderPOSCategory=()=>{const e=Math.floor(31*Math.random())+50;return x.jsx(Mv,{height:30,width:e,speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:x.jsx("rect",{x:"0",y:"0",rx:"4",ry:"4",width:"100%",height:"30"})})},exports.ContentLoaderPOSItem=()=>x.jsxs(Mv,{height:116,width:"100%",speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:[x.jsx(Yv,{$width:"calc(100% - 20px)",x:"10",y:"10",rx:"0",ry:"0",height:"16"}),x.jsx("rect",{x:"10",y:"35",rx:"0",ry:"0",width:"75%",height:"16"}),x.jsx(Yv,{$width:"calc(100% - 20px)",x:"10",y:"63",rx:"0",ry:"0",height:"16"}),x.jsx(Yv,{$x:"calc(50% - 30px)",y:"95",rx:"4",ry:"4",width:"60px",height:"16"})]}),exports.ContentLoaderPOSStore=()=>x.jsxs(Mv,{height:125,width:"100%",speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:[x.jsx("rect",{x:"0",y:"4",rx:"0",ry:"0",width:"100%",height:"20"}),x.jsx("rect",{x:"0",y:"28",rx:"0",ry:"0",width:"100%",height:"20"}),x.jsx("rect",{x:"0",y:"70",rx:"0",ry:"0",width:"180px",height:"16"}),x.jsx("rect",{x:"0",y:"110",rx:"0",ry:"0",width:"100px",height:"14"})]}),exports.ContentLoaderPagination=()=>{const e=Vv/2,t=e-160,n=e-128,r=e-96,i=e-64,a=e-32,o=e+0,s=e+32,l=e+64,c=e+96,d=e+128;return x.jsx(Bv,{className:"_refLoadingPage",children:x.jsxs(Mv,{speed:1,width:Vv,height:"100%",backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[x.jsx("rect",{x:t,y:"23",rx:"2",ry:"2",width:"27",height:"27"}),x.jsx("rect",{x:n,y:"23",rx:"2",ry:"2",width:"27",height:"27"}),x.jsx("rect",{x:r,y:"23",rx:"2",ry:"2",width:"27",height:"27"}),x.jsx("rect",{x:i,y:"23",rx:"2",ry:"2",width:"27",height:"27"}),x.jsx("rect",{x:a,y:"23",rx:"2",ry:"2",width:"27",height:"27"}),x.jsx("rect",{x:o,y:"23",rx:"2",ry:"2",width:"27",height:"27"}),x.jsx("rect",{x:s,y:"23",rx:"2",ry:"2",width:"27",height:"27"}),x.jsx("rect",{x:l,y:"23",rx:"2",ry:"2",width:"27",height:"27"}),x.jsx("rect",{x:c,y:"23",rx:"2",ry:"2",width:"27",height:"27"}),x.jsx("rect",{x:d,y:"23",rx:"2",ry:"2",width:"27",height:"27"}),x.jsx("rect",{x:i,y:"60",rx:"2",ry:"2",width:"128",height:"6"})]})})},exports.ContentLoaderPopupBundle=()=>x.jsxs(Mv,{height:270,width:800,speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:[x.jsx("rect",{x:"15",y:"60",width:"300",height:"15"}),x.jsx("rect",{x:"330",y:"25",width:"100",height:"15"}),x.jsx("rect",{x:"450",y:"25",width:"75",height:"15"}),x.jsx("rect",{x:"540",y:"25",width:"130",height:"15"}),x.jsx("rect",{x:"690",y:"25",width:"75",height:"15"}),x.jsx("rect",{x:"15",y:"60",width:"300",height:"30"}),x.jsx("rect",{x:"330",y:"60",width:"100",height:"30"}),x.jsx("rect",{x:"450",y:"60",width:"75",height:"30"}),x.jsx("rect",{x:"540",y:"60",width:"130",height:"30"}),x.jsx("rect",{x:"690",y:"60",width:"75",height:"30"}),x.jsx("rect",{x:"15",y:"110",width:"300",height:"30"}),x.jsx("rect",{x:"330",y:"110",width:"100",height:"30"}),x.jsx("rect",{x:"450",y:"110",width:"75",height:"30"}),x.jsx("rect",{x:"540",y:"110",width:"130",height:"30"}),x.jsx("rect",{x:"690",y:"110",width:"75",height:"30"}),x.jsx("rect",{x:"15",y:"160",width:"300",height:"30"}),x.jsx("rect",{x:"330",y:"160",width:"100",height:"30"}),x.jsx("rect",{x:"450",y:"160",width:"75",height:"30"}),x.jsx("rect",{x:"540",y:"160",width:"130",height:"30"}),x.jsx("rect",{x:"690",y:"160",width:"75",height:"30"}),x.jsx("rect",{x:"15",y:"210",width:"300",height:"30"}),x.jsx("rect",{x:"330",y:"210",width:"100",height:"30"}),x.jsx("rect",{x:"450",y:"210",width:"75",height:"30"}),x.jsx("rect",{x:"540",y:"210",width:"130",height:"30"}),x.jsx("rect",{x:"690",y:"210",width:"75",height:"30"})]}),exports.ContentLoaderPopupChooseStore=()=>x.jsxs(Mv,{height:80,width:600,speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:[x.jsx("rect",{x:"0",y:"0",rx:"5",ry:"5",width:"172",height:"34"}),x.jsx("rect",{x:"178",y:"0",rx:"5",ry:"5",width:"172",height:"34"}),x.jsx("rect",{x:"356",y:"0",rx:"5",ry:"5",width:"100",height:"34"}),x.jsx("rect",{x:"462",y:"0",rx:"5",ry:"5",width:"100",height:"34"}),x.jsx("rect",{x:"0",y:"40",rx:"5",ry:"5",width:"172",height:"34"}),x.jsx("rect",{x:"178",y:"40",rx:"5",ry:"5",width:"100",height:"34"}),x.jsx("rect",{x:"284",y:"40",rx:"5",ry:"5",width:"140",height:"34"}),x.jsx("rect",{x:"430",y:"40",rx:"5",ry:"5",width:"100",height:"34"})]}),exports.ContentLoaderPopupLinkedListing=()=>x.jsxs(Mv,{height:270,width:800,speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:[x.jsx("rect",{x:"15",y:"25",width:"425",height:"15"}),x.jsx("rect",{x:"490",y:"25",width:"150",height:"15"}),x.jsx("rect",{x:"670",y:"25",width:"95",height:"15"}),x.jsx("rect",{x:"15",y:"60",rx:"8",ry:"8",width:"30",height:"30"}),x.jsx("rect",{x:"60",y:"60",width:"380",height:"30"}),x.jsx("rect",{x:"490",y:"60",width:"150",height:"30"}),x.jsx("rect",{x:"670",y:"60",width:"95",height:"30"}),x.jsx("rect",{x:"15",y:"110",rx:"8",ry:"8",width:"30",height:"30"}),x.jsx("rect",{x:"60",y:"110",width:"380",height:"30"}),x.jsx("rect",{x:"490",y:"110",width:"150",height:"30"}),x.jsx("rect",{x:"670",y:"110",width:"95",height:"30"}),x.jsx("rect",{x:"15",y:"160",rx:"8",ry:"8",width:"30",height:"30"}),x.jsx("rect",{x:"60",y:"160",width:"380",height:"30"}),x.jsx("rect",{x:"490",y:"160",width:"150",height:"30"}),x.jsx("rect",{x:"670",y:"160",width:"95",height:"30"}),x.jsx("rect",{x:"15",y:"210",rx:"8",ry:"8",width:"30",height:"30"}),x.jsx("rect",{x:"60",y:"210",width:"380",height:"30"}),x.jsx("rect",{x:"490",y:"210",width:"150",height:"30"}),x.jsx("rect",{x:"670",y:"210",width:"95",height:"30"})]}),exports.ContentLoaderPopupListOrder=()=>x.jsx(Gv,{children:x.jsxs(Mv,{speed:1,width:840,height:255,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{width:"100%",maxWidth:"840px",minWidth:"800px"},children:[x.jsx("rect",{x:"20",y:"25",rx:"2",ry:"2",width:"25",height:"22"}),x.jsx("rect",{x:"55",y:"20",rx:"2",ry:"2",width:"32",height:"32"}),x.jsx("rect",{x:"97",y:"20",rx:"2",ry:"2",width:"250",height:"32"}),x.jsx("rect",{x:"620",y:"20",rx:"2",ry:"2",width:"170",height:"32"}),x.jsx("rect",{x:"800",y:"20",rx:"2",ry:"2",width:"25",height:"22"}),x.jsx("rect",{x:"60",y:"80",rx:"2",ry:"2",width:"200",height:"20"}),x.jsx("rect",{x:"440",y:"80",rx:"2",ry:"2",width:"90",height:"20"}),x.jsx("rect",{x:"560",y:"80",rx:"2",ry:"2",width:"90",height:"20"}),x.jsx("rect",{x:"680",y:"80",rx:"2",ry:"2",width:"90",height:"20"}),x.jsx("rect",{x:"60",y:"130",rx:"2",ry:"2",width:"200",height:"20"}),x.jsx("rect",{x:"440",y:"130",rx:"2",ry:"2",width:"90",height:"20"}),x.jsx("rect",{x:"560",y:"130",rx:"2",ry:"2",width:"90",height:"20"}),x.jsx("rect",{x:"680",y:"130",rx:"2",ry:"2",width:"90",height:"20"}),x.jsx("rect",{x:"20",y:"210",rx:"2",ry:"2",width:"25",height:"22"}),x.jsx("rect",{x:"55",y:"205",rx:"2",ry:"2",width:"32",height:"32"}),x.jsx("rect",{x:"97",y:"205",rx:"2",ry:"2",width:"250",height:"32"}),x.jsx("rect",{x:"620",y:"205",rx:"2",ry:"2",width:"170",height:"32"}),x.jsx("rect",{x:"800",y:"205",rx:"2",ry:"2",width:"25",height:"22"})]})}),exports.ContentLoaderPopupPaymentReceive=()=>x.jsx(Gv,{children:x.jsxs(Mv,{speed:1,width:1e3,height:340,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{width:"100%",maxWidth:"1000px",minWidth:"800px"},children:[x.jsx("rect",{x:"40",y:"20",rx:"2",ry:"2",width:"80",height:"21"}),x.jsx("rect",{x:"40",y:"51",rx:"2",ry:"2",width:"260",height:"30"}),x.jsx("rect",{x:"40",y:"110",rx:"2",ry:"2",width:"80",height:"21"}),x.jsx("rect",{x:"320",y:"110",rx:"2",ry:"2",width:"80",height:"21"}),x.jsx("rect",{x:"40",y:"141",rx:"2",ry:"2",width:"260",height:"30"}),x.jsx("rect",{x:"320",y:"141",rx:"2",ry:"2",width:"260",height:"30"}),x.jsx("rect",{x:"55",y:"200",rx:"2",ry:"2",width:"220",height:"30"}),x.jsx("rect",{x:"320",y:"200",rx:"2",ry:"2",width:"260",height:"30"}),x.jsx("rect",{x:"55",y:"245",rx:"2",ry:"2",width:"220",height:"30"}),x.jsx("rect",{x:"320",y:"245",rx:"2",ry:"2",width:"260",height:"30"}),x.jsx("rect",{x:"55",y:"290",rx:"2",ry:"2",width:"220",height:"30"}),x.jsx("rect",{x:"320",y:"290",rx:"2",ry:"2",width:"260",height:"30"})]})}),exports.ContentLoaderPopupPaymentReceived=()=>x.jsx(Gv,{children:x.jsxs(Mv,{speed:1,width:1e3,height:300,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{width:"100%",maxWidth:"1000px",minWidth:"800px"},children:[x.jsx("rect",{x:"60",y:"20",rx:"2",ry:"2",width:"100",height:"21"}),x.jsx("rect",{x:"60",y:"51",rx:"2",ry:"2",width:"280",height:"36"}),x.jsx("rect",{x:"360",y:"20",rx:"2",ry:"2",width:"100",height:"21"}),x.jsx("rect",{x:"360",y:"51",rx:"2",ry:"2",width:"280",height:"36"}),x.jsx("rect",{x:"660",y:"20",rx:"2",ry:"2",width:"100",height:"21"}),x.jsx("rect",{x:"660",y:"51",rx:"2",ry:"2",width:"280",height:"36"}),x.jsx("rect",{x:"52",y:"130",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:"95",y:"130",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"217",y:"130",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"339",y:"130",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"461",y:"130",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"583",y:"130",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"705",y:"130",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"827",y:"130",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"52",y:"170",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:"95",y:"170",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"217",y:"170",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"339",y:"170",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"461",y:"170",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"583",y:"170",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"705",y:"170",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"827",y:"170",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"52",y:"210",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:"95",y:"210",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"217",y:"210",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"339",y:"210",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"461",y:"210",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"583",y:"210",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"705",y:"210",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"827",y:"210",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"52",y:"250",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:"95",y:"250",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"217",y:"250",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"339",y:"250",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"461",y:"250",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"583",y:"250",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"705",y:"250",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"827",y:"250",rx:"2",ry:"2",width:"110",height:"31"})]})}),exports.ContentLoaderPopupPicklist=()=>x.jsx(Gv,{children:x.jsxs(Mv,{speed:1,width:1e3,height:340,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{width:"100%",maxWidth:"1000px",minWidth:"800px"},children:[x.jsx("rect",{x:"130",y:"20",rx:"2",ry:"2",width:"100",height:"21"}),x.jsx("rect",{x:"510",y:"20",rx:"2",ry:"2",width:"100",height:"21"}),x.jsx("rect",{x:"130",y:"51",rx:"2",ry:"2",width:"360",height:"36"}),x.jsx("rect",{x:"510",y:"51",rx:"2",ry:"2",width:"360",height:"36"}),x.jsx("rect",{x:"130",y:"110",rx:"2",ry:"2",width:"100",height:"21"}),x.jsx("rect",{x:"510",y:"110",rx:"2",ry:"2",width:"100",height:"21"}),x.jsx("rect",{x:"130",y:"141",rx:"2",ry:"2",width:"360",height:"36"}),x.jsx("rect",{x:"510",y:"141",rx:"2",ry:"2",width:"360",height:"36"}),x.jsx("rect",{x:"52",y:"200",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:"95",y:"200",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"217",y:"200",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"339",y:"200",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"461",y:"200",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"583",y:"200",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"705",y:"200",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"827",y:"200",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"52",y:"240",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:"95",y:"240",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"217",y:"240",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"339",y:"240",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"461",y:"240",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"583",y:"240",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"705",y:"240",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"827",y:"240",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"52",y:"280",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:"95",y:"280",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"217",y:"280",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"339",y:"280",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"461",y:"280",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"583",y:"280",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"705",y:"280",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"827",y:"280",rx:"2",ry:"2",width:"110",height:"31"})]})}),exports.ContentLoaderPopupReadyToShip=()=>x.jsx(Gv,{children:x.jsxs(Mv,{speed:1,width:900,height:255,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{width:"100%",maxWidth:"900px",minWidth:"800px"},children:[x.jsx("rect",{x:"20",y:"25",rx:"2",ry:"2",width:"25",height:"22"}),x.jsx("rect",{x:"55",y:"20",rx:"2",ry:"2",width:"32",height:"32"}),x.jsx("rect",{x:"97",y:"20",rx:"2",ry:"2",width:"250",height:"32"}),x.jsx("rect",{x:"500",y:"20",rx:"2",ry:"2",width:"170",height:"32"}),x.jsx("rect",{x:"680",y:"20",rx:"2",ry:"2",width:"170",height:"32"}),x.jsx("rect",{x:"860",y:"20",rx:"2",ry:"2",width:"25",height:"22"}),x.jsx("rect",{x:"20",y:"70",rx:"2",ry:"2",width:"25",height:"22"}),x.jsx("rect",{x:"55",y:"65",rx:"2",ry:"2",width:"32",height:"32"}),x.jsx("rect",{x:"97",y:"65",rx:"2",ry:"2",width:"250",height:"32"}),x.jsx("rect",{x:"500",y:"65",rx:"2",ry:"2",width:"170",height:"32"}),x.jsx("rect",{x:"680",y:"65",rx:"2",ry:"2",width:"170",height:"32"}),x.jsx("rect",{x:"860",y:"65",rx:"2",ry:"2",width:"25",height:"22"}),x.jsx("rect",{x:"20",y:"115",rx:"2",ry:"2",width:"25",height:"22"}),x.jsx("rect",{x:"55",y:"110",rx:"2",ry:"2",width:"32",height:"32"}),x.jsx("rect",{x:"97",y:"110",rx:"2",ry:"2",width:"250",height:"32"}),x.jsx("rect",{x:"500",y:"110",rx:"2",ry:"2",width:"170",height:"32"}),x.jsx("rect",{x:"680",y:"110",rx:"2",ry:"2",width:"170",height:"32"}),x.jsx("rect",{x:"860",y:"110",rx:"2",ry:"2",width:"25",height:"22"}),x.jsx("rect",{x:"20",y:"160",rx:"2",ry:"2",width:"25",height:"22"}),x.jsx("rect",{x:"55",y:"155",rx:"2",ry:"2",width:"32",height:"32"}),x.jsx("rect",{x:"97",y:"155",rx:"2",ry:"2",width:"250",height:"32"}),x.jsx("rect",{x:"500",y:"155",rx:"2",ry:"2",width:"170",height:"32"}),x.jsx("rect",{x:"680",y:"155",rx:"2",ry:"2",width:"170",height:"32"}),x.jsx("rect",{x:"860",y:"155",rx:"2",ry:"2",width:"25",height:"22"}),x.jsx("rect",{x:"20",y:"205",rx:"2",ry:"2",width:"25",height:"22"}),x.jsx("rect",{x:"55",y:"200",rx:"2",ry:"2",width:"32",height:"32"}),x.jsx("rect",{x:"97",y:"200",rx:"2",ry:"2",width:"250",height:"32"}),x.jsx("rect",{x:"500",y:"200",rx:"2",ry:"2",width:"170",height:"32"}),x.jsx("rect",{x:"680",y:"200",rx:"2",ry:"2",width:"170",height:"32"}),x.jsx("rect",{x:"860",y:"200",rx:"2",ry:"2",width:"25",height:"22"})]})}),exports.ContentLoaderPopupStoreSelect=()=>x.jsx(Gv,{children:x.jsx(Mv,{speed:1,width:325.5,height:30,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:x.jsx("rect",{x:"0",y:"0",rx:"5",ry:"5",width:"325.5",height:"30"})})}),exports.ContentLoaderPosProductDetail=()=>x.jsxs(Mv,{speed:1,width:"100%",height:580,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:[x.jsx("rect",{x:"0",y:"0",rx:"0",ry:"0",width:"100%",height:"198"}),x.jsx("rect",{x:"0",y:"214",rx:"0",ry:"0",width:"100%",height:"16"}),x.jsx("rect",{x:"0",y:"240",rx:"0",ry:"0",width:"100%",height:"16"}),x.jsx("rect",{x:"0",y:"266",rx:"0",ry:"0",width:"100%",height:"16"}),x.jsx("rect",{x:"0",y:"292",rx:"0",ry:"0",width:"100%",height:"16"}),x.jsx("rect",{x:"0",y:"318",rx:"0",ry:"0",width:"100%",height:"40"}),x.jsx("rect",{x:"0",y:"368",rx:"0",ry:"0",width:"100%",height:"16"}),x.jsx("rect",{x:"0",y:"394",rx:"0",ry:"0",width:"100%",height:"16"}),x.jsx("rect",{x:"0",y:"420",rx:"0",ry:"0",width:"100%",height:"16"}),x.jsx("rect",{x:"0",y:"456",rx:"0",ry:"0",width:"100px",height:"16"}),x.jsx("rect",{x:"0",y:"480",rx:"0",ry:"0",width:"100%",height:"94"})]}),exports.ContentLoaderPromotionHover=()=>x.jsxs(Mv,{height:151,width:"100%",speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:[x.jsx("rect",{x:"0",y:"4",rx:"0",ry:"0",width:"135",height:"14"}),x.jsx("rect",{x:"150",y:"4",rx:"0",ry:"0",width:"140",height:"14"}),x.jsx("rect",{x:"0",y:"32",rx:"0",ry:"0",width:"135",height:"14"}),x.jsx("rect",{x:"150",y:"32",rx:"0",ry:"0",width:"140",height:"14"}),x.jsx("rect",{x:"0",y:"60",rx:"0",ry:"0",width:"135",height:"14"}),x.jsx("rect",{x:"150",y:"60",rx:"0",ry:"0",width:"140",height:"14"}),x.jsx("rect",{x:"0",y:"88",rx:"0",ry:"0",width:"135",height:"14"}),x.jsx("rect",{x:"150",y:"88",rx:"0",ry:"0",width:"140",height:"14"}),x.jsx("rect",{x:"0",y:"116",rx:"0",ry:"0",width:"135",height:"14"}),x.jsx("rect",{x:"150",y:"116",rx:"0",ry:"0",width:"140",height:"14"}),x.jsx("rect",{x:"150",y:"132",rx:"0",ry:"0",width:"140",height:"14"})]}),exports.ContentLoaderReportingDashboard=()=>x.jsx(Wv,{children:x.jsxs(Mv,{speed:1,width:Vv,height:500,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[x.jsx("rect",{x:"10",y:"10",rx:"2",ry:"2",width:"210",height:"25"}),x.jsx("rect",{x:"10",y:"60",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"10",y:"95",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"10",y:"130",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"10",y:"165",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"10",y:"200",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"10",y:"235",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"10",y:"270",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"10",y:"305",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"280",y:"10",rx:"2",ry:"2",width:"210",height:"25"}),x.jsx("rect",{x:"280",y:"60",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"280",y:"95",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"280",y:"130",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"280",y:"165",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"280",y:"200",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"280",y:"235",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"280",y:"270",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"280",y:"305",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"550",y:"10",rx:"2",ry:"2",width:"210",height:"25"}),x.jsx("rect",{x:"550",y:"60",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"550",y:"95",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"550",y:"130",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"550",y:"165",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"550",y:"200",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"550",y:"235",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"550",y:"270",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"550",y:"305",rx:"2",ry:"2",width:"210",height:"20"})]})}),exports.ContentLoaderSetting=()=>x.jsxs(Mv,{speed:1,width:"100%",height:550,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:[x.jsx("rect",{x:"0",y:"0",rx:"2",ry:"2",width:"125",height:"15"}),x.jsx("rect",{x:"0",y:"25",rx:"2",ry:"2",width:"620",height:"25"}),x.jsx("rect",{x:"0",y:"60",rx:"2",ry:"2",width:"450",height:"25"}),x.jsx("rect",{x:"0",y:"110",rx:"2",ry:"2",width:"125",height:"15"}),x.jsx("rect",{x:"0",y:"135",rx:"2",ry:"2",width:"620",height:"25"}),x.jsx("rect",{x:"0",y:"170",rx:"2",ry:"2",width:"450",height:"25"}),x.jsx("rect",{x:"0",y:"220",rx:"2",ry:"2",width:"125",height:"15"}),x.jsx("rect",{x:"0",y:"245",rx:"2",ry:"2",width:"620",height:"25"}),x.jsx("rect",{x:"0",y:"280",rx:"2",ry:"2",width:"450",height:"25"}),x.jsx("rect",{x:"0",y:"330",rx:"2",ry:"2",width:"125",height:"15"}),x.jsx("rect",{x:"0",y:"355",rx:"2",ry:"2",width:"450",height:"80"}),x.jsx("rect",{x:"0",y:"460",rx:"2",ry:"2",width:"125",height:"15"}),x.jsx("rect",{x:"0",y:"485",rx:"2",ry:"2",width:"450",height:"80"}),x.jsx("rect",{x:"0",y:"585",rx:"2",ry:"2",width:"125",height:"15"}),x.jsx("rect",{x:"0",y:"610",rx:"2",ry:"2",width:"170",height:"25"}),x.jsx("rect",{x:"180",y:"610",rx:"2",ry:"2",width:"170",height:"25"}),x.jsx("rect",{x:"0",y:"645",rx:"2",ry:"2",width:"170",height:"25"}),x.jsx("rect",{x:"180",y:"645",rx:"2",ry:"2",width:"170",height:"25"}),x.jsx("rect",{x:"0",y:"695",rx:"2",ry:"2",width:"125",height:"15"}),x.jsx("rect",{x:"0",y:"720",rx:"2",ry:"2",width:"450",height:"25"}),x.jsx("rect",{x:"0",y:"755",rx:"2",ry:"2",width:"400",height:"25"})]}),exports.ContentLoaderTableList=()=>{const e=Hv-96,t=Math.floor((Vv-110)/120),n=Math.floor((e-20)/50);return x.jsx(Pv,{children:x.jsx(Mv,{speed:1,width:Vv,height:e,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:Array.apply(0,Array(n)).map(((e,n)=>{const r=n+50*(n+1)-30;return Array.apply(0,Array(t)).map(((e,t)=>{const i=t+120*(t+1)-65;return x.jsx("rect",{x:i,y:r,rx:"2",ry:"2",width:100,height:0===n?16:30},t)}))}))})})},exports.CreateContainer=tb,exports.CreateHeaderWrapper=nb,exports.CreateToolWrapper=rb,exports.DateComponent=Tb,exports.DateTimeComponent=({dateTimeData:e})=>{const t=Tx(e,"YYYY-MM-DD HH:mm:ss ZZ").format("D MMM YYYY,"),n=Tx(e,"YYYY-MM-DD HH:mm:ss ZZ").format("hh:mm A");return x.jsx(Nb,{children:e?x.jsxs(x.Fragment,{children:[x.jsx("span",{children:t}),x.jsx("span",{children:n})]}):"-"})},exports.DateWrapper=Ny,exports.DetailItem=Qy,exports.DetailItemAction=Zy,exports.DetailItemInfo=qy,exports.DetailItemTitle=Xy,exports.DetailItemWrapper=Uy,exports.DetailList=zy,exports.DetailPanelWrapper=Jy,exports.DetailWrapper=Vy,exports.DropDownComponent=t=>{var{children:n,title:r,subTitle:i,$externalWidth:a,$externalMinWidth:o,$internalWidth:s,$area:c,$openPosition:d,$placement:u,$top:p,onClick:h,$alias:g,type:f,portalId:m,$bottom:y}=t,b=l(t,["children","title","subTitle","$externalWidth","$externalMinWidth","$internalWidth","$area","$openPosition","$placement","$top","onClick","$alias","type","portalId","$bottom"]);const v=e.useRef(null),w=()=>{const e=document.getElementsByClassName("_refContainer is-shown")[0];if(e){const t=e.getBoundingClientRect(),n=document.querySelector(`#${m} ._refDropdownPortal`);if(n){const e=n.querySelector("._refDropdownWrapper"),r=t.left+t.width-e.getBoundingClientRect().width;n.style.left=(r>0?r:t.left)+"px",n.style.top=t.top+parseInt(p||"0")-32+"px"}}},C=()=>{const e=document.getElementsByClassName("_refContainer is-shown"),t=document.getElementsByTagName("BODY")[0];if(e.length){t.classList.remove("is-immuned");for(let t=0;t<e.length;t++){e[t].querySelector("._refDropdownOverlay").style.display="none",e[t].classList.remove("is-shown")}}const n=document.querySelector("._refScrollContainer");n&&n.removeEventListener("scroll",w,!0),setTimeout((()=>{if(m){const e=document.getElementsByClassName("_refDropdownPortal is-shown");if(e.length)for(let t=0;t<e.length;t++)e[t].style.left="0",e[t].style.top="0",e[t].classList.remove("is-shown")}}),10)},k=e=>{const t=v.current;if(t){const n=e.target.closest(`.${t.classList[0]}`);if(!n)return;const r=n.closest("._refContainer"),i=document.getElementsByTagName("BODY")[0];if(r){const t=r.querySelector("._refDropdownOverlay"),n=r.classList.contains("is-shown"),a=r.getBoundingClientRect();n?(t.style.display="none",i.classList.remove("is-immuned"),r.classList.remove("is-shown"),setTimeout((()=>{if(m){const e=document.querySelector(`#${m} ._refDropdownPortal`),t=document.querySelector("._refScrollContainer"),n=e.querySelector("._refDropdownWrapper");e&&(e.classList.remove("is-shown"),e.style.left="0px",e.style.top="0px",n&&t&&t.removeEventListener("scroll",w,!0))}}),10)):(C(),t.style.display="block",i.classList.add("is-immuned"),r.classList.add("is-shown"),setTimeout((()=>{if(m){const e=document.querySelector(`#${m} ._refDropdownPortal`),t=document.querySelector("._refScrollContainer"),n=e.querySelector("._refDropdownWrapper");e&&(a&&(n?setTimeout((()=>{n.style.right="auto";const r=a.left+a.width-n.getBoundingClientRect().width;e.style.left=(r>0?r:a.left)+"px",e.style.top=a.top+parseInt(p||"0")-32+"px",e.style.zIndex="8",t&&t.addEventListener("scroll",w,!0)}),10):(e.style.left=a.left+(parseInt(s||"0")+a.width)/2+"px",e.style.top=a.top+a.height+"px")),e.classList.add("is-shown"))}}),10),h&&h(e))}}};e.useEffect((()=>(setTimeout((()=>{const e=document.querySelectorAll("._refDropdownPortal._refHover");for(let t of e)t&&t.addEventListener("mouseenter",(e=>{const t=e.target;t.classList.add("is-shown"),t.classList.add("unhiddenable")})),t&&t.addEventListener("mouseleave",(e=>{const t=e.target;t.classList.remove("is-shown"),t.classList.remove("unhiddenable"),t.style.left="0",t.style.top="0"}))}),1),()=>{const e=document.querySelectorAll("._refDropdownPortal._refHover");for(let t of e)t&&t.removeEventListener("mouseenter",(e=>{const t=e.target;t.classList.add("is-shown"),t.classList.add("unhiddenable")}),!0),t&&t.removeEventListener("mouseleave",(e=>{const t=e.target;t.classList.remove("is-shown"),t.classList.remove("unhiddenable"),t.style.left="0",t.style.top="0"}),!0)})),[m]);const I=i?x.jsx(Le,{children:i}):null,A=r?x.jsxs(Oe,{children:[r," ",I]}):null,S=n.filter((t=>e.isValidElement(t)?"control"===t.props["aria-label"]:null)),j=S&&e.isValidElement(S[0])?"hover"===f?x.jsxs(Te,{children:[x.jsx(Me,Object.assign({className:"_refDropdownControl"},m&&{onMouseEnter:e=>{const t=v.current;if(t){const n=e.target.closest(`.${t.classList[0]}`);if(!n)return;const r=document.querySelectorAll("._refDropdownPortal");for(const e of r)e.classList.remove("is-shown"),e.style.left="0",e.style.top="0";const i=n.closest("._refContainer");if(i){const e=i.getBoundingClientRect(),t=document.querySelector(`#${m} ._refDropdownPortal`);if(t){if(e){t.style.left=e.left+(parseInt(s||"0")+e.width)/2+"px";let n=e.top+e.height;const r=t.querySelector("._refDropdownWrapper");r&&(r.style.display="block",n+r.clientHeight>=document.body.clientHeight&&(n=e.top-r.clientHeight-10)),t.style.top=n+"px"}t.classList.add("is-shown")}}}},onMouseLeave:e=>{const t=v.current;if(t){if(!e.target.closest(`.${t.classList[0]}`))return;setTimeout((()=>{const e=document.querySelector(`#${m} ._refDropdownPortal`);e&&!e.classList.contains("unhiddenable")&&(e.classList.remove("is-shown"),e.style.left="0",e.style.top="0")}),150)}}},{children:S[0].props.children})),x.jsx(Me,{className:"_refDropdownControlMobile",ref:v,onClick:k,children:S[0].props.children})]}):x.jsx(Me,{ref:v,onClick:k,children:S[0].props.children}):null,D=n.filter((t=>e.isValidElement(t)?"body"===t.props["aria-label"]:null)),E=D&&e.isValidElement(D[0])?x.jsx(_e,{$area:c,children:D[0].props.children}):null,M=n.filter((t=>e.isValidElement(t)?"action"===t.props["aria-label"]:null)),T=M&&e.isValidElement(M[0])?x.jsx(Pe,{$position:M[0].props["data-position"],className:M[0].props.className,children:M[0].props.children}):null,N=x.jsxs(De,Object.assign({className:"_refDropdownWrapper"},s&&{$internalWidth:s},p&&{$top:p},d&&{$openPosition:d},u&&{$placement:u},y&&{$bottom:y},{children:[A,E,T]}));return x.jsxs(Ne,Object.assign({className:"_refContainer "+(f?`_refContainer${f}`:"")},a&&{$externalWidth:a},o&&{$externalMinWidth:o},c&&{$area:c},p&&{$top:p},g&&{$alias:g},d&&{$openPosition:d},u&&{$placement:u},y&&{$bottom:y},b,{children:[j,x.jsx(Ee,{className:"_refDropdownOverlay",onClick:()=>{C()}}),m?x.jsx(je,{wrapperId:m,children:x.jsx(Be,{className:"_refDropdownPortal "+("hover"===f?"_refHover":""),children:N})}):N]}))},exports.DropdownAction=Py,exports.DropdownItem=_y,exports.DropdownList=Ly,exports.DropdownTitle=Oy,exports.ErrorComponent=ap,exports.FigureWraper=Qx,exports.FilterButton=Gy,exports.FilterContainer=Iy,exports.FilterItem=Ry,exports.FilterList=By,exports.FilterListTitle=Fy,exports.FilterWrapper=Dy,exports.FoContainer=Wx,exports.FormContainer=Sv,exports.HeaderContainer=Lx,exports.IconComponent=Se,exports.IconDot=Wy,exports.ImageComponent=ha,exports.InfoGroup=Vx,exports.InitialContainer=Zx,exports.InputComponent=se,exports.InputGroup=$x,exports.InputOTPComponent=e=>{var{otpLength:t=6,value:n,onChange:r}=e,i=l(e,["otpLength","value","onChange"]);const a=e=>{var i;const a=e.target,o=a.value,s=a.dataset.index?parseInt(a.dataset.index):0;if(""===o||/^\d$/.test(o)){let e=n.split("");e[s]=o;const a=e.join("");r(a),""!==o&&s<t-1&&(null===(i=document.getElementById(`otp-inputbox-${s+1}`))||void 0===i||i.focus())}},o=e=>{var t;const r=e.target,i=r.dataset.index?parseInt(r.dataset.index):0;"Backspace"===e.key&&!n[i]&&i>0&&(null===(t=document.getElementById("otp-inputbox-"+(i-1)))||void 0===t||t.focus())};let s=[];for(let e=0;e<t;e++)s.push(x.jsx(oe,Object.assign({"data-index":e,id:`otp-inputbox-${e}`,name:`otp-input-${e}`,autoComplete:"one-time-code",inputMode:"numeric",required:!0,value:n[e]||"",onChange:e=>a(e),onKeyDown:e=>o(e),onFocus:e=>{e.target.addEventListener("wheel",(function(e){e.preventDefault()}),{passive:!1}),e.target.select()}},i),e));return x.jsx("div",{onPaste:e=>{e.preventDefault();const n=e.clipboardData.getData("Text").replace(/\D/g,"").slice(0,t);r(n)},children:s})},exports.InputRefComponent=le,exports.IsNumeric=z,exports.ItemPriceLabel=sy,exports.ItemTable=My,exports.LabelComponent=e=>{var{children:t,$mode:n,$position:r}=e,i=l(e,["children","$mode","$position"]);return x.jsx(ve,Object.assign({$mode:n,$position:r},i,{children:t}))},exports.LeftPanelContainer=Kx,exports.LinkComponent=P,exports.LinkContainer=ky,exports.ListAddItemContainer=lb,exports.ListComponent=e=>{var{children:t,$mode:n,$selected:r,$type:i}=e,a=l(e,["children","$mode","$selected","$type"]);return x.jsx(Iv,Object.assign({$mode:n,$selected:r,$type:i},a,{children:t}))},exports.ListContainer=Rx,exports.ListTable=Ty,exports.ListTableContainer=Ey,exports.LoadingComponent=ke,exports.MasterTableActionWrapper=qx,exports.MasterTableComponent=t=>{const{evOpenPopup:n,headerColumns:r,data:i,setData:a,resultPopup:o,setResultPopup:s,type:l,evCreateMessageQuestion:c,evCreateMessage:d,autoCopy:u,setAutoCopy:p,isRemovable:h=!0,isForceUpdate:g,setForceUpdate:f}=t,[m,y]=e.useState(!1),[b,w]=e.useState();e.useEffect((()=>{const e=()=>{const e=document.querySelector("._refResizeContainer");if(e){const t=document.querySelector("._refMasterTableViewport"),n=e.offsetHeight,r=document.querySelector("._refHeaderContainer"),i=r?r.offsetHeight:0;t&&(t.style.height=`calc(100vh - ${n+i+12}px)`)}};return e(),window.addEventListener("resize",e,!0),()=>{window.removeEventListener("resize",e,!0)}}),[]);const C=W(l||"");e.useEffect((()=>{const e=document.querySelector("#master-clone"),t=e?e.innerHTML:"";if((null==i?void 0:i.length)&&!t){const t=document.querySelector("._refMasterTableViewport"),n=document.querySelector("._refMasterTableHeaderClone");let r=0,i=0,a=!1;t&&t.addEventListener("scroll",(e=>{const o=t.offsetWidth-t.clientWidth,s=t.scrollLeft;i!==o&&(n.style.width=parseInt(n.style.width)+o+"px"),a||(window.requestAnimationFrame((()=>{r!==s&&(n.style.left="-"+s+"px"),a=!1,r=s})),a=!0),i=o}),{passive:!0}),e.innerHTML="true"}}),[i]);const k=55,I=h?55:0;let A=0,S=0;for(const e of r.filter((e=>!(null==e?void 0:e.isHidden))))"colGroup"===e.type&&(S+=e.width),A+=e.width;A+=k+I+1,S+=k;const j=(e,t,n,r)=>{const o="category"===(null==e?void 0:e.condition)?"Array":e.typeData||"String",s=J(o,t),c="category"===(null==e?void 0:e.condition)?K(e,s,(null==e?void 0:e.condition[0].toUpperCase())+(null==e?void 0:e.condition.substring(1))):K(e,s);if(n>=0){let t=[...i],o=t[n];if(r&&r>=0)if("putaway-inbound"===l){let t=o.locations[r];const n=e.key.replace("locations-","");t[n]=s,c.approved?delete t[n+"_error"]:t[n+"_error"]=c.errors[0],o.locations.splice(r,1,t)}else{let t=o.variants[r];const n=e.key.replace("variants-",""),i=o.variants.length;if("options-option"===n||"options-type"===n){const a=-1!==e.name.indexOf("1")?0:1,l="options-option"===n?"option":"type";if("type"===l){let e=[];for(let t=0;t<i;t++){let n=o.variants[t];if(n.options[a][l]=s,`${l}_error`in n.options[a]&&delete n.options[a][`${l}_error`],n.options.length>1){const e=0===a?1:0;`${l}_error`in n.options[e]&&delete n.options[e][`${l}_error`],s.toLowerCase()===n.options[e].type.toLowerCase()&&(n.options[a][`${l}_error`]="Variant type is duplicate")}e.push(n)}o.variants=e}else t.options[a][l]=s,c.approved?delete t.options[a][l+"_error"]:t.options[a][l+"_error"]=c.errors[0],o.variants.splice(r,1,t)}else t[n]=s,c.approved?delete t[n+"_error"]:t[n+"_error"]=c.errors[0],o.variants.splice(r,1,t)}else if("category"===(null==e?void 0:e.condition)){if(-1!==e.key.indexOf("listing")&&o.listing){const t=o.listing.findIndex((t=>t.accountId===e.value));if(t>=0){let n=[...o.listing],r=n[t];r[e.condition]=s,c.approved?delete r[e.condition+"_error"]:r[e.condition+"_error"]=c.errors[0],n.splice(t,1,r),o.listing=n}}}else o[e.key]=s,c.approved?delete o[e.key+"_error"]:o[e.key+"_error"]=c.errors[0];t.splice(n,1,o),a(t),e.bare&&c.approved&&f&&f(!0)}},D=e=>{const t=e.target,n=Z("confirm",`Are you sure you want to remove ${"create-paymentreceive"===l?"invoice":"product"}?`,"",(()=>{let e=[...i];const n=t=>{var n;if(!u)return!1;let r=[...u];for(const i of t){const t=Object.assign({},e[i]),a=t.category,o=r.reduce(((e,t,n)=>e.concat(t.category===a?n:[])),[]);if(o.length)for(const e of o)if(e>=0){let i=null===(n=r[e])||void 0===n?void 0:n.copy;if(i){const e=i.findIndex((e=>e.id===t.id));e>=0&&i.splice(e,1)}}}p&&p(r),b&&w(void 0)},r=e=>{const t=document.getElementById("listing-data");t&&!t.innerHTML&&(t.innerText=JSON.stringify(e))};if("bulk"===(t.dataset.type||"")){let t=document.querySelectorAll("[name='checkbox-list']:checked"),i=[];for(let e=0;e<t.length;e++){const n=t[e],r=n.dataset.key?parseInt(n.dataset.key):0;i.push(r)}const o=e.filter(((e,t)=>-1===i.indexOf(t)));"listing"===C?(n(i),a(o,(e=>r(e)))):a(o),_()}else{const i=t.closest(".cell-trash"),o=i.dataset.idx?parseInt(i.dataset.idx):null,s=i.dataset.row?parseInt(i.dataset.row):null;if(null!==o)if("listing"===C)n([o]),e.splice(o,1),a(e,(e=>r(e)));else if("master"===C){let t=Object.assign({},e[o]);if(null==t?void 0:t.variants)if(1===t.variants.length)e.splice(o,1);else{let n=[...t.variants];s&&n.splice(s,1),t.variants=n,e.splice(o,1,t)}else e.splice(o,1);a(e)}else if("putaway-inbound"===l){let t=Object.assign({},e[o]);if(null==t?void 0:t.locations)if(1===t.locations.length)e.splice(o,1);else{let n=[...t.locations];s&&n.splice(s,1),t.locations=n,e.splice(o,1,t)}else e.splice(o,1);a(e)}else e.splice(o,1),a(e)}}));c&&c(n)},E=e=>{const t=document.querySelectorAll("[name='checkbox-list']:checked").length,n=document.querySelector("._refMasterTableBulkWrapper"),r=n.getElementsByTagName("span");r&&(r[0].innerHTML=`${t} selected`),t>0?n.classList.add("is-active"):n.classList.remove("is-active")},M=e=>{const t=e.target.checked,n=document.querySelectorAll("[name='checkbox-list']");if(null==n?void 0:n.length)for(let e=0;e<n.length;e++){const r=n[e],i=r.closest(".cell-checkbox"),a=r.closest("._refMasterTableBodyContent");t?(i&&i.classList.add("isChecked"),a&&a.classList.add("is-highlighted")):(i&&i.classList.remove("isChecked"),a&&a.classList.remove("is-highlighted")),r.checked=t}else{const t=X("warning","No Products Selected");d&&d(t),e.target.checked=!1,y(!1)}E()},T=e=>{const t=e.target,n=t.checked,r=document.querySelectorAll("[name='checkbox-selectAll']"),i=t.closest(".cell-checkbox"),a=t.closest("._refMasterTableBodyContent");!n&&(null==r?void 0:r.length)&&r.forEach((e=>e.checked&&(e.checked=!1))),n?(i&&i.classList.add("isChecked"),a&&a.classList.add("is-highlighted")):(i&&i.classList.remove("isChecked"),a&&a.classList.remove("is-highlighted")),E()},N="stock"===C?66:82,O=(e,t,r,i,a,c,d)=>{const u=c||N,p=e=>{const t=document.getElementById("cur-key");document.querySelectorAll(".cell-editing").forEach((e=>e.classList.remove("cell-editing"))),t&&(t.innerHTML=""),e&&e()};let h;switch(t.fieldType){case"image":h=x.jsx(mv,{head:t,value:r,height:u,evOpenPopup:n,idx:e,variantIdx:a,evChange:j,resultPopup:o,setResultPopup:s,error:i,evCloseEditor:p});break;case"textarea":h=x.jsx(Cv,{head:t,value:r,height:u,idx:e,variantIdx:a});break;case"select":h=t.bare?x.jsx(bv,{head:t,value:r,idx:e,variantIdx:a,evChange:j,error:i,content:d,isForceUpdate:g,setForceUpdate:f}):x.jsx(yv,{head:t,value:r,height:u,idx:e,variantIdx:a,evChange:j,error:i,evCloseEditor:p});break;case"tag":h=x.jsx(wv,{head:t,value:r,height:u,evOpenPopup:n,idx:e,variantIdx:a,evChange:j,resultPopup:o,setResultPopup:s,evCloseEditor:p});break;case"label":h=x.jsx(xv,{head:t,value:r,height:u,idx:e,evOpenPopup:n,content:d,type:l,variantIdx:a});break;case"switch":h=x.jsx(vv,{head:t,value:r,idx:e,variantIdx:a,evChange:j,evCloseEditor:p});break;case"date":h=t.bare?x.jsx(hv,{head:t,value:r,idx:e,variantIdx:a,evChange:j,error:i,isForceUpdate:g,setForceUpdate:f}):x.jsx(pv,{head:t,value:r,height:u,idx:e,variantIdx:a,evChange:j,error:i,evCloseEditor:p});break;default:h=t.bare?x.jsx(fv,{head:t,content:d,value:r,height:u,idx:e,variantIdx:a,evChange:j,error:i,type:l,isForceUpdate:g,setForceUpdate:f}):x.jsx(gv,{head:t,value:r,height:u,idx:e,variantIdx:a,evChange:j,error:i,evCloseEditor:p,content:d})}return h},L=e=>{const t=e.target.dataset.key||"",n=r.findIndex((e=>e.key===t));if(n>=0){const e=r[n],o=document.querySelector("[name='checkbox-selectAll']"),s=document.querySelectorAll("[name='checkbox-list']:checked"),l=!o.checked&&s.length?`Clear to selected products (${s.length})`:"Clear all products",d=Z("confirm","Are you sure you want to clear this column?","By clearing data, you can't undo this action.",(()=>{const n="validations"in e?K(e,""):{approved:!0},r=t.split("-"),l=r[0],c=r[1],d="Boolean"!==e.typeData&&"";let u=[...i];if("stock"===C){const e=u.map((e=>{let r=e;return t&&(r[t]=d,n.approved?delete r[t+"_error"]:r[t+"_error"]=n.errors[0]),r}));a(e)}else if(!o.checked&&s.length){for(let e=0;e<s.length;e++){const t=s[e],r=t.dataset.key?parseInt(t.dataset.key):null;if(null!==r){let e=u[r];if(c){const t=e[l].map((e=>{const t=e;return t[c]=d,n.approved?delete t[c+"_error"]:t[c+"_error"]=n.errors[0],t}));e[l]=t}else e[l]=d,n.approved?delete e[l+"_error"]:e[l+"_error"]=n.errors[0];u.splice(r,1,e)}}a(u)}else{const e=u.map((e=>{let t=e;if(c){const e=t[l].map((e=>{const t=e;return t[c]=d,n.approved?delete t[c+"_error"]:t[c+"_error"]=n.errors[0],t}));t[l]=e}else t[l]=d,n.approved?delete t[l+"_error"]:t[l+"_error"]=n.errors[0];return t}));a(e)}}),l);c&&c(d)}},_=e.useCallback((()=>{const e=document.querySelectorAll("[name='checkbox-selectAll']");setTimeout((()=>{e.forEach((e=>e.checked&&(e.checked=!1)))}),10);const t=document.querySelectorAll("[name='checkbox-list']:checked");if(null==t?void 0:t.length)for(let e=0;e<t.length;e++){const n=t[e],r=n.closest(".cell-checkbox"),i=n.closest("._refMasterTableBodyContent");r&&r.classList.remove("isChecked"),i&&i.classList.remove("is-highlighted"),n.checked=!1}m&&y(!1)}),[m]);e.useEffect((()=>{if(o&&"edit"in o){const e=o.edit.key,t=o.edit.value,n=e.split("-"),r=n[0],l=n[1],c=document.querySelector("[name='checkbox-selectAll']"),d=document.querySelectorAll("[name='checkbox-list']:checked");let u=[...i];if(!c.checked&&d.length){for(let e=0;e<d.length;e++){const n=d[e],i=n.dataset.key?parseInt(n.dataset.key):null;if(null!==i){let e=u[i];if(l){const n=e[r].map((e=>{const n=e;return n[l]=t,delete n[l+"_error"],n}));e[r]=n}else e[r]="",delete e[r+"_error"];u.splice(i,1,e)}}a(u)}else{const e=u.map((e=>{let n=e;if(l){const e=n[r].map((e=>{const n=e;return n[l]=t,delete n[l+"_error"],n}));n[r]=e}else n[r]="",delete n[r+"_error"];return n}));a(e)}s&&s(null)}}),[o,s,i,a,C,l,r]);const B=r.filter((e=>e.isMassEditable||e.isMassClearable)).length>0,R=(e,t,r,a,o,s)=>(null==e?void 0:e.length)?x.jsxs(Qb,{className:""+(s?"_refMasterTableHeaderClone":"_refMasterTableHeader"),style:{width:s&&o||"100%"},children:[x.jsxs(Ub,{children:[x.jsx("div",{className:"headerCell headerCell-Checkbox",style:{width:t},children:h?x.jsx(he,{onClick:M,name:"checkbox-selectAll",id:""+(s?"checkbox-selectAll-clone":"checkbox-selectAll")}):null},0),e.filter((e=>!(null==e?void 0:e.isHidden))).map(((e,t)=>{var n;return x.jsxs("div",{className:"headerCell "+(e.icon||e.initial?"headerCell-img":""),"data-key":e.key,style:{width:e.width},children:[e.icon?x.jsx(ha,{width:"24px",src:e.icon,alt:e.name}):e.initial?x.jsx(Zx,{className:"initial-wrapper",style:{width:"24px",height:"24px",backgroundColor:(null==e?void 0:e.color)||"#000000",fontSize:"10px"},children:e.initial}):null,x.jsxs("header",{className:"multi-elipsis",title:e.name,children:[e.name,(null===(n=null==e?void 0:e.validations)||void 0===n?void 0:n.required)&&x.jsx(v,{$color:"red",style:{display:"inline",lineHeight:"normal"},children:"*"}),(null==e?void 0:e.tip)&&x.jsx(Se,{$name:"question",$width:"12px","data-tip":e.tip,"data-place":"top","data-multiline":!0})]})]},t+1)})),h?x.jsx("div",{className:"headerCell headerCell-trash",style:{width:r}},e.length+("picklist"===C?2:1)):null]}),B&&(null==i?void 0:i.length)?x.jsxs(qx,{children:[x.jsx("div",{className:"actionCell",style:{width:t}}),e.filter((e=>!(null==e?void 0:e.isHidden))).map(((e,t)=>x.jsx("div",{className:"actionCell",style:{width:e.width},children:x.jsxs(ov,{children:[e.isMassEditable&&x.jsx(P,{mode:"clear",title:"Bulk Edit","data-popup":"table-mass-edit","data-detail":JSON.stringify({title:"Bulk Edit",head:e}),onClick:n,children:"Edit"}),e.isMassClearable&&x.jsx(P,{mode:"clear",title:"Bulk Clear","data-key":e.key,onClick:L,children:"Clear"})]})},t+1))),h?x.jsx("div",{className:"actionCell",style:{width:r}},e.length+("picklist"===C?2:1)):null]}):null]}):null;return console.log(i,"dataTable"),x.jsxs(x.Fragment,{children:[R(r,k,I,0,A,!0),x.jsxs(zb,{children:[x.jsx(Xb,{children:x.jsx(Zb,{className:"_refMasterTableViewport",$mode:l||"create-master",children:x.jsxs(qb,{className:"_refMasterTableCanvas",style:{width:A},children:[R(r,k,I),x.jsx(Jb,{className:"_refMasterTableBody",children:(null==i?void 0:i.length)?"putaway-inbound"===l?x.jsx(dv,{data:i,heightContent:N,firstHeaderColumnsWidth:k,evCheckbox:T,headerColumns:r,switchEditor:O,totalColGroupWidth:S,lastHeaderColumnsWidth:I,evRemove:D,type:l,isRemovable:h}):x.jsx(uv,{data:i,firstHeaderColumnsWidth:k,evCheckbox:T,headerColumns:r,switchEditor:O,lastHeaderColumnsWidth:I,evRemove:D,type:l,isRemovable:h}):null})]})})}),x.jsxs("section",{className:"_refContainer",children:[x.jsxs(Xx,{className:"_refMasterTableBulkWrapper",children:[x.jsx(Se,{className:"_refBulkCloseButton",$name:"cross",$width:"16px",onClick:e=>{e.persist(),_()}}),x.jsx("span",{children:"0 Selected"}),x.jsxs(xe,{$mode:"red",$shadow:!0,"data-type":"bulk",onClick:D,children:["Remove ","create-paymentreceive"===l?"Invoice":"Product"]})]}),x.jsx("div",{className:"_refDropdownOverlay",onClick:()=>{document.querySelector("._refDropdownOverlay").style.display="none";document.getElementsByTagName("BODY")[0].classList.remove("is-immuned")}})]})]}),x.jsx("div",{id:"master-clone",className:"hidden"})]})},exports.MenuList=e=>x.jsx(Mc.MenuList,Object.assign({},e,{children:e.children})),exports.MessageComponent=({timer:t=500,$type:n,message:r,callback:i})=>{const[a,o]=Ge.useStateWithCallbackLazy(!1),[s,l]=Ge.useStateWithCallbackLazy(!1),[c,d]=Ge.useStateWithCallbackLazy(!1),u=e.useCallback((()=>{d(!c,(()=>{document.getElementsByTagName("BODY")[0].classList.remove("is-immuned"),i&&i()}))}),[i,d,c]),p=e.useCallback((()=>{u()}),[u]);return e.useEffect((()=>{const e=t||2e3,n=document.querySelector("._refMessageOverlay");return a||c?a&&c&&(o&&o(!a,(()=>{})),l&&l(!s,(()=>{})),n&&n.removeEventListener("click",p)):o(!a,(()=>{n&&n.addEventListener("click",p),setTimeout((()=>{l(!s,(()=>{setTimeout((()=>!s&&u()),e)}))}),1)})),()=>{n&&n.removeEventListener("click",p)}}),[a,s,t,u,o,l,p,c]),x.jsxs(Ve,{$isOpen:a,children:[x.jsx(He,{className:"_refMessageOverlay"}),x.jsx(ze,{children:x.jsx($e,{$isOpen:s,children:x.jsxs(Xe,{$type:n,children:[x.jsx("i",{}),r,x.jsx(xe,{$mode:"small-white-round-close",onClick:u})]})})})]})},exports.MessageQuestionComponent=({$type:t,title:n,subtitle:r,callback:i,buttonSubmit:a,cancelCallback:o})=>{const[s,l]=Ge.useStateWithCallbackLazy(!1),[c,d]=Ge.useStateWithCallbackLazy(!1),[u,p]=Ge.useStateWithCallbackLazy(!1),h=e.useCallback((()=>{p(!u,(()=>{o&&o();document.getElementsByTagName("BODY")[0].classList.remove("is-immuned")}))}),[o,u,p]),g=e.useCallback((()=>{h()}),[h]);return e.useEffect((()=>{const e=document.querySelector("._refQuestionMessageOverlay");s||u?s&&u&&(l(!s,(()=>{})),d(!c,(()=>{})),e&&e.removeEventListener("click",g)):l(!s,(()=>{setTimeout((()=>{d(!c,(()=>{})),e&&e.addEventListener("click",g)}),1)}))}),[s,c,l,d,g,u]),x.jsxs(Ve,{$isOpen:s,children:[x.jsx(He,{className:"_refQuestionMessageOverlay",$type:t}),x.jsx(ze,{$type:t,children:x.jsx($e,{$isOpen:c,children:x.jsxs(Xe,{$type:t,children:[x.jsx("i",{}),x.jsxs("div",{children:[x.jsx(v,{$elipsis:!1,style:{fontWeight:600,fontSize:"15px"},children:n}),x.jsx(v,{$color:"grey",$elipsis:!1,children:Ji(r)}),x.jsxs("aside",{children:[x.jsx(xe,{$mode:"white",$size:"small",onClick:h,children:"Cancel"}),x.jsx(xe,{$mode:"red",$size:"small",onClick:()=>{p(!u,(()=>{document.getElementsByTagName("BODY")[0].classList.remove("is-immuned"),i&&i()}))},children:a||"Confirm"})]})]})]})})})]})},exports.MultiPanelContainer=Jx,exports.MuteLabel=Hx,exports.NameLabel=cy,exports.NavChildItem=xb,exports.NavList=gb,exports.NavMainItem=fb,exports.NavMainItemWrapper=mb,exports.NavMobileOverlay=hb,exports.PageButton=by,exports.PageDot=wy,exports.PageLabel=vy,exports.PageWrapper=yy,exports.PaginationContainer=xy,exports.PanelBody=Ux,exports.PanelContainer=Bx,exports.PanelWrapper=Px,exports.PopupAddProductContainer=db,exports.PopupBoxWrapper=Ky,exports.PopupCard=ub,exports.PopupComponent=t=>{var{children:n,body:r,mode:i,height:a,width:o,isOpen:s,evTooglePopup:c}=t,d=l(t,["children","body","mode","height","width","isOpen","evTooglePopup"]);const[u,p]=Ge.useStateWithCallbackLazy(!1),h=e.useRef(null),g=e.useCallback((e=>{ca=setTimeout((()=>{p(e,(()=>{const e=h&&h.current?h.current:null;e&&(e.scrollTop=0)})),clearTimeout(ca)}),1)}),[p]),f=e.useRef({init:()=>{g(s)}});e.useEffect((()=>{const{init:e}=f.current;return e(),()=>{clearTimeout(ca)}}),[]),e.useEffect((()=>{g(s)}),[s,g]);let m=[...n];const y=(null==m?void 0:m.filter((t=>e.isValidElement(t)&&"head"===t.props["aria-label"])))||null,b=(null==m?void 0:m.filter((t=>e.isValidElement(t)&&"sub-head"===t.props["aria-label"])))||null,v=(null==m?void 0:m.filter((t=>e.isValidElement(t)&&"body"===t.props["aria-label"])))||null,w=(null==m?void 0:m.filter((t=>e.isValidElement(t)&&"foot"===t.props["aria-label"])))||null,C=(null==m?void 0:m.filter((t=>e.isValidElement(t)&&"left-foot"===t.props["aria-label"])))||null,k=b.length?x.jsx("aside",{children:b[0]&&e.isValidElement(b[0])?b[0].props.children:null}):null,I=y.length&&y[0]&&e.isValidElement(y[0])?y[0].props["data-qa-id"]:"";return x.jsxs(ea,{$isOpen:s,children:[x.jsx(ta,{}),x.jsx(na,Object.assign({ref:h},d["data-qa-id"]&&{"data-qa-id":d["data-qa-id"]},{children:"question"===i?x.jsx(ra,{$isOpen:u,children:x.jsxs(la,{$width:o,children:[x.jsx(Se,{$name:"warning",$width:"30px"}),x.jsxs(ia,{$mode:i,children:[y.length?x.jsx(aa,{children:y[0]&&e.isValidElement(y[0])?y[0].props.children:null}):null,k,w.length?x.jsx(sa,{children:w[0]&&e.isValidElement(w[0])?x.jsx("aside",{"data-type":w[0].props.type||"",children:w[0].props.children}):null}):null]})]})}):x.jsxs(x.Fragment,{children:[x.jsx(ia,{$width:o,$isOpen:u,$mode:i,children:y.length?x.jsxs(x.Fragment,{children:[x.jsx(xe,{$mode:"round-close",onClick:c}),x.jsx(aa,{"data-qa-id":I,children:y[0]&&e.isValidElement(y[0])&&y[0].props.children})]}):null}),x.jsxs(ra,{$width:o,$isOpen:u,$withHeader:!!y.length,children:[k,v.length?x.jsx(oa,{$mode:r,$width:o,$height:a,children:v[0]&&e.isValidElement(v[0])&&v[0].props.children}):null,w.length?x.jsxs(sa,{$isLeft:!!C.length,children:[x.jsx("aside",{children:C&&C.length&&C[0]&&e.isValidElement(C[0])?C[0].props.children:null}),w[0]&&e.isValidElement(w[0])?x.jsxs("aside",{"data-type":w[0].props.type||"",children:[i&&"info"===i?x.jsx(xe,{$mode:"white",$size:"small",onClick:c,children:"Close"}):x.jsx(xe,{$mode:"white",$size:"small",onClick:c,"data-qa-id":"popup-button-cancel",children:"Cancel"}),w[0].props.children]}):null]}):null]})]})}))]})},exports.PopupDownloadWrapper=eb,exports.PopupExportCardWrapper=pb,exports.RadioComponent=e=>{var{children:t,$mode:n,evChange:r}=e,i=l(e,["children","$mode","evChange"]);const{id:a}=i;return x.jsx(Ob,{children:x.jsxs("label",{htmlFor:a,children:[x.jsx(_b,Object.assign({type:"radio",id:a,$mode:n,onChange:e=>{r&&r(e)}},i)),x.jsx(Lb,Object.assign({$mode:n},i["data-qa-id"]&&{"data-qa-id":i["data-qa-id"]},{children:t}))]})})},exports.RightPanelContainer=ey,exports.SearchDropdownContainer=ib,exports.SearchFilterContainer=Ay,exports.SearchFormWrapper=ty,exports.SearchResultItem=sb,exports.SearchResultList=ob,exports.SearchResultWrapper=ab,exports.SearchWrapper=Sy,exports.SearchWrapperPopup=cb,exports.SelectComponent=rp,exports.SingleFormContainer=jv,exports.SortByWrapper=Yy,exports.SwitchComponent=Fb,exports.TableColumnGroup=oy,exports.TableHeadLabel=ny,exports.TableHeadWrapper=ry,exports.TableItemColumn=gy,exports.TableItemWrapper=fy,exports.TableLabel=ly,exports.TableRightGroup=ay,exports.TableRowGroup=iy,exports.TabsContainer=Fx,exports.TabsContent=Gx,exports.TabsHeader=dy,exports.TabsItem=uy,exports.TabsList=py,exports.TabsWrapper=hy,exports.TextAreaComponent=vp,exports.TextAreaRefComponent=wp,exports.TextComponent=v,exports.Title=_x,exports.TotalLabel=yb,exports.UploadComponent=e=>{var{children:t,mode:n}=e,r=l(e,["children","mode"]);const{id:i,width:a}=r;return"image"===n?x.jsxs(x.Fragment,{children:[t,x.jsx(up,Object.assign({},"data-idx"in r&&{"data-idx":r["data-idx"]},r["data-detail"]&&{"data-detail":r["data-detail"]},r))]}):x.jsxs(sp,{$width:a,children:[x.jsxs(lp,{htmlFor:i,children:[x.jsx(dp,{}),x.jsx(cp,{children:t})]}),x.jsx(up,Object.assign({},"data-idx"in r&&{"data-idx":r["data-idx"]},r["data-detail"]&&{"data-detail":r["data-detail"]},r))]})},exports.UploadDragDropComponent=t=>{var{children:n,id:r,name:i,evChange:a,evCreateMessage:o}=t,s=l(t,["children","id","name","evChange","evCreateMessage"]);const{accept:c}=s,[d,u]=e.useState(!1),p=e=>{e.preventDefault(),e.stopPropagation(),"dragenter"===e.type||"dragover"===e.type?u(!0):"dragleave"===e.type&&u(!1)};return x.jsxs(pp,{onDragEnter:p,className:d?"drag-active":"",children:[x.jsx(up,Object.assign({id:r,name:i,onChange:e=>{e.preventDefault();const t=e.target;t.files&&t.files[0]&&a&&a(t.files)}},s)),x.jsx(hp,{id:"label-file-dragdrop-upload",htmlFor:r,children:x.jsx(fp,{children:n?x.jsxs(xp,{children:[x.jsx(yp,{}),x.jsx("span",{children:n})]}):x.jsxs(mp,{children:["Drag & Drop file here to upload, or ",x.jsx("span",{children:"browse"}),"."]})})}),d&&x.jsx(gp,{onDragEnter:p,onDragLeave:p,onDragOver:p,onDrop:e=>{if(e.preventDefault(),e.stopPropagation(),u(!1),e.dataTransfer.files[0]){const t=c?c.split(",").map((e=>e.trim().replace(".",""))):null;for(let n=0;n<e.dataTransfer.files.length;n++){const r=e.dataTransfer.files[n].name.split(".").pop();if((null==t?void 0:t.length)&&r&&!t.includes(r)){const e=X("failed","File type is not allowed. Please check again");return o&&o(e),!1}}a&&a(e.dataTransfer.files)}}})]})},exports.abbreviateNumber=e=>{let t="";if(void 0!==e&&(t=e.toString(),e>=1e3)){const n=["","k","m","b","t"],r=Math.floor((""+e).length/3);let i;for(let t=2;t>=1;t--){i=parseFloat((0!==r?e/Math.pow(1e3,r):e).toPrecision(t));if((i+"").replace(/[^a-zA-Z 0-9]+/g,"").length<=2)break}t=i+n[r]}return t},exports.boxBase=S,exports.capitalize=e=>e?e[0].toUpperCase()+e.substring(1):"",exports.channelMap=e=>({2:"Shopify",3:"Lazada",5:"Blanja",6:"Matahari mall",7:"Magento 1",8:"Elevania",9:"Blibli","1o":"Magento 2",11:"Bukalapak",12:"Shopee",13:"Zalora Indonesia",15:"Tokopedia",16:"JD Indonesia",18:"Zilingo",19:"Woocommerce",21:"Manual SO",3532:"Aladin Mall",10017:"Grabmart",10030:"Tiktok"}[e.toString()]||""),exports.clearList=w,exports.colorCommonQuantity=V,exports.colorStatus=e=>{switch(e){case"Pending_payment":case"Pending_courier":case"pending payment":case"Pending Payment":case"pending courier":case"not started yet":case"Pending":case"Draft":case"Not_picked":case"Not Picked":case"Unpaid":case"Overdue":case"Write_off":case"Write Off":case"write off":case"Written Off":case"Failed Delivery":case"failed delivery":return"#FF585C";case"Open":case"open":case"In_picking":case"Partial_picked":case"in picking":case"In Picking":case"Incoming":case"not shipped":case"Not Shipped":case"Partial_paid":return"#F8813E";case"Picked":case"picked":case"Packed":case"Ready_to_ship":case"ready to ship":case"Ready to Ship":case"Ready_to_pickup":case"Shipped":case"shipped":case"Fulfilled":case"Delivered":case"delivered":case"Picked_up":case"Invoiced":case"Not_invoiced":case"Invoice_paid":case"Completed":case"completed":case"Paid":case"In Progress":case"Active":case"Confirmed":case"Adjusted":return"#21BA45";case"Cancelled":case"cancelled":case"Voided":return"#a9a9a9";case"Returned":case"return":case"Return":return"#ff585d";case"Closed":return"#2c913d";default:return"green"}},exports.colorStockAdjust=(e,t)=>e<t?"lightgreen":"red",exports.colorStockInboundQuantity=e=>["Inbounded","Incompleted","Putaway"].includes(e)?"lightgreen":"yellow",exports.colorStockInboundStatus=e=>{switch(e){case"inbounded":case"Inbounded":case"incompleted":case"Incompleted":case"Incomplete":case"putaway":case"Putaway":return"#21BA45";case"waiting-inbound":case"Waiting Inbound":case"partial-inbounded":case"Partial Inbounded":case"partial-putaway":case"Partial Putaway":return"#F8813E";default:return"#696969"}},exports.colorStockQuantity=(e,t)=>e===t?"lightgreen":"red",exports.colorStockStatus=e=>{switch(e){case"success":case"approved":case"putaway":case"adjusted":case"Adjusted":case"outbounded":case"Outbounded":return"#21BA45";case"waiting":case"waiting adjustment":case"Waiting Adjustment":case"waiting outbound":case"Waiting Outbound":return"#F8813E";default:return"#696969"}},exports.components=Mc,exports.configDateRange=$v,exports.currencyNumber=q,exports.dateRangeStatus=e=>({today:"Today",lastweek:"Last 7 days",lastsecondweek:"Last 14 days",lastmonth:"Last 30 days",lastquart:"Last 90 days",custom:"Date"}[e]),exports.debounce=H,exports.dropBase=j,exports.elipsis=k,exports.errorMessage=e=>"unique"===e?"already exists":"is required",exports.errorTitle=Y,exports.evCheckAllValidation=e=>{let t=!1;for(let n=0;n<e.length;n++){const r=e[n],i=Object.keys(r);for(let e of i){if(Array.isArray(r[e]))for(let n=0;n<r[e].length;n++){const i=r[e][n],a=Object.keys(i);for(let e of a){if(Array.isArray(i[e]))for(let n=0;n<i[e].length;n++){const r=i[e][n],a=Object.keys(r);for(let e of a)if(-1===e.indexOf("_error")||t||(t=!0),t)break;if(t)break}else if(-1===e.indexOf("_error")||t||(t=!0),t)break;if(t)break}if(t)break}else if(-1===e.indexOf("_error")||t||(t=!0),t)break;if(t)break}}return t},exports.evExecuteError=e=>{const t=X("failed","Validation Errors found, Please fix it!");e&&e(t);const n=document.querySelectorAll(".cell-error");n.length&&te(n[0])},exports.evGenerateValueMatch=(e,t)=>{let n;if(e&&Object.keys(e).length){const r=["lessEqual","greaterEqual","less","greater"].find((t=>t in e));if(t&&r){const i=e[r];i&&i in t&&(n=t[i])}}return n},exports.evHighlight=e=>{if(!(null==e?void 0:e.length))return;const t=10*Math.ceil(e.length/10)<=10?30:10*Math.ceil(e.length/10)>=200?200:10*Math.ceil(e.length/10);setTimeout((()=>{const t=document.querySelectorAll("._refMasterTableBodyContent.is-highlighted");if(null==t?void 0:t.length)for(const e of t)e.classList.remove("is-highlighted");for(let t=0;t<e.length;t++){const n=e[t],r=document.querySelector(`#row-${n}`);if(r&&(r.classList.add("is-highlighted"),setTimeout((()=>{r.classList.remove("is-highlighted")}),1888)),t===e.length-1){const t=document.querySelector(`#row-${e[0]}`);t&&te(t,140)}}}),t)},exports.evKeyMapperScanner=e=>{var t=e.which;switch(!0){case t>=48&&t<=90:case t>=106&&t<=111||45===t||173===t||189===t:if(void 0!==e.key&&""!==e.key)return e.key;var n=String.fromCharCode(t);switch(e.shiftKey){case!1:n=n.toLowerCase();break;case!0:n=n.toUpperCase()}return n;case t>=96&&t<=105:return t-96+0}return""},exports.evScrollTo=te,exports.evUpdateInputRc=(e,t)=>{var n;if(!e)return!1;const r=null===(n=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"))||void 0===n?void 0:n.set;r&&r.call(e,void 0===t?"":t);const i=new Event("input",{bubbles:!0});e.dispatchEvent(i)},exports.formLabel=E,exports.formatNumber=$,exports.generateMessage=X,exports.generateMessageQuestion=Z,exports.generateValue=J,exports.generateValueTable=U,exports.getSizeContainer=Q,exports.getStorage=(e,t="string",n,r="load")=>{let i;switch(null!==sessionStorage.getItem(r)?i=null!==sessionStorage.getItem(e)?sessionStorage.getItem(e):n:(i=null!==localStorage.getItem(e)?localStorage.getItem(e):n,null!==localStorage.getItem(e)&&sessionStorage.setItem(e,i)),t){case"boolean":i=void 0!==i&&"undefined"!==i&&"true"===i;break;case"number":case"integer":i=void 0!==i&&"undefined"!==i?parseInt(i):0;break;case"object":case"array":i=void 0!==i&&"undefined"!==i?JSON.parse(i):void 0;break;default:i=void 0===i||"undefined"===i?"":i}return i},exports.headTable=D,exports.historyType=e=>{if(!e)return"";switch(e){case"Transfer":return"ST";case"Adjustment":case"Adjustment (API)":case"Adjustment (Interface & Excel)":return"SA";case"Inbound":return"SI";case"Outbound":return"SOB";case"Return":return"RMA";case"Sales Order":return"SO";default:return""}},exports.isDesktop=()=>document.body.clientWidth>=1024,exports.isMobile=()=>document.body.clientWidth<768,exports.isTablet=()=>document.body.clientWidth>=768&&document.body.clientWidth<1024,exports.multiElipsis=I,exports.pageMasterTable=W,exports.pasteIntoInput=(e,t)=>{if(e.focus(),"number"==typeof e.selectionStart&&"number"==typeof e.selectionEnd){var n=e.value,r=e.selectionStart;e.value=n.slice(0,r)+t+n.slice(e.selectionEnd),e.selectionEnd=e.selectionStart=r+t.length}else if(void 0!==document.selection){var i=document.selection.createRange();i.text=t,i.collapse(!1),i.select()}},exports.removeStorage=e=>(localStorage.removeItem(e),sessionStorage.removeItem(e),!0),exports.responseWidth=C,exports.setStorage=(e,t,n)=>{if(null==t)return!1;const r="string"!=typeof t?"object"==typeof t?JSON.stringify(t):t.toString():t;switch(n){case"session":sessionStorage.setItem(e,r);break;case"local":localStorage.setItem(e,r);break;default:sessionStorage.setItem(e,r),localStorage.setItem(e,r)}},exports.statusColor=e=>{if(!e)return"";switch(e){case"Picked Up":case"Shipped":case"Delivered":case"Completed":return"green";case"Ready to Ship":case"Not Shipped":return"#F8813E";case"Pending Payment":return"red";default:return""}},exports.thirdElipsis=A,exports.typePage=e=>{if(!e)return"";switch(e){case"adjustment":case"inbound":case"outbound":return"stock";case"bundle":return"bundle";case"sales":return"sales";default:return""}},exports.unCamelCaseKeys=e=>Object.entries(e).reduce(((e,[t,n])=>(e[(e=>e.replace(/([a-z][A-Z])/g,(function(e){return e[0]+"_"+e[1].toLowerCase()})))(t)]=n,e)),{}),exports.unescapeHTML=ee,exports.validateByApproveJs=K;
3589
+ `,$v=Q().width,zv=Q().height,Xv={rangeDate:"lastsecondweek",startDate:Tx().clone().subtract(13,"days").format("YYYY-MM-DD"),endDate:Tx().clone().format("YYYY-MM-DD"),placeholder:"Last 14 days",minDate:Tx().clone().subtract(89,"days").format("YYYY-MM-DD")};exports.BoxContainer=zx,exports.BreadcrumbContainer=Yx,exports.BulkActionWrapper=Xx,exports.ButtonComponent=xe,exports.ButtonGroup=jy,exports.ButtonLabel=Cy,exports.CardContainer=Hy,exports.CardWrapper=$y,exports.CheckboxComponent=he,exports.CollapseContainer=my,exports.ContentLoaderAccountsList=()=>x.jsxs(Nv,{height:284,width:"100%",speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,viewBox:"0 0 290 284",children:[x.jsx("rect",{x:"10",y:"15",rx:"0",ry:"0",width:"40",height:"40"}),x.jsx("rect",{x:"62",y:"15",rx:"0",ry:"0",width:"90",height:"13"}),x.jsx("rect",{x:"62",y:"30",rx:"0",ry:"0",width:"185",height:"13"}),x.jsx("rect",{x:"62",y:"45",rx:"0",ry:"0",width:"50",height:"11"}),x.jsx("rect",{x:"257",y:"23",rx:"50",ry:"50",width:"25",height:"25"}),x.jsx("rect",{x:"10",y:"70",rx:"0",ry:"0",width:"40",height:"40"}),x.jsx("rect",{x:"62",y:"70",rx:"0",ry:"0",width:"90",height:"13"}),x.jsx("rect",{x:"62",y:"85",rx:"0",ry:"0",width:"185",height:"13"}),x.jsx("rect",{x:"62",y:"100",rx:"0",ry:"0",width:"50",height:"11"}),x.jsx("rect",{x:"257",y:"77",rx:"50",ry:"50",width:"25",height:"25"}),x.jsx("rect",{x:"10",y:"125",rx:"0",ry:"0",width:"40",height:"40"}),x.jsx("rect",{x:"62",y:"125",rx:"0",ry:"0",width:"90",height:"13"}),x.jsx("rect",{x:"62",y:"140",rx:"0",ry:"0",width:"185",height:"13"}),x.jsx("rect",{x:"62",y:"155",rx:"0",ry:"0",width:"50",height:"11"}),x.jsx("rect",{x:"257",y:"131",rx:"50",ry:"50",width:"25",height:"25"}),x.jsx("rect",{x:"10",y:"180",rx:"0",ry:"0",width:"40",height:"40"}),x.jsx("rect",{x:"62",y:"180",rx:"0",ry:"0",width:"90",height:"13"}),x.jsx("rect",{x:"62",y:"195",rx:"0",ry:"0",width:"185",height:"13"}),x.jsx("rect",{x:"62",y:"210",rx:"0",ry:"0",width:"50",height:"11"}),x.jsx("rect",{x:"257",y:"185",rx:"50",ry:"50",width:"25",height:"25"}),x.jsx("rect",{x:"10",y:"235",rx:"0",ry:"0",width:"40",height:"40"}),x.jsx("rect",{x:"62",y:"235",rx:"0",ry:"0",width:"90",height:"13"}),x.jsx("rect",{x:"62",y:"250",rx:"0",ry:"0",width:"185",height:"13"}),x.jsx("rect",{x:"62",y:"265",rx:"0",ry:"0",width:"50",height:"11"}),x.jsx("rect",{x:"257",y:"239",rx:"50",ry:"50",width:"25",height:"25"})]}),exports.ContentLoaderActivityList=()=>x.jsxs(Nv,{height:260,width:"100%",speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:[x.jsx("rect",{x:"10",y:"15",rx:"50",ry:"50",width:"35",height:"35"}),x.jsx("rect",{x:"55",y:"15",rx:"0",ry:"0",width:"330",height:"13"}),x.jsx("rect",{x:"55",y:"35",rx:"0",ry:"0",width:"330",height:"11"}),x.jsx("rect",{x:"10",y:"65",rx:"50",ry:"50",width:"35",height:"35"}),x.jsx("rect",{x:"55",y:"65",rx:"0",ry:"0",width:"330",height:"13"}),x.jsx("rect",{x:"55",y:"85",rx:"0",ry:"0",width:"330",height:"11"}),x.jsx("rect",{x:"10",y:"115",rx:"50",ry:"50",width:"35",height:"35"}),x.jsx("rect",{x:"55",y:"115",rx:"0",ry:"0",width:"330",height:"13"}),x.jsx("rect",{x:"55",y:"135",rx:"0",ry:"0",width:"330",height:"11"}),x.jsx("rect",{x:"10",y:"165",rx:"50",ry:"50",width:"35",height:"35"}),x.jsx("rect",{x:"55",y:"165",rx:"0",ry:"0",width:"330",height:"13"}),x.jsx("rect",{x:"55",y:"185",rx:"0",ry:"0",width:"330",height:"11"}),x.jsx("rect",{x:"10",y:"215",rx:"50",ry:"50",width:"35",height:"35"}),x.jsx("rect",{x:"55",y:"215",rx:"0",ry:"0",width:"330",height:"13"}),x.jsx("rect",{x:"55",y:"235",rx:"0",ry:"0",width:"330",height:"11"})]}),exports.ContentLoaderAddition=()=>{let e=$v>=994?$v>=1031&&$v>=1031?$v-100:$v-60:994;const t=e-777,n=e-665,r=e-555,i=e-405,a=e-230;return x.jsx(Wv,{children:x.jsxs(Nv,{speed:1,width:e,height:"100%",backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[x.jsx("rect",{x:"38",y:"15",rx:"2",ry:"2",width:"31",height:"61"}),x.jsx("rect",{x:95,y:"15",rx:"2",ry:"2",width:t,height:"61"}),x.jsx("rect",{x:n,y:"15",rx:"2",ry:"2",width:90,height:"61"}),x.jsx("rect",{x:r,y:"15",rx:"2",ry:"2",width:140,height:"61"}),x.jsx("rect",{x:i,y:"15",rx:"2",ry:"2",width:160,height:"61"}),x.jsx("rect",{x:a,y:"15",rx:"2",ry:"2",width:140,height:"61"})]})})},exports.ContentLoaderAnalyticsMenu=()=>x.jsx(Nv,{height:60,width:"100%",speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:x.jsx("rect",{x:"0",y:"15",rx:"0",ry:"0",width:"100%",height:"36"})}),exports.ContentLoaderCategoryList=()=>{const t=window.innerHeight-286,n=$v>=1336||$v>=1112?400:300,r=32+n+12,i=$v-n-85,a=t?Math.ceil((t-78)/70):0;return x.jsx(Pv,{children:x.jsxs(Nv,{speed:1,width:$v,height:"100%",backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[x.jsx("rect",{x:32,y:"23",rx:"2",ry:"2",width:n,height:"16"}),x.jsx("rect",{x:r,y:"23",rx:"2",ry:"2",width:i,height:"16"}),Array.apply(0,Array(a)).map(((t,a)=>{const o=70*a+78;return x.jsxs(e.Fragment,{children:[x.jsx("rect",{x:32,y:o,rx:"2",ry:"2",width:n,height:"31"}),x.jsx("rect",{x:r,y:o,rx:"2",ry:"2",width:i,height:"31"})]},a)}))]})})},exports.ContentLoaderChatAccounts=({mode:t})=>{const n=document.querySelector("._refChatContainer"),r=n?n.offsetWidth:0,i="single"===t?65:n&&n.offsetHeight-140>=0?n.offsetHeight:0,a=r-48-88-20,o=a+60+16,s="single"===t?1:Math.floor(i/64);let l=0;return x.jsx(Nv,{height:i,width:"100%",speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:Array.apply(0,Array(s)).map(((t,n)=>{const r=14+l,i=32+l,s=64+l;return l=s,x.jsxs(e.Fragment,{children:[x.jsx("rect",{x:"16",y:r,rx:"4",ry:"4",width:"32",height:"32"}),x.jsx("rect",{x:"60",y:r,rx:"0",ry:"0",width:a,height:"14"}),x.jsx("rect",{x:"60",y:i,rx:"0",ry:"0",width:a,height:"14"}),x.jsx("rect",{x:o,y:r,rx:"0",ry:"0",width:"66",height:"14"}),x.jsx("rect",{x:o,y:i,rx:"0",ry:"0",width:"66",height:"14"}),x.jsx("rect",{x:"0",y:s,rx:"0",ry:"0",width:"100%",height:"1"})]},n)}))})},exports.ContentLoaderChatMessages=({mode:e})=>{const t=document.querySelectorAll("._refChatContainer > article"),n=document.querySelector("._refChatContainer");let r=t[0]&&t[0].offsetWidth>=0?t[0].offsetWidth:0;r=r<=0?n&&n.offsetWidth>=0?n.offsetWidth:0:r;const i="single"===e?234:n&&n.offsetHeight>=0?n.offsetHeight:0,a=r-32<=360?r-32:360,o=r-a-16,s=i-145,l="single"===e?1:Math.floor(s/76);let c=0;return x.jsx(Nv,{height:s,width:"100%",speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:Array.apply(0,Array(l)).map(((e,t)=>{const n=0===t?s-76:c-76;return c=n,x.jsx("rect",{x:t>=3?"16":o,y:n,rx:"10",ry:"10",width:a,height:"60"},t)}))})},exports.ContentLoaderChatProducts=({mode:t})=>{const n=document.querySelector("._refTabsContent"),r=document.querySelector("._refChatContainer"),i=n&&n.offsetWidth-30>=0?n.offsetWidth-30:0,a="single"===t?65:r&&r.offsetHeight-204>=0?r.offsetHeight-204:0,o=i-48-88,s=o+60+16+22,l="single"===t?1:Math.floor(a/64);let c=0;return!(i<=0)&&x.jsx(Nv,{height:a,width:"100%",speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:Array.apply(0,Array(l)).map(((t,n)=>{const r=14+c,i=32+c,a=64+c;return c=a,x.jsxs(e.Fragment,{children:[x.jsx("rect",{x:"16",y:r,rx:"4",ry:"4",width:"14",height:"14"}),x.jsx("rect",{x:"38",y:r,rx:"4",ry:"4",width:"32",height:"32"}),x.jsx("rect",{x:"78",y:r,rx:"0",ry:"0",width:o,height:"14"}),x.jsx("rect",{x:"78",y:i,rx:"0",ry:"0",width:o,height:"20"}),x.jsx("rect",{x:s,y:r,rx:"0",ry:"0",width:"20",height:"14"}),x.jsx("rect",{x:s,y:i,rx:"0",ry:"0",width:"20",height:"14"}),x.jsx("rect",{x:"0",y:a,rx:"0",ry:"0",width:"100%",height:"1"})]},n)}))})},exports.ContentLoaderChatStores=()=>x.jsxs(Nv,{height:220,width:"100%",speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:[x.jsx("rect",{x:"0",y:"0",rx:"0",ry:"0",width:"100%",height:"14"}),x.jsx("rect",{x:"0",y:"28",rx:"0",ry:"0",width:"100%",height:"14"}),x.jsx("rect",{x:"0",y:"56",rx:"0",ry:"0",width:"100%",height:"14"}),x.jsx("rect",{x:"0",y:"84",rx:"0",ry:"0",width:"100%",height:"14"}),x.jsx("rect",{x:"0",y:"112",rx:"0",ry:"0",width:"100%",height:"14"}),x.jsx("rect",{x:"0",y:"140",rx:"0",ry:"0",width:"100%",height:"14"}),x.jsx("rect",{x:"0",y:"168",rx:"0",ry:"0",width:"100%",height:"14"})]}),exports.ContentLoaderDashboardCard=()=>x.jsx(Vv,{children:x.jsxs(Nv,{height:220,width:"100%",speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:[x.jsx("rect",{x:"0",y:"0",rx:"0",ry:"0",width:"200",height:"50"}),x.jsx("rect",{x:"0",y:"70",rx:"0",ry:"0",width:"100%",height:"25"}),x.jsx("rect",{x:"0",y:"105",rx:"0",ry:"0",width:"100%",height:"15"}),x.jsx("rect",{x:"0",y:"130",rx:"0",ry:"0",width:"100%",height:"15"}),x.jsx("rect",{x:"0",y:"155",rx:"0",ry:"0",width:"100%",height:"15"}),x.jsx("rect",{x:"0",y:"180",rx:"0",ry:"0",width:"100%",height:"15"}),x.jsx("rect",{x:"0",y:"205",rx:"0",ry:"0",width:"100%",height:"15"})]})}),exports.ContentLoaderEditBundle=()=>x.jsxs(Nv,{height:500,width:1150,speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:[x.jsx("rect",{x:"0",y:"25",width:"35",height:"35"}),x.jsx("rect",{x:"50",y:"25",width:"400",height:"35"}),x.jsx("rect",{x:"50",y:"75",width:"170",height:"35"}),x.jsx("rect",{x:"235",y:"75",width:"170",height:"35"}),x.jsx("rect",{x:"420",y:"75",width:"170",height:"35"}),x.jsx("rect",{x:"605",y:"75",width:"170",height:"35"}),x.jsx("rect",{x:"50",y:"125",width:"170",height:"35"}),x.jsx("rect",{x:"0",y:"245",width:"200",height:"35"}),x.jsx("rect",{x:"420",y:"305",width:"150",height:"25"}),x.jsx("rect",{x:"585",y:"305",width:"150",height:"25"}),x.jsx("rect",{x:"750",y:"305",width:"150",height:"25"}),x.jsx("rect",{x:"915",y:"305",width:"150",height:"25"}),x.jsx("rect",{x:"0",y:"345",width:"25",height:"25"}),x.jsx("rect",{x:"40",y:"345",width:"360",height:"25"}),x.jsx("rect",{x:"420",y:"345",width:"150",height:"25"}),x.jsx("rect",{x:"585",y:"345",width:"150",height:"25"}),x.jsx("rect",{x:"750",y:"345",width:"150",height:"25"}),x.jsx("rect",{x:"915",y:"345",width:"150",height:"25"}),x.jsx("rect",{x:"750",y:"395",width:"315",height:"25"})]}),exports.ContentLoaderFilterCategories=()=>x.jsxs(Nv,{height:172,width:210,speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:[x.jsx("rect",{x:"4",y:"12",rx:"4",ry:"4",width:"14",height:"14"}),x.jsx("rect",{x:"28",y:"12",rx:"2",ry:"2",width:"170",height:"14"}),x.jsx("rect",{x:"4",y:"36",rx:"4",ry:"4",width:"14",height:"14"}),x.jsx("rect",{x:"28",y:"36",rx:"2",ry:"2",width:"170",height:"14"}),x.jsx("rect",{x:"4",y:"60",rx:"4",ry:"4",width:"14",height:"14"}),x.jsx("rect",{x:"28",y:"60",rx:"2",ry:"2",width:"170",height:"14"}),x.jsx("rect",{x:"4",y:"84",rx:"4",ry:"4",width:"14",height:"14"}),x.jsx("rect",{x:"28",y:"84",rx:"2",ry:"2",width:"170",height:"14"}),x.jsx("rect",{x:"4",y:"108",rx:"4",ry:"4",width:"14",height:"14"}),x.jsx("rect",{x:"28",y:"108",rx:"2",ry:"2",width:"170",height:"14"}),x.jsx("rect",{x:"4",y:"132",rx:"4",ry:"4",width:"14",height:"14"}),x.jsx("rect",{x:"28",y:"132",rx:"2",ry:"2",width:"170",height:"14"}),x.jsx("rect",{x:"4",y:"156",rx:"4",ry:"4",width:"14",height:"14"}),x.jsx("rect",{x:"28",y:"156",rx:"2",ry:"2",width:"170",height:"14"})]}),exports.ContentLoaderFilters=()=>x.jsxs(Nv,{height:31,width:500,speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:[x.jsx("rect",{x:"0",y:"5",rx:"8",ry:"8",width:"90",height:"20"}),x.jsx("rect",{x:"100",y:"5",rx:"8",ry:"8",width:"90",height:"20"}),x.jsx("rect",{x:"200",y:"5",rx:"8",ry:"8",width:"90",height:"20"}),x.jsx("rect",{x:"300",y:"5",rx:"8",ry:"8",width:"90",height:"20"}),x.jsx("rect",{x:"400",y:"5",rx:"8",ry:"8",width:"90",height:"20"})]}),exports.ContentLoaderInvoiceListPaymentreceiveDetail=()=>x.jsx(Rv,{className:"_refLoadingList",children:x.jsxs(Nv,{speed:1,width:$v,height:250,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{width:"100%",maxWidth:"1336px",minWidth:"1024px"},children:[x.jsx("rect",{x:"40",y:"0",rx:"2",ry:"2",width:"130",height:"21"}),x.jsx("rect",{x:"190",y:"0",rx:"2",ry:"2",width:"130",height:"21"}),x.jsx("rect",{x:"330",y:"0",rx:"2",ry:"2",width:"250",height:"21"}),x.jsx("rect",{x:"600",y:"0",rx:"2",ry:"2",width:"200",height:"21"}),x.jsx("rect",{x:$v-240,y:"0",rx:"2",ry:"2",width:"200",height:"21"}),x.jsx("rect",{x:"40",y:"50",rx:"2",ry:"2",width:"130",height:"31"}),x.jsx("rect",{x:"190",y:"50",rx:"2",ry:"2",width:"130",height:"31"}),x.jsx("rect",{x:"330",y:"50",rx:"2",ry:"2",width:"250",height:"31"}),x.jsx("rect",{x:"600",y:"50",rx:"2",ry:"2",width:"200",height:"31"}),x.jsx("rect",{x:$v-240,y:"50",rx:"2",ry:"2",width:"200",height:"31"}),x.jsx("rect",{x:"40",y:"100",rx:"2",ry:"2",width:"130",height:"31"}),x.jsx("rect",{x:"190",y:"100",rx:"2",ry:"2",width:"130",height:"31"}),x.jsx("rect",{x:"330",y:"100",rx:"2",ry:"2",width:"250",height:"31"}),x.jsx("rect",{x:"600",y:"100",rx:"2",ry:"2",width:"200",height:"31"}),x.jsx("rect",{x:$v-240,y:"100",rx:"2",ry:"2",width:"200",height:"31"}),x.jsx("rect",{x:"40",y:"150",rx:"2",ry:"2",width:"130",height:"31"}),x.jsx("rect",{x:"190",y:"150",rx:"2",ry:"2",width:"130",height:"31"}),x.jsx("rect",{x:"330",y:"150",rx:"2",ry:"2",width:"250",height:"31"}),x.jsx("rect",{x:"600",y:"150",rx:"2",ry:"2",width:"200",height:"31"}),x.jsx("rect",{x:$v-240,y:"150",rx:"2",ry:"2",width:"200",height:"31"}),x.jsx("rect",{x:"40",y:"200",rx:"2",ry:"2",width:"130",height:"31"}),x.jsx("rect",{x:"190",y:"200",rx:"2",ry:"2",width:"130",height:"31"}),x.jsx("rect",{x:"330",y:"200",rx:"2",ry:"2",width:"250",height:"31"}),x.jsx("rect",{x:"600",y:"200",rx:"2",ry:"2",width:"200",height:"31"}),x.jsx("rect",{x:$v-240,y:"200",rx:"2",ry:"2",width:"200",height:"31"})]})}),exports.ContentLoaderMasterBundleDetail=()=>{const e=$v>=1336?540:$v>=1112?320:250,t=e+30,n=150,r=t+n+15,i=80,a=r+i+15,o=150,s=a+o+15;return x.jsx(Bv,{children:x.jsxs(Nv,{speed:1,width:$v,height:300,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[x.jsx("rect",{x:"15",y:"25",rx:"2",ry:"2",width:e,height:"15"}),x.jsx("rect",{x:t,y:"25",rx:"2",ry:"2",width:n,height:"15"}),x.jsx("rect",{x:r,y:"25",rx:"2",ry:"2",width:i,height:"15"}),x.jsx("rect",{x:a,y:"25",rx:"2",ry:"2",width:o,height:"15"}),x.jsx("rect",{x:s,y:"25",rx:"2",ry:"2",width:80,height:"15"}),x.jsx("rect",{x:"15",y:"60",rx:"2",ry:"2",width:e,height:"30"}),x.jsx("rect",{x:t,y:"60",rx:"2",ry:"2",width:n,height:"30"}),x.jsx("rect",{x:r,y:"60",rx:"2",ry:"2",width:i,height:"30"}),x.jsx("rect",{x:a,y:"60",rx:"2",ry:"2",width:o,height:"30"}),x.jsx("rect",{x:s,y:"60",rx:"2",ry:"2",width:80,height:"30"}),x.jsx("rect",{x:"15",y:"110",rx:"2",ry:"2",width:e,height:"30"}),x.jsx("rect",{x:t,y:"110",rx:"2",ry:"2",width:n,height:"30"}),x.jsx("rect",{x:r,y:"110",rx:"2",ry:"2",width:i,height:"30"}),x.jsx("rect",{x:a,y:"110",rx:"2",ry:"2",width:o,height:"30"}),x.jsx("rect",{x:s,y:"110",rx:"2",ry:"2",width:80,height:"30"}),x.jsx("rect",{x:"15",y:"160",rx:"2",ry:"2",width:e,height:"30"}),x.jsx("rect",{x:t,y:"160",rx:"2",ry:"2",width:n,height:"30"}),x.jsx("rect",{x:r,y:"160",rx:"2",ry:"2",width:i,height:"30"}),x.jsx("rect",{x:a,y:"160",rx:"2",ry:"2",width:o,height:"30"}),x.jsx("rect",{x:s,y:"160",rx:"2",ry:"2",width:80,height:"30"}),x.jsx("rect",{x:"15",y:"210",rx:"2",ry:"2",width:e,height:"30"}),x.jsx("rect",{x:t,y:"210",rx:"2",ry:"2",width:n,height:"30"}),x.jsx("rect",{x:r,y:"210",rx:"2",ry:"2",width:i,height:"30"}),x.jsx("rect",{x:a,y:"210",rx:"2",ry:"2",width:o,height:"30"}),x.jsx("rect",{x:s,y:"210",rx:"2",ry:"2",width:80,height:"30"})]})})},exports.ContentLoaderMasterDetail=()=>{const e=$v-250,t=$v-150,n=$v-80,r=140,i=183,a=200,o=388,s=140,l=533,c=140,d=678,u=140,p=823,h=140;return x.jsx(Gv,{children:x.jsxs(Nv,{speed:1,width:$v,height:"100%",backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[x.jsx("rect",{x:38,y:"20",rx:"2",ry:"2",width:e,height:"30"}),x.jsx("rect",{x:t,y:"20",rx:"2",ry:"2",width:60,height:"30"}),x.jsx("rect",{x:n,y:"20",rx:"2",ry:"2",width:30,height:"30"}),x.jsx("rect",{x:"50",y:"80",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"170",y:"80",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"290",y:"80",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"38",y:"130",rx:"2",ry:"2",width:"150",height:"20"}),x.jsx("rect",{x:"200",y:"130",rx:"2",ry:"2",width:"285",height:"20"}),x.jsx("rect",{x:"38",y:"165",rx:"2",ry:"2",width:"150",height:"20"}),x.jsx("rect",{x:"200",y:"165",rx:"2",ry:"2",width:"285",height:"20"}),x.jsx("rect",{x:"38",y:"200",rx:"2",ry:"2",width:"150",height:"20"}),x.jsx("rect",{x:"200",y:"200",rx:"2",ry:"2",width:"285",height:"20"}),x.jsx("rect",{x:"38",y:"235",rx:"2",ry:"2",width:"150",height:"20"}),x.jsx("rect",{x:"200",y:"235",rx:"2",ry:"2",width:"285",height:"20"}),x.jsx("rect",{x:"38",y:"270",rx:"2",ry:"2",width:"150",height:"20"}),x.jsx("rect",{x:"200",y:"270",rx:"2",ry:"2",width:"285",height:"20"}),x.jsx("rect",{x:38,y:"320",rx:"2",ry:"2",width:r,height:"31"}),x.jsx("rect",{x:i,y:"320",rx:"2",ry:"2",width:a,height:"31"}),x.jsx("rect",{x:o,y:"320",rx:"2",ry:"2",width:s,height:"31"}),x.jsx("rect",{x:l,y:"320",rx:"2",ry:"2",width:c,height:"31"}),x.jsx("rect",{x:d,y:"320",rx:"2",ry:"2",width:u,height:"31"}),x.jsx("rect",{x:p,y:"320",rx:"2",ry:"2",width:h,height:"31"}),x.jsx("rect",{x:38,y:"370",rx:"2",ry:"2",width:r,height:"31"}),x.jsx("rect",{x:i,y:"370",rx:"2",ry:"2",width:a,height:"31"}),x.jsx("rect",{x:o,y:"370",rx:"2",ry:"2",width:s,height:"31"}),x.jsx("rect",{x:l,y:"370",rx:"2",ry:"2",width:c,height:"31"}),x.jsx("rect",{x:d,y:"370",rx:"2",ry:"2",width:u,height:"31"}),x.jsx("rect",{x:p,y:"370",rx:"2",ry:"2",width:h,height:"31"}),x.jsx("rect",{x:38,y:"420",rx:"2",ry:"2",width:r,height:"31"}),x.jsx("rect",{x:i,y:"420",rx:"2",ry:"2",width:a,height:"31"}),x.jsx("rect",{x:o,y:"420",rx:"2",ry:"2",width:s,height:"31"}),x.jsx("rect",{x:l,y:"420",rx:"2",ry:"2",width:c,height:"31"}),x.jsx("rect",{x:d,y:"420",rx:"2",ry:"2",width:u,height:"31"}),x.jsx("rect",{x:p,y:"420",rx:"2",ry:"2",width:h,height:"31"}),x.jsx("rect",{x:38,y:"470",rx:"2",ry:"2",width:r,height:"31"}),x.jsx("rect",{x:i,y:"470",rx:"2",ry:"2",width:a,height:"31"}),x.jsx("rect",{x:o,y:"470",rx:"2",ry:"2",width:s,height:"31"}),x.jsx("rect",{x:l,y:"470",rx:"2",ry:"2",width:c,height:"31"}),x.jsx("rect",{x:d,y:"470",rx:"2",ry:"2",width:u,height:"31"}),x.jsx("rect",{x:p,y:"470",rx:"2",ry:"2",width:h,height:"31"}),x.jsx("rect",{x:"38",y:"530",rx:"2",ry:"2",width:"200",height:"15"}),x.jsx("rect",{x:38,y:"560",rx:"2",ry:"2",width:"50",height:"50"}),x.jsx("rect",{x:108,y:"560",rx:"2",ry:"2",width:"50",height:"50"}),x.jsx("rect",{x:178,y:"560",rx:"2",ry:"2",width:"50",height:"50"}),x.jsx("rect",{x:248,y:"560",rx:"2",ry:"2",width:"50",height:"50"}),x.jsx("rect",{x:318,y:"560",rx:"2",ry:"2",width:"50",height:"50"})]})})},exports.ContentLoaderMasterList=()=>{const t=zv-286,n=$v>=1336?370:$v>=1112?250:150,r=29+n+12,i=$v>=1336?130:$v>=1112?110:100,a=r+i+12,o=$v>=1336?100:95,s=a+o+12,l=$v>=1336?90:80,c=s+l+12,d=$v>=1336?85:75,u=c+d+12,p=$v>=1336?80:70,h=u+p+12,g=$v>=1336?70:60,f=h+g+12,m=$v>=1336?95:85,y=$v-100-24,b=zv&&Math.ceil((t-78)/70)>0?Math.ceil((t-78)/70):0;let v=f+m+12,w=[];for(let e=0;v+122<y;e++)w.push({x:f+m+12+122*e,w:110}),v=f+m+12+122*e;return x.jsx(Pv,{children:x.jsxs(Nv,{speed:1,width:$v,height:"100%",backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[x.jsx("rect",{x:29,y:"23",rx:"2",ry:"2",width:n,height:"16"}),x.jsx("rect",{x:r,y:"23",rx:"2",ry:"2",width:i,height:"16"}),x.jsx("rect",{x:a,y:"23",rx:"2",ry:"2",width:o,height:"16"}),x.jsx("rect",{x:s,y:"23",rx:"2",ry:"2",width:l,height:"16"}),x.jsx("rect",{x:c,y:"23",rx:"2",ry:"2",width:d,height:"16"}),x.jsx("rect",{x:u,y:"23",rx:"2",ry:"2",width:p,height:"16"}),x.jsx("rect",{x:h,y:"23",rx:"2",ry:"2",width:g,height:"16"}),x.jsx("rect",{x:f,y:"23",rx:"2",ry:"2",width:m,height:"16"}),w.map(((t,n)=>x.jsx(e.Fragment,{children:x.jsx("rect",{x:t.x,y:"23",rx:"2",ry:"2",width:t.w,height:"16"})},n))),x.jsx("rect",{x:y,y:"23",rx:"2",ry:"2",width:100,height:"16"}),Array.apply(0,Array(b)).map(((t,b)=>{const v=70*b+78;return x.jsxs(e.Fragment,{children:[x.jsx("rect",{x:29,y:v,rx:"2",ry:"2",width:n,height:"31"}),x.jsx("rect",{x:r,y:v,rx:"2",ry:"2",width:i,height:"31"}),x.jsx("rect",{x:a,y:v,rx:"2",ry:"2",width:o,height:"31"}),x.jsx("rect",{x:s,y:v,rx:"2",ry:"2",width:l,height:"31"}),x.jsx("rect",{x:c,y:v,rx:"2",ry:"2",width:d,height:"31"}),x.jsx("rect",{x:u,y:v,rx:"2",ry:"2",width:p,height:"31"}),x.jsx("rect",{x:h,y:v,rx:"2",ry:"2",width:g,height:"31"}),x.jsx("rect",{x:f,y:v,rx:"2",ry:"2",width:m,height:"31"}),w.map(((t,n)=>x.jsx(e.Fragment,{children:x.jsx("rect",{x:t.x,y:v,rx:"2",ry:"2",width:t.w,height:"31"})},n))),x.jsx("rect",{x:y,y:v,rx:"2",ry:"2",width:100,height:"31"})]},b)}))]})})},exports.ContentLoaderMasterListingDetail=()=>{const e=$v>=1336?645:$v>=1112?400:300,t=e+45,n=e+90;return x.jsx(Bv,{children:x.jsxs(Nv,{speed:1,width:$v,height:300,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[x.jsx("rect",{x:"15",y:"25",rx:"2",ry:"2",width:t,height:"15"}),x.jsx("rect",{x:n,y:"25",rx:"2",ry:"2",width:"250",height:"15"}),x.jsx("rect",{x:"15",y:"60",rx:"8",ry:"8",width:"30",height:"30"}),x.jsx("rect",{x:"60",y:"60",rx:"2",ry:"2",width:e,height:"30"}),x.jsx("rect",{x:n,y:"60",rx:"2",ry:"2",width:"250",height:"30"}),x.jsx("rect",{x:"15",y:"110",rx:"8",ry:"8",width:"30",height:"30"}),x.jsx("rect",{x:"60",y:"110",rx:"2",ry:"2",width:e,height:"30"}),x.jsx("rect",{x:n,y:"110",rx:"2",ry:"2",width:"250",height:"30"}),x.jsx("rect",{x:"15",y:"160",rx:"8",ry:"8",width:"30",height:"30"}),x.jsx("rect",{x:"60",y:"160",rx:"2",ry:"2",width:e,height:"30"}),x.jsx("rect",{x:n,y:"160",rx:"2",ry:"2",width:"250",height:"30"}),x.jsx("rect",{x:"15",y:"210",rx:"8",ry:"8",width:"30",height:"30"}),x.jsx("rect",{x:"60",y:"210",rx:"2",ry:"2",width:e,height:"30"}),x.jsx("rect",{x:n,y:"210",rx:"2",ry:"2",width:"250",height:"30"})]})})},exports.ContentLoaderNonOrderList=()=>{const t=window.innerWidth,n=t>=1336?150:t>=1112?110:100,r=29+n+12,i=t>=1336?120:t>=1112?110:100,a=r+i+12,o=t>=1336||t>=1112?110:105,s=a+o+12,l=t>=1336||t>=1112?140:130,c=s+l+12,d=t>=1336?130:t>=1112?120:100,u=c+d+12,p=t>=1336?115:t>=1112?105:100,h=u+p+12,g=t>=1336?150:t>=1112?110:100,f=t-150-24,m=zv?Math.ceil((zv-78)/70):0;let y=h+g+12,b=[];for(let e=0;y+122<f;e++)b.push({x:h+g+12+122*e,w:110}),y=h+g+12+122*e;return x.jsx(Pv,{className:"_refLoadingList",children:x.jsxs(Nv,{speed:1,width:t,height:"100%",backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[x.jsx("rect",{x:29,y:"23",rx:"2",ry:"2",width:n,height:"16"}),x.jsx("rect",{x:r,y:"23",rx:"2",ry:"2",width:i,height:"16"}),x.jsx("rect",{x:a,y:"23",rx:"2",ry:"2",width:o,height:"16"}),x.jsx("rect",{x:s,y:"23",rx:"2",ry:"2",width:l,height:"16"}),x.jsx("rect",{x:c,y:"23",rx:"2",ry:"2",width:d,height:"16"}),x.jsx("rect",{x:u,y:"23",rx:"2",ry:"2",width:p,height:"16"}),x.jsx("rect",{x:h,y:"23",rx:"2",ry:"2",width:g,height:"16"}),b.map(((t,n)=>x.jsx(e.Fragment,{children:x.jsx("rect",{x:t.x,y:"23",rx:"2",ry:"2",width:t.w,height:"16"})},n))),x.jsx("rect",{x:f,y:"23",rx:"2",ry:"2",width:100,height:"16"}),Array.apply(0,Array(m)).map(((t,m)=>{const y=70*m+78;return x.jsxs(e.Fragment,{children:[x.jsx("rect",{x:29,y:y,rx:"2",ry:"2",width:n,height:"31"}),x.jsx("rect",{x:r,y:y,rx:"2",ry:"2",width:i,height:"31"}),x.jsx("rect",{x:a,y:y,rx:"2",ry:"2",width:o,height:"31"}),x.jsx("rect",{x:s,y:y,rx:"2",ry:"2",width:l,height:"31"}),x.jsx("rect",{x:c,y:y,rx:"2",ry:"2",width:d,height:"31"}),x.jsx("rect",{x:u,y:y,rx:"2",ry:"2",width:p,height:"31"}),x.jsx("rect",{x:h,y:y,rx:"2",ry:"2",width:g,height:"31"}),b.map(((t,n)=>x.jsx(e.Fragment,{children:x.jsx("rect",{x:t.x,y:y,rx:"2",ry:"2",width:t.w,height:"31"})},n))),x.jsx("rect",{x:f,y:y,rx:"2",ry:"2",width:100,height:"31"})]},m)}))]})})},exports.ContentLoaderNotifUpdate=()=>x.jsx(Nv,{height:36,width:"100%",speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:x.jsx("rect",{x:"0",y:"0",rx:"0",ry:"0",width:"100%",height:"36"})}),exports.ContentLoaderOneLinePromotion=()=>x.jsx(Nv,{height:16,width:86,speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,viewBox:"0 0 86 16",children:x.jsx("rect",{x:"0",y:"2",rx:"5",ry:"5",width:80,height:14})}),exports.ContentLoaderOnlyBodyDashboardCard=()=>x.jsxs(Nv,{height:650,width:"100%",speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:[x.jsx("rect",{x:"0",y:"30",rx:"0",ry:"0",width:"50%",height:"20"}),x.jsx("rect",{x:"0",y:"55",rx:"0",ry:"0",width:"50%",height:"20"}),x.jsx("rect",{x:"0",y:"80",rx:"0",ry:"0",width:"50%",height:"20"}),x.jsx("rect",{x:"0",y:"105",rx:"0",ry:"0",width:"50%",height:"20"}),x.jsx("rect",{x:"0",y:"130",rx:"0",ry:"0",width:"50%",height:"20"}),x.jsx("rect",{x:"0",y:"155",rx:"0",ry:"0",width:"50%",height:"20"}),x.jsx("rect",{x:"0",y:"180",rx:"0",ry:"0",width:"50%",height:"20"}),x.jsx("rect",{x:"0",y:"205",rx:"0",ry:"0",width:"50%",height:"20"}),x.jsx("rect",{x:"0",y:"250",rx:"0",ry:"0",width:"100%",height:"250"}),x.jsx("rect",{x:"0",y:"525",rx:"0",ry:"0",width:"100%",height:"15"}),x.jsx("rect",{x:"0",y:"550",rx:"0",ry:"0",width:"100%",height:"15"}),x.jsx("rect",{x:"0",y:"575",rx:"0",ry:"0",width:"100%",height:"15"})]}),exports.ContentLoaderOnlyBodyTableList=()=>{const e=window.innerHeight-96,t=Math.floor(($v-110)/120),n=Math.floor((e-20)/50);return x.jsx(Rv,{children:x.jsx(Nv,{speed:1,width:$v,height:e,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:Array.apply(0,Array(n)).map(((e,n)=>{const r=n+50*(n+1)-30;return Array.apply(0,Array(t)).map(((e,t)=>{const n=t+120*(t+1)-65;return x.jsx("rect",{x:n,y:r,rx:"2",ry:"2",width:100,height:"30"},t)}))}))})})},exports.ContentLoaderOnlyHeaderTableList=()=>{const e=Math.floor(($v-110)/120);return x.jsx(Rv,{children:x.jsx(Nv,{speed:1,width:$v,height:100,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[0].map(((t,n)=>Array.apply(0,Array(e)).map(((e,t)=>{const r=t+120*(t+1)-65;return x.jsx("rect",{x:r,y:20,rx:"2",ry:"2",width:100,height:0===n?16:30},t)}))))})})},exports.ContentLoaderOrderDetail=()=>{const e=$v-700,t=$v-432,n=$v-302,r=$v-217,i=$v-72,a=$v-777,o=$v-665,s=$v-625,l=$v-515,c=$v-365,d=$v-190,u=140,p=$v-777,h=$v-629,g=$v-529,f=$v-389,m=$v-214;return x.jsx(Gv,{children:x.jsxs(Nv,{speed:1,width:$v,height:"100%",backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[x.jsx("rect",{x:"38",y:"18",rx:"2",ry:"2",width:"36",height:"36"}),x.jsx("rect",{x:84,y:"18",rx:"2",ry:"2",width:e,height:"36"}),x.jsx("rect",{x:t,y:"20",rx:"2",ry:"2",width:120,height:"32"}),x.jsx("rect",{x:n,y:"20",rx:"2",ry:"2",width:80,height:"32"}),x.jsx("rect",{x:r,y:"20",rx:"2",ry:"2",width:140,height:"32"}),x.jsx("rect",{x:i,y:"20",rx:"2",ry:"2",width:30,height:"32"}),x.jsx("rect",{x:"38",y:"85",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"152",y:"85",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"266",y:"85",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"64",y:"150",rx:"2",ry:"2",width:"31",height:"61"}),x.jsx("rect",{x:121,y:"150",rx:"2",ry:"2",width:p,height:"61"}),x.jsx("rect",{x:h,y:"150",rx:"2",ry:"2",width:90,height:"61"}),x.jsx("rect",{x:g,y:"150",rx:"2",ry:"2",width:140,height:"61"}),x.jsx("rect",{x:f,y:"150",rx:"2",ry:"2",width:160,height:"61"}),x.jsx("rect",{x:m,y:"150",rx:"2",ry:"2",width:140,height:"61"}),x.jsx("rect",{x:"38",y:"284",rx:"2",ry:"2",width:"285",height:"31"}),x.jsx("rect",{x:"389",y:"284",rx:"2",ry:"2",width:"285",height:"31"}),x.jsx("rect",{x:"38",y:"324",rx:"2",ry:"2",width:"285",height:"31"}),x.jsx("rect",{x:"389",y:"324",rx:"2",ry:"2",width:"285",height:"31"}),x.jsx("rect",{x:"38",y:"364",rx:"2",ry:"2",width:"285",height:"31"}),x.jsx("rect",{x:"389",y:"364",rx:"2",ry:"2",width:"285",height:"31"}),x.jsx("rect",{x:"38",y:"404",rx:"2",ry:"2",width:"285",height:"31"}),x.jsx("rect",{x:"389",y:"404",rx:"2",ry:"2",width:"285",height:"31"}),x.jsx("rect",{x:"38",y:"444",rx:"2",ry:"2",width:"285",height:"31"}),x.jsx("rect",{x:"389",y:"444",rx:"2",ry:"2",width:"285",height:"31"}),x.jsx("rect",{x:"38",y:"515",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:95,y:"515",rx:"2",ry:"2",width:a,height:"31"}),x.jsx("rect",{x:o,y:"515",rx:"2",ry:"2",width:26,height:"31"}),x.jsx("rect",{x:s,y:"515",rx:"2",ry:"2",width:90,height:"31"}),x.jsx("rect",{x:l,y:"515",rx:"2",ry:"2",width:140,height:"31"}),x.jsx("rect",{x:c,y:"515",rx:"2",ry:"2",width:160,height:"31"}),x.jsx("rect",{x:d,y:"515",rx:"2",ry:"2",width:u,height:"31"}),x.jsx("rect",{x:"38",y:"555",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:95,y:"555",rx:"2",ry:"2",width:a,height:"31"}),x.jsx("rect",{x:o,y:"555",rx:"2",ry:"2",width:26,height:"31"}),x.jsx("rect",{x:s,y:"555",rx:"2",ry:"2",width:90,height:"31"}),x.jsx("rect",{x:l,y:"555",rx:"2",ry:"2",width:140,height:"31"}),x.jsx("rect",{x:c,y:"555",rx:"2",ry:"2",width:160,height:"31"}),x.jsx("rect",{x:d,y:"555",rx:"2",ry:"2",width:u,height:"31"}),x.jsx("rect",{x:d,y:"604",rx:"2",ry:"2",width:u,height:"31"}),x.jsx("rect",{x:d,y:"654",rx:"2",ry:"2",width:u,height:"31"}),x.jsx("rect",{x:"38",y:"684",rx:"2",ry:"2",width:e,height:"36"})]})})},exports.ContentLoaderOrderList=()=>{const e=100,t=$v-600,n=$v-405,r=120,i=$v-275,a=$v-190,o=140,s=$v-45,l=$v-18,c=$v-777,d=$v-665,u=$v-625,p=$v-515,h=140,g=$v-365,f=160,m=$v-190,y=140;return x.jsxs(Lv,{children:[x.jsx(_v,{children:x.jsxs(Nv,{speed:1,width:$v,height:"100%",backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[x.jsx("rect",{x:"52",y:"15",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:e,y:"15",rx:"2",ry:"2",width:t,height:"31"}),x.jsx("rect",{x:n,y:"15",rx:"2",ry:"2",width:r,height:"32"}),x.jsx("rect",{x:i,y:"15",rx:"2",ry:"2",width:80,height:"32"}),x.jsx("rect",{x:a,y:"15",rx:"2",ry:"2",width:o,height:"32"}),x.jsx("rect",{x:s,y:"15",rx:"2",ry:"2",width:30,height:"32"}),x.jsx("rect",{x:"52",y:"80",rx:"2",ry:"2",width:"200",height:"15"}),x.jsx("rect",{x:9,y:"110",rx:"0",ry:"0",width:l,height:"2"}),x.jsx("rect",{x:"52",y:"127",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:95,y:"127",rx:"2",ry:"2",width:c,height:"50"}),x.jsx("rect",{x:d,y:"127",rx:"2",ry:"2",width:26,height:"31"}),x.jsx("rect",{x:u,y:"127",rx:"2",ry:"2",width:90,height:"31"}),x.jsx("rect",{x:p,y:"127",rx:"2",ry:"2",width:h,height:"31"}),x.jsx("rect",{x:g,y:"127",rx:"2",ry:"2",width:f,height:"31"}),x.jsx("rect",{x:m,y:"127",rx:"2",ry:"2",width:y,height:"65"})]})}),x.jsx(_v,{children:x.jsxs(Nv,{speed:1,width:$v,height:"100%",backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[x.jsx("rect",{x:"52",y:"15",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:e,y:"15",rx:"2",ry:"2",width:t,height:"31"}),x.jsx("rect",{x:n,y:"15",rx:"2",ry:"2",width:r,height:"32"}),x.jsx("rect",{x:i,y:"15",rx:"2",ry:"2",width:80,height:"32"}),x.jsx("rect",{x:a,y:"15",rx:"2",ry:"2",width:o,height:"32"}),x.jsx("rect",{x:s,y:"15",rx:"2",ry:"2",width:30,height:"32"}),x.jsx("rect",{x:"52",y:"80",rx:"2",ry:"2",width:"200",height:"15"}),x.jsx("rect",{x:9,y:"110",rx:"0",ry:"0",width:l,height:"2"}),x.jsx("rect",{x:"52",y:"127",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:95,y:"127",rx:"2",ry:"2",width:c,height:"50"}),x.jsx("rect",{x:d,y:"127",rx:"2",ry:"2",width:26,height:"31"}),x.jsx("rect",{x:u,y:"127",rx:"2",ry:"2",width:90,height:"31"}),x.jsx("rect",{x:p,y:"127",rx:"2",ry:"2",width:h,height:"31"}),x.jsx("rect",{x:g,y:"127",rx:"2",ry:"2",width:f,height:"31"}),x.jsx("rect",{x:m,y:"127",rx:"2",ry:"2",width:y,height:"65"})]})}),x.jsx(_v,{children:x.jsxs(Nv,{speed:1,width:$v,height:"100%",backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[x.jsx("rect",{x:"52",y:"15",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:e,y:"15",rx:"2",ry:"2",width:t,height:"31"}),x.jsx("rect",{x:n,y:"15",rx:"2",ry:"2",width:r,height:"32"}),x.jsx("rect",{x:i,y:"15",rx:"2",ry:"2",width:80,height:"32"}),x.jsx("rect",{x:a,y:"15",rx:"2",ry:"2",width:o,height:"32"}),x.jsx("rect",{x:s,y:"15",rx:"2",ry:"2",width:30,height:"32"}),x.jsx("rect",{x:"52",y:"80",rx:"2",ry:"2",width:"200",height:"15"}),x.jsx("rect",{x:9,y:"110",rx:"0",ry:"0",width:l,height:"2"}),x.jsx("rect",{x:"52",y:"127",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:95,y:"127",rx:"2",ry:"2",width:c,height:"50"}),x.jsx("rect",{x:d,y:"127",rx:"2",ry:"2",width:26,height:"31"}),x.jsx("rect",{x:u,y:"127",rx:"2",ry:"2",width:90,height:"31"}),x.jsx("rect",{x:p,y:"127",rx:"2",ry:"2",width:h,height:"31"}),x.jsx("rect",{x:g,y:"127",rx:"2",ry:"2",width:f,height:"31"}),x.jsx("rect",{x:m,y:"127",rx:"2",ry:"2",width:y,height:"65"})]})}),x.jsx(_v,{children:x.jsxs(Nv,{speed:1,width:$v,height:"100%",backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[x.jsx("rect",{x:"52",y:"15",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:e,y:"15",rx:"2",ry:"2",width:t,height:"31"}),x.jsx("rect",{x:n,y:"15",rx:"2",ry:"2",width:r,height:"32"}),x.jsx("rect",{x:i,y:"15",rx:"2",ry:"2",width:80,height:"32"}),x.jsx("rect",{x:a,y:"15",rx:"2",ry:"2",width:o,height:"32"}),x.jsx("rect",{x:s,y:"15",rx:"2",ry:"2",width:30,height:"32"}),x.jsx("rect",{x:"52",y:"80",rx:"2",ry:"2",width:"200",height:"15"}),x.jsx("rect",{x:9,y:"110",rx:"0",ry:"0",width:l,height:"2"}),x.jsx("rect",{x:"52",y:"127",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:95,y:"127",rx:"2",ry:"2",width:c,height:"50"}),x.jsx("rect",{x:d,y:"127",rx:"2",ry:"2",width:26,height:"31"}),x.jsx("rect",{x:u,y:"127",rx:"2",ry:"2",width:90,height:"31"}),x.jsx("rect",{x:p,y:"127",rx:"2",ry:"2",width:h,height:"31"}),x.jsx("rect",{x:g,y:"127",rx:"2",ry:"2",width:f,height:"31"}),x.jsx("rect",{x:m,y:"127",rx:"2",ry:"2",width:y,height:"65"})]})}),x.jsx(_v,{children:x.jsxs(Nv,{speed:1,width:$v,height:"100%",backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[x.jsx("rect",{x:"52",y:"15",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:e,y:"15",rx:"2",ry:"2",width:t,height:"31"}),x.jsx("rect",{x:n,y:"15",rx:"2",ry:"2",width:r,height:"32"}),x.jsx("rect",{x:i,y:"15",rx:"2",ry:"2",width:80,height:"32"}),x.jsx("rect",{x:a,y:"15",rx:"2",ry:"2",width:o,height:"32"}),x.jsx("rect",{x:s,y:"15",rx:"2",ry:"2",width:30,height:"32"}),x.jsx("rect",{x:"52",y:"80",rx:"2",ry:"2",width:"200",height:"15"}),x.jsx("rect",{x:9,y:"110",rx:"0",ry:"0",width:l,height:"2"}),x.jsx("rect",{x:"52",y:"127",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:95,y:"127",rx:"2",ry:"2",width:c,height:"50"}),x.jsx("rect",{x:d,y:"127",rx:"2",ry:"2",width:26,height:"31"}),x.jsx("rect",{x:u,y:"127",rx:"2",ry:"2",width:90,height:"31"}),x.jsx("rect",{x:p,y:"127",rx:"2",ry:"2",width:h,height:"31"}),x.jsx("rect",{x:g,y:"127",rx:"2",ry:"2",width:f,height:"31"}),x.jsx("rect",{x:m,y:"127",rx:"2",ry:"2",width:y,height:"65"})]})})]})},exports.ContentLoaderPOSCategory=()=>{const e=Math.floor(31*Math.random())+50;return x.jsx(Nv,{height:30,width:e,speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:x.jsx("rect",{x:"0",y:"0",rx:"4",ry:"4",width:"100%",height:"30"})})},exports.ContentLoaderPOSItem=()=>x.jsxs(Nv,{height:116,width:"100%",speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:[x.jsx(Hv,{$width:"calc(100% - 20px)",x:"10",y:"10",rx:"0",ry:"0",height:"16"}),x.jsx("rect",{x:"10",y:"35",rx:"0",ry:"0",width:"75%",height:"16"}),x.jsx(Hv,{$width:"calc(100% - 20px)",x:"10",y:"63",rx:"0",ry:"0",height:"16"}),x.jsx(Hv,{$x:"calc(50% - 30px)",y:"95",rx:"4",ry:"4",width:"60px",height:"16"})]}),exports.ContentLoaderPOSStore=()=>x.jsxs(Nv,{height:125,width:"100%",speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:[x.jsx("rect",{x:"0",y:"4",rx:"0",ry:"0",width:"100%",height:"20"}),x.jsx("rect",{x:"0",y:"28",rx:"0",ry:"0",width:"100%",height:"20"}),x.jsx("rect",{x:"0",y:"70",rx:"0",ry:"0",width:"180px",height:"16"}),x.jsx("rect",{x:"0",y:"110",rx:"0",ry:"0",width:"100px",height:"14"})]}),exports.ContentLoaderPagination=()=>{const e=$v/2,t=e-160,n=e-128,r=e-96,i=e-64,a=e-32,o=e+0,s=e+32,l=e+64,c=e+96,d=e+128;return x.jsx(Fv,{className:"_refLoadingPage",children:x.jsxs(Nv,{speed:1,width:$v,height:"100%",backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[x.jsx("rect",{x:t,y:"23",rx:"2",ry:"2",width:"27",height:"27"}),x.jsx("rect",{x:n,y:"23",rx:"2",ry:"2",width:"27",height:"27"}),x.jsx("rect",{x:r,y:"23",rx:"2",ry:"2",width:"27",height:"27"}),x.jsx("rect",{x:i,y:"23",rx:"2",ry:"2",width:"27",height:"27"}),x.jsx("rect",{x:a,y:"23",rx:"2",ry:"2",width:"27",height:"27"}),x.jsx("rect",{x:o,y:"23",rx:"2",ry:"2",width:"27",height:"27"}),x.jsx("rect",{x:s,y:"23",rx:"2",ry:"2",width:"27",height:"27"}),x.jsx("rect",{x:l,y:"23",rx:"2",ry:"2",width:"27",height:"27"}),x.jsx("rect",{x:c,y:"23",rx:"2",ry:"2",width:"27",height:"27"}),x.jsx("rect",{x:d,y:"23",rx:"2",ry:"2",width:"27",height:"27"}),x.jsx("rect",{x:i,y:"60",rx:"2",ry:"2",width:"128",height:"6"})]})})},exports.ContentLoaderPopupBundle=()=>x.jsxs(Nv,{height:270,width:800,speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:[x.jsx("rect",{x:"15",y:"60",width:"300",height:"15"}),x.jsx("rect",{x:"330",y:"25",width:"100",height:"15"}),x.jsx("rect",{x:"450",y:"25",width:"75",height:"15"}),x.jsx("rect",{x:"540",y:"25",width:"130",height:"15"}),x.jsx("rect",{x:"690",y:"25",width:"75",height:"15"}),x.jsx("rect",{x:"15",y:"60",width:"300",height:"30"}),x.jsx("rect",{x:"330",y:"60",width:"100",height:"30"}),x.jsx("rect",{x:"450",y:"60",width:"75",height:"30"}),x.jsx("rect",{x:"540",y:"60",width:"130",height:"30"}),x.jsx("rect",{x:"690",y:"60",width:"75",height:"30"}),x.jsx("rect",{x:"15",y:"110",width:"300",height:"30"}),x.jsx("rect",{x:"330",y:"110",width:"100",height:"30"}),x.jsx("rect",{x:"450",y:"110",width:"75",height:"30"}),x.jsx("rect",{x:"540",y:"110",width:"130",height:"30"}),x.jsx("rect",{x:"690",y:"110",width:"75",height:"30"}),x.jsx("rect",{x:"15",y:"160",width:"300",height:"30"}),x.jsx("rect",{x:"330",y:"160",width:"100",height:"30"}),x.jsx("rect",{x:"450",y:"160",width:"75",height:"30"}),x.jsx("rect",{x:"540",y:"160",width:"130",height:"30"}),x.jsx("rect",{x:"690",y:"160",width:"75",height:"30"}),x.jsx("rect",{x:"15",y:"210",width:"300",height:"30"}),x.jsx("rect",{x:"330",y:"210",width:"100",height:"30"}),x.jsx("rect",{x:"450",y:"210",width:"75",height:"30"}),x.jsx("rect",{x:"540",y:"210",width:"130",height:"30"}),x.jsx("rect",{x:"690",y:"210",width:"75",height:"30"})]}),exports.ContentLoaderPopupChooseStore=()=>x.jsxs(Nv,{height:80,width:600,speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:[x.jsx("rect",{x:"0",y:"0",rx:"5",ry:"5",width:"172",height:"34"}),x.jsx("rect",{x:"178",y:"0",rx:"5",ry:"5",width:"172",height:"34"}),x.jsx("rect",{x:"356",y:"0",rx:"5",ry:"5",width:"100",height:"34"}),x.jsx("rect",{x:"462",y:"0",rx:"5",ry:"5",width:"100",height:"34"}),x.jsx("rect",{x:"0",y:"40",rx:"5",ry:"5",width:"172",height:"34"}),x.jsx("rect",{x:"178",y:"40",rx:"5",ry:"5",width:"100",height:"34"}),x.jsx("rect",{x:"284",y:"40",rx:"5",ry:"5",width:"140",height:"34"}),x.jsx("rect",{x:"430",y:"40",rx:"5",ry:"5",width:"100",height:"34"})]}),exports.ContentLoaderPopupLinkedListing=()=>x.jsxs(Nv,{height:270,width:800,speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:[x.jsx("rect",{x:"15",y:"25",width:"425",height:"15"}),x.jsx("rect",{x:"490",y:"25",width:"150",height:"15"}),x.jsx("rect",{x:"670",y:"25",width:"95",height:"15"}),x.jsx("rect",{x:"15",y:"60",rx:"8",ry:"8",width:"30",height:"30"}),x.jsx("rect",{x:"60",y:"60",width:"380",height:"30"}),x.jsx("rect",{x:"490",y:"60",width:"150",height:"30"}),x.jsx("rect",{x:"670",y:"60",width:"95",height:"30"}),x.jsx("rect",{x:"15",y:"110",rx:"8",ry:"8",width:"30",height:"30"}),x.jsx("rect",{x:"60",y:"110",width:"380",height:"30"}),x.jsx("rect",{x:"490",y:"110",width:"150",height:"30"}),x.jsx("rect",{x:"670",y:"110",width:"95",height:"30"}),x.jsx("rect",{x:"15",y:"160",rx:"8",ry:"8",width:"30",height:"30"}),x.jsx("rect",{x:"60",y:"160",width:"380",height:"30"}),x.jsx("rect",{x:"490",y:"160",width:"150",height:"30"}),x.jsx("rect",{x:"670",y:"160",width:"95",height:"30"}),x.jsx("rect",{x:"15",y:"210",rx:"8",ry:"8",width:"30",height:"30"}),x.jsx("rect",{x:"60",y:"210",width:"380",height:"30"}),x.jsx("rect",{x:"490",y:"210",width:"150",height:"30"}),x.jsx("rect",{x:"670",y:"210",width:"95",height:"30"})]}),exports.ContentLoaderPopupListOrder=()=>x.jsx(Yv,{children:x.jsxs(Nv,{speed:1,width:840,height:255,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{width:"100%",maxWidth:"840px",minWidth:"800px"},children:[x.jsx("rect",{x:"20",y:"25",rx:"2",ry:"2",width:"25",height:"22"}),x.jsx("rect",{x:"55",y:"20",rx:"2",ry:"2",width:"32",height:"32"}),x.jsx("rect",{x:"97",y:"20",rx:"2",ry:"2",width:"250",height:"32"}),x.jsx("rect",{x:"620",y:"20",rx:"2",ry:"2",width:"170",height:"32"}),x.jsx("rect",{x:"800",y:"20",rx:"2",ry:"2",width:"25",height:"22"}),x.jsx("rect",{x:"60",y:"80",rx:"2",ry:"2",width:"200",height:"20"}),x.jsx("rect",{x:"440",y:"80",rx:"2",ry:"2",width:"90",height:"20"}),x.jsx("rect",{x:"560",y:"80",rx:"2",ry:"2",width:"90",height:"20"}),x.jsx("rect",{x:"680",y:"80",rx:"2",ry:"2",width:"90",height:"20"}),x.jsx("rect",{x:"60",y:"130",rx:"2",ry:"2",width:"200",height:"20"}),x.jsx("rect",{x:"440",y:"130",rx:"2",ry:"2",width:"90",height:"20"}),x.jsx("rect",{x:"560",y:"130",rx:"2",ry:"2",width:"90",height:"20"}),x.jsx("rect",{x:"680",y:"130",rx:"2",ry:"2",width:"90",height:"20"}),x.jsx("rect",{x:"20",y:"210",rx:"2",ry:"2",width:"25",height:"22"}),x.jsx("rect",{x:"55",y:"205",rx:"2",ry:"2",width:"32",height:"32"}),x.jsx("rect",{x:"97",y:"205",rx:"2",ry:"2",width:"250",height:"32"}),x.jsx("rect",{x:"620",y:"205",rx:"2",ry:"2",width:"170",height:"32"}),x.jsx("rect",{x:"800",y:"205",rx:"2",ry:"2",width:"25",height:"22"})]})}),exports.ContentLoaderPopupPaymentReceive=()=>x.jsx(Yv,{children:x.jsxs(Nv,{speed:1,width:1e3,height:340,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{width:"100%",maxWidth:"1000px",minWidth:"800px"},children:[x.jsx("rect",{x:"40",y:"20",rx:"2",ry:"2",width:"80",height:"21"}),x.jsx("rect",{x:"40",y:"51",rx:"2",ry:"2",width:"260",height:"30"}),x.jsx("rect",{x:"40",y:"110",rx:"2",ry:"2",width:"80",height:"21"}),x.jsx("rect",{x:"320",y:"110",rx:"2",ry:"2",width:"80",height:"21"}),x.jsx("rect",{x:"40",y:"141",rx:"2",ry:"2",width:"260",height:"30"}),x.jsx("rect",{x:"320",y:"141",rx:"2",ry:"2",width:"260",height:"30"}),x.jsx("rect",{x:"55",y:"200",rx:"2",ry:"2",width:"220",height:"30"}),x.jsx("rect",{x:"320",y:"200",rx:"2",ry:"2",width:"260",height:"30"}),x.jsx("rect",{x:"55",y:"245",rx:"2",ry:"2",width:"220",height:"30"}),x.jsx("rect",{x:"320",y:"245",rx:"2",ry:"2",width:"260",height:"30"}),x.jsx("rect",{x:"55",y:"290",rx:"2",ry:"2",width:"220",height:"30"}),x.jsx("rect",{x:"320",y:"290",rx:"2",ry:"2",width:"260",height:"30"})]})}),exports.ContentLoaderPopupPaymentReceived=()=>x.jsx(Yv,{children:x.jsxs(Nv,{speed:1,width:1e3,height:300,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{width:"100%",maxWidth:"1000px",minWidth:"800px"},children:[x.jsx("rect",{x:"60",y:"20",rx:"2",ry:"2",width:"100",height:"21"}),x.jsx("rect",{x:"60",y:"51",rx:"2",ry:"2",width:"280",height:"36"}),x.jsx("rect",{x:"360",y:"20",rx:"2",ry:"2",width:"100",height:"21"}),x.jsx("rect",{x:"360",y:"51",rx:"2",ry:"2",width:"280",height:"36"}),x.jsx("rect",{x:"660",y:"20",rx:"2",ry:"2",width:"100",height:"21"}),x.jsx("rect",{x:"660",y:"51",rx:"2",ry:"2",width:"280",height:"36"}),x.jsx("rect",{x:"52",y:"130",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:"95",y:"130",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"217",y:"130",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"339",y:"130",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"461",y:"130",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"583",y:"130",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"705",y:"130",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"827",y:"130",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"52",y:"170",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:"95",y:"170",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"217",y:"170",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"339",y:"170",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"461",y:"170",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"583",y:"170",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"705",y:"170",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"827",y:"170",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"52",y:"210",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:"95",y:"210",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"217",y:"210",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"339",y:"210",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"461",y:"210",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"583",y:"210",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"705",y:"210",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"827",y:"210",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"52",y:"250",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:"95",y:"250",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"217",y:"250",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"339",y:"250",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"461",y:"250",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"583",y:"250",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"705",y:"250",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"827",y:"250",rx:"2",ry:"2",width:"110",height:"31"})]})}),exports.ContentLoaderPopupPicklist=()=>x.jsx(Yv,{children:x.jsxs(Nv,{speed:1,width:1e3,height:340,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{width:"100%",maxWidth:"1000px",minWidth:"800px"},children:[x.jsx("rect",{x:"130",y:"20",rx:"2",ry:"2",width:"100",height:"21"}),x.jsx("rect",{x:"510",y:"20",rx:"2",ry:"2",width:"100",height:"21"}),x.jsx("rect",{x:"130",y:"51",rx:"2",ry:"2",width:"360",height:"36"}),x.jsx("rect",{x:"510",y:"51",rx:"2",ry:"2",width:"360",height:"36"}),x.jsx("rect",{x:"130",y:"110",rx:"2",ry:"2",width:"100",height:"21"}),x.jsx("rect",{x:"510",y:"110",rx:"2",ry:"2",width:"100",height:"21"}),x.jsx("rect",{x:"130",y:"141",rx:"2",ry:"2",width:"360",height:"36"}),x.jsx("rect",{x:"510",y:"141",rx:"2",ry:"2",width:"360",height:"36"}),x.jsx("rect",{x:"52",y:"200",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:"95",y:"200",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"217",y:"200",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"339",y:"200",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"461",y:"200",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"583",y:"200",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"705",y:"200",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"827",y:"200",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"52",y:"240",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:"95",y:"240",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"217",y:"240",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"339",y:"240",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"461",y:"240",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"583",y:"240",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"705",y:"240",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"827",y:"240",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"52",y:"280",rx:"2",ry:"2",width:"31",height:"31"}),x.jsx("rect",{x:"95",y:"280",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"217",y:"280",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"339",y:"280",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"461",y:"280",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"583",y:"280",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"705",y:"280",rx:"2",ry:"2",width:"110",height:"31"}),x.jsx("rect",{x:"827",y:"280",rx:"2",ry:"2",width:"110",height:"31"})]})}),exports.ContentLoaderPopupReadyToShip=()=>x.jsx(Yv,{children:x.jsxs(Nv,{speed:1,width:900,height:255,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{width:"100%",maxWidth:"900px",minWidth:"800px"},children:[x.jsx("rect",{x:"20",y:"25",rx:"2",ry:"2",width:"25",height:"22"}),x.jsx("rect",{x:"55",y:"20",rx:"2",ry:"2",width:"32",height:"32"}),x.jsx("rect",{x:"97",y:"20",rx:"2",ry:"2",width:"250",height:"32"}),x.jsx("rect",{x:"500",y:"20",rx:"2",ry:"2",width:"170",height:"32"}),x.jsx("rect",{x:"680",y:"20",rx:"2",ry:"2",width:"170",height:"32"}),x.jsx("rect",{x:"860",y:"20",rx:"2",ry:"2",width:"25",height:"22"}),x.jsx("rect",{x:"20",y:"70",rx:"2",ry:"2",width:"25",height:"22"}),x.jsx("rect",{x:"55",y:"65",rx:"2",ry:"2",width:"32",height:"32"}),x.jsx("rect",{x:"97",y:"65",rx:"2",ry:"2",width:"250",height:"32"}),x.jsx("rect",{x:"500",y:"65",rx:"2",ry:"2",width:"170",height:"32"}),x.jsx("rect",{x:"680",y:"65",rx:"2",ry:"2",width:"170",height:"32"}),x.jsx("rect",{x:"860",y:"65",rx:"2",ry:"2",width:"25",height:"22"}),x.jsx("rect",{x:"20",y:"115",rx:"2",ry:"2",width:"25",height:"22"}),x.jsx("rect",{x:"55",y:"110",rx:"2",ry:"2",width:"32",height:"32"}),x.jsx("rect",{x:"97",y:"110",rx:"2",ry:"2",width:"250",height:"32"}),x.jsx("rect",{x:"500",y:"110",rx:"2",ry:"2",width:"170",height:"32"}),x.jsx("rect",{x:"680",y:"110",rx:"2",ry:"2",width:"170",height:"32"}),x.jsx("rect",{x:"860",y:"110",rx:"2",ry:"2",width:"25",height:"22"}),x.jsx("rect",{x:"20",y:"160",rx:"2",ry:"2",width:"25",height:"22"}),x.jsx("rect",{x:"55",y:"155",rx:"2",ry:"2",width:"32",height:"32"}),x.jsx("rect",{x:"97",y:"155",rx:"2",ry:"2",width:"250",height:"32"}),x.jsx("rect",{x:"500",y:"155",rx:"2",ry:"2",width:"170",height:"32"}),x.jsx("rect",{x:"680",y:"155",rx:"2",ry:"2",width:"170",height:"32"}),x.jsx("rect",{x:"860",y:"155",rx:"2",ry:"2",width:"25",height:"22"}),x.jsx("rect",{x:"20",y:"205",rx:"2",ry:"2",width:"25",height:"22"}),x.jsx("rect",{x:"55",y:"200",rx:"2",ry:"2",width:"32",height:"32"}),x.jsx("rect",{x:"97",y:"200",rx:"2",ry:"2",width:"250",height:"32"}),x.jsx("rect",{x:"500",y:"200",rx:"2",ry:"2",width:"170",height:"32"}),x.jsx("rect",{x:"680",y:"200",rx:"2",ry:"2",width:"170",height:"32"}),x.jsx("rect",{x:"860",y:"200",rx:"2",ry:"2",width:"25",height:"22"})]})}),exports.ContentLoaderPopupStoreSelect=()=>x.jsx(Yv,{children:x.jsx(Nv,{speed:1,width:325.5,height:30,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:x.jsx("rect",{x:"0",y:"0",rx:"5",ry:"5",width:"325.5",height:"30"})})}),exports.ContentLoaderPosProductDetail=()=>x.jsxs(Nv,{speed:1,width:"100%",height:580,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:[x.jsx("rect",{x:"0",y:"0",rx:"0",ry:"0",width:"100%",height:"198"}),x.jsx("rect",{x:"0",y:"214",rx:"0",ry:"0",width:"100%",height:"16"}),x.jsx("rect",{x:"0",y:"240",rx:"0",ry:"0",width:"100%",height:"16"}),x.jsx("rect",{x:"0",y:"266",rx:"0",ry:"0",width:"100%",height:"16"}),x.jsx("rect",{x:"0",y:"292",rx:"0",ry:"0",width:"100%",height:"16"}),x.jsx("rect",{x:"0",y:"318",rx:"0",ry:"0",width:"100%",height:"40"}),x.jsx("rect",{x:"0",y:"368",rx:"0",ry:"0",width:"100%",height:"16"}),x.jsx("rect",{x:"0",y:"394",rx:"0",ry:"0",width:"100%",height:"16"}),x.jsx("rect",{x:"0",y:"420",rx:"0",ry:"0",width:"100%",height:"16"}),x.jsx("rect",{x:"0",y:"456",rx:"0",ry:"0",width:"100px",height:"16"}),x.jsx("rect",{x:"0",y:"480",rx:"0",ry:"0",width:"100%",height:"94"})]}),exports.ContentLoaderPromotionHover=()=>x.jsxs(Nv,{height:151,width:"100%",speed:1,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:[x.jsx("rect",{x:"0",y:"4",rx:"0",ry:"0",width:"135",height:"14"}),x.jsx("rect",{x:"150",y:"4",rx:"0",ry:"0",width:"140",height:"14"}),x.jsx("rect",{x:"0",y:"32",rx:"0",ry:"0",width:"135",height:"14"}),x.jsx("rect",{x:"150",y:"32",rx:"0",ry:"0",width:"140",height:"14"}),x.jsx("rect",{x:"0",y:"60",rx:"0",ry:"0",width:"135",height:"14"}),x.jsx("rect",{x:"150",y:"60",rx:"0",ry:"0",width:"140",height:"14"}),x.jsx("rect",{x:"0",y:"88",rx:"0",ry:"0",width:"135",height:"14"}),x.jsx("rect",{x:"150",y:"88",rx:"0",ry:"0",width:"140",height:"14"}),x.jsx("rect",{x:"0",y:"116",rx:"0",ry:"0",width:"135",height:"14"}),x.jsx("rect",{x:"150",y:"116",rx:"0",ry:"0",width:"140",height:"14"}),x.jsx("rect",{x:"150",y:"132",rx:"0",ry:"0",width:"140",height:"14"})]}),exports.ContentLoaderReportingDashboard=()=>x.jsx(Vv,{children:x.jsxs(Nv,{speed:1,width:$v,height:500,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:[x.jsx("rect",{x:"10",y:"10",rx:"2",ry:"2",width:"210",height:"25"}),x.jsx("rect",{x:"10",y:"60",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"10",y:"95",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"10",y:"130",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"10",y:"165",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"10",y:"200",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"10",y:"235",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"10",y:"270",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"10",y:"305",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"280",y:"10",rx:"2",ry:"2",width:"210",height:"25"}),x.jsx("rect",{x:"280",y:"60",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"280",y:"95",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"280",y:"130",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"280",y:"165",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"280",y:"200",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"280",y:"235",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"280",y:"270",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"280",y:"305",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"550",y:"10",rx:"2",ry:"2",width:"210",height:"25"}),x.jsx("rect",{x:"550",y:"60",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"550",y:"95",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"550",y:"130",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"550",y:"165",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"550",y:"200",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"550",y:"235",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"550",y:"270",rx:"2",ry:"2",width:"210",height:"20"}),x.jsx("rect",{x:"550",y:"305",rx:"2",ry:"2",width:"210",height:"20"})]})}),exports.ContentLoaderSetting=()=>x.jsxs(Nv,{speed:1,width:"100%",height:550,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,children:[x.jsx("rect",{x:"0",y:"0",rx:"2",ry:"2",width:"125",height:"15"}),x.jsx("rect",{x:"0",y:"25",rx:"2",ry:"2",width:"620",height:"25"}),x.jsx("rect",{x:"0",y:"60",rx:"2",ry:"2",width:"450",height:"25"}),x.jsx("rect",{x:"0",y:"110",rx:"2",ry:"2",width:"125",height:"15"}),x.jsx("rect",{x:"0",y:"135",rx:"2",ry:"2",width:"620",height:"25"}),x.jsx("rect",{x:"0",y:"170",rx:"2",ry:"2",width:"450",height:"25"}),x.jsx("rect",{x:"0",y:"220",rx:"2",ry:"2",width:"125",height:"15"}),x.jsx("rect",{x:"0",y:"245",rx:"2",ry:"2",width:"620",height:"25"}),x.jsx("rect",{x:"0",y:"280",rx:"2",ry:"2",width:"450",height:"25"}),x.jsx("rect",{x:"0",y:"330",rx:"2",ry:"2",width:"125",height:"15"}),x.jsx("rect",{x:"0",y:"355",rx:"2",ry:"2",width:"450",height:"80"}),x.jsx("rect",{x:"0",y:"460",rx:"2",ry:"2",width:"125",height:"15"}),x.jsx("rect",{x:"0",y:"485",rx:"2",ry:"2",width:"450",height:"80"}),x.jsx("rect",{x:"0",y:"585",rx:"2",ry:"2",width:"125",height:"15"}),x.jsx("rect",{x:"0",y:"610",rx:"2",ry:"2",width:"170",height:"25"}),x.jsx("rect",{x:"180",y:"610",rx:"2",ry:"2",width:"170",height:"25"}),x.jsx("rect",{x:"0",y:"645",rx:"2",ry:"2",width:"170",height:"25"}),x.jsx("rect",{x:"180",y:"645",rx:"2",ry:"2",width:"170",height:"25"}),x.jsx("rect",{x:"0",y:"695",rx:"2",ry:"2",width:"125",height:"15"}),x.jsx("rect",{x:"0",y:"720",rx:"2",ry:"2",width:"450",height:"25"}),x.jsx("rect",{x:"0",y:"755",rx:"2",ry:"2",width:"400",height:"25"})]}),exports.ContentLoaderTableList=()=>{const e=zv-96,t=Math.floor(($v-110)/120),n=Math.floor((e-20)/50);return x.jsx(Rv,{children:x.jsx(Nv,{speed:1,width:$v,height:e,backgroundColor:"rgb(0,0,0)",foregroundColor:"rgb(0,0,0)",backgroundOpacity:.06,foregroundOpacity:.12,style:{position:"relative",zIndex:"2"},children:Array.apply(0,Array(n)).map(((e,n)=>{const r=n+50*(n+1)-30;return Array.apply(0,Array(t)).map(((e,t)=>{const i=t+120*(t+1)-65;return x.jsx("rect",{x:i,y:r,rx:"2",ry:"2",width:100,height:0===n?16:30},t)}))}))})})},exports.CreateContainer=tb,exports.CreateHeaderWrapper=nb,exports.CreateToolWrapper=rb,exports.DateComponent=Ob,exports.DateTimeComponent=({dateTimeData:e})=>{const t=Tx(e,"YYYY-MM-DD HH:mm:ss ZZ").format("D MMM YYYY,"),n=Tx(e,"YYYY-MM-DD HH:mm:ss ZZ").format("hh:mm A");return x.jsx(Lb,{children:e?x.jsxs(x.Fragment,{children:[x.jsx("span",{children:t}),x.jsx("span",{children:n})]}):"-"})},exports.DateWrapper=Ny,exports.DetailItem=Qy,exports.DetailItemAction=Zy,exports.DetailItemInfo=qy,exports.DetailItemTitle=Xy,exports.DetailItemWrapper=Uy,exports.DetailList=zy,exports.DetailPanelWrapper=Jy,exports.DetailWrapper=Vy,exports.DropDownComponent=t=>{var{children:n,title:r,subTitle:i,$externalWidth:a,$externalMinWidth:o,$internalWidth:s,$area:c,$openPosition:d,$placement:u,$top:p,onClick:h,$alias:g,type:f,portalId:m,$bottom:y}=t,b=l(t,["children","title","subTitle","$externalWidth","$externalMinWidth","$internalWidth","$area","$openPosition","$placement","$top","onClick","$alias","type","portalId","$bottom"]);const v=e.useRef(null),w=()=>{const e=document.getElementsByClassName("_refContainer is-shown")[0];if(e){const t=e.getBoundingClientRect(),n=document.querySelector(`#${m} ._refDropdownPortal`);if(n){const e=n.querySelector("._refDropdownWrapper"),r=t.left+t.width-e.getBoundingClientRect().width;n.style.left=(r>0?r:t.left)+"px",n.style.top=t.top+parseInt(p||"0")-32+"px"}}},C=()=>{const e=document.getElementsByClassName("_refContainer is-shown"),t=document.getElementsByTagName("BODY")[0];if(e.length){t.classList.remove("is-immuned");for(let t=0;t<e.length;t++){e[t].querySelector("._refDropdownOverlay").style.display="none",e[t].classList.remove("is-shown")}}const n=document.querySelector("._refScrollContainer");n&&n.removeEventListener("scroll",w,!0),setTimeout((()=>{if(m){const e=document.getElementsByClassName("_refDropdownPortal is-shown");if(e.length)for(let t=0;t<e.length;t++)e[t].style.left="0",e[t].style.top="0",e[t].classList.remove("is-shown")}}),10)},k=e=>{const t=v.current;if(t){const n=e.target.closest(`.${t.classList[0]}`);if(!n)return;const r=n.closest("._refContainer"),i=document.getElementsByTagName("BODY")[0];if(r){const t=r.querySelector("._refDropdownOverlay"),n=r.classList.contains("is-shown"),a=r.getBoundingClientRect();n?(t.style.display="none",i.classList.remove("is-immuned"),r.classList.remove("is-shown"),setTimeout((()=>{if(m){const e=document.querySelector(`#${m} ._refDropdownPortal`),t=document.querySelector("._refScrollContainer"),n=e.querySelector("._refDropdownWrapper");e&&(e.classList.remove("is-shown"),e.style.left="0px",e.style.top="0px",n&&t&&t.removeEventListener("scroll",w,!0))}}),10)):(C(),t.style.display="block",i.classList.add("is-immuned"),r.classList.add("is-shown"),setTimeout((()=>{if(m){const e=document.querySelector(`#${m} ._refDropdownPortal`),t=document.querySelector("._refScrollContainer"),n=e.querySelector("._refDropdownWrapper");e&&(a&&(n?setTimeout((()=>{n.style.right="auto";const r=a.left+a.width-n.getBoundingClientRect().width;e.style.left=(r>0?r:a.left)+"px",e.style.top=a.top+parseInt(p||"0")-32+"px",e.style.zIndex="8",t&&t.addEventListener("scroll",w,!0)}),10):(e.style.left=a.left+(parseInt(s||"0")+a.width)/2+"px",e.style.top=a.top+a.height+"px")),e.classList.add("is-shown"))}}),10),h&&h(e))}}};e.useEffect((()=>(setTimeout((()=>{const e=document.querySelectorAll("._refDropdownPortal._refHover");for(let t of e)t&&t.addEventListener("mouseenter",(e=>{const t=e.target;t.classList.add("is-shown"),t.classList.add("unhiddenable")})),t&&t.addEventListener("mouseleave",(e=>{const t=e.target;t.classList.remove("is-shown"),t.classList.remove("unhiddenable"),t.style.left="0",t.style.top="0"}))}),1),()=>{const e=document.querySelectorAll("._refDropdownPortal._refHover");for(let t of e)t&&t.removeEventListener("mouseenter",(e=>{const t=e.target;t.classList.add("is-shown"),t.classList.add("unhiddenable")}),!0),t&&t.removeEventListener("mouseleave",(e=>{const t=e.target;t.classList.remove("is-shown"),t.classList.remove("unhiddenable"),t.style.left="0",t.style.top="0"}),!0)})),[m]);const I=i?x.jsx(Le,{children:i}):null,A=r?x.jsxs(Oe,{children:[r," ",I]}):null,S=n.filter((t=>e.isValidElement(t)?"control"===t.props["aria-label"]:null)),j=S&&e.isValidElement(S[0])?"hover"===f?x.jsxs(Te,{children:[x.jsx(Me,Object.assign({className:"_refDropdownControl"},m&&{onMouseEnter:e=>{const t=v.current;if(t){const n=e.target.closest(`.${t.classList[0]}`);if(!n)return;const r=document.querySelectorAll("._refDropdownPortal");for(const e of r)e.classList.remove("is-shown"),e.style.left="0",e.style.top="0";const i=n.closest("._refContainer");if(i){const e=i.getBoundingClientRect(),t=document.querySelector(`#${m} ._refDropdownPortal`);if(t){if(e){t.style.left=e.left+(parseInt(s||"0")+e.width)/2+"px";let n=e.top+e.height;const r=t.querySelector("._refDropdownWrapper");r&&(r.style.display="block",n+r.clientHeight>=document.body.clientHeight&&(n=e.top-r.clientHeight-10)),t.style.top=n+"px"}t.classList.add("is-shown")}}}},onMouseLeave:e=>{const t=v.current;if(t){if(!e.target.closest(`.${t.classList[0]}`))return;setTimeout((()=>{const e=document.querySelector(`#${m} ._refDropdownPortal`);e&&!e.classList.contains("unhiddenable")&&(e.classList.remove("is-shown"),e.style.left="0",e.style.top="0")}),150)}}},{children:S[0].props.children})),x.jsx(Me,{className:"_refDropdownControlMobile",ref:v,onClick:k,children:S[0].props.children})]}):x.jsx(Me,{ref:v,onClick:k,children:S[0].props.children}):null,D=n.filter((t=>e.isValidElement(t)?"body"===t.props["aria-label"]:null)),E=D&&e.isValidElement(D[0])?x.jsx(_e,{$area:c,children:D[0].props.children}):null,M=n.filter((t=>e.isValidElement(t)?"action"===t.props["aria-label"]:null)),T=M&&e.isValidElement(M[0])?x.jsx(Pe,{$position:M[0].props["data-position"],className:M[0].props.className,children:M[0].props.children}):null,N=x.jsxs(De,Object.assign({className:"_refDropdownWrapper"},s&&{$internalWidth:s},p&&{$top:p},d&&{$openPosition:d},u&&{$placement:u},y&&{$bottom:y},{children:[A,E,T]}));return x.jsxs(Ne,Object.assign({className:"_refContainer "+(f?`_refContainer${f}`:"")},a&&{$externalWidth:a},o&&{$externalMinWidth:o},c&&{$area:c},p&&{$top:p},g&&{$alias:g},d&&{$openPosition:d},u&&{$placement:u},y&&{$bottom:y},b,{children:[j,x.jsx(Ee,{className:"_refDropdownOverlay",onClick:()=>{C()}}),m?x.jsx(je,{wrapperId:m,children:x.jsx(Be,{className:"_refDropdownPortal "+("hover"===f?"_refHover":""),children:N})}):N]}))},exports.DropdownAction=Py,exports.DropdownItem=_y,exports.DropdownList=Ly,exports.DropdownTitle=Oy,exports.ErrorComponent=ap,exports.FigureWraper=Qx,exports.FilterButton=Gy,exports.FilterColumnContainer=bb,exports.FilterContainer=Iy,exports.FilterItem=Ry,exports.FilterList=By,exports.FilterListTitle=Fy,exports.FilterWrapper=Dy,exports.FoContainer=Wx,exports.FormContainer=Dv,exports.HeaderContainer=Lx,exports.IconComponent=Se,exports.IconDot=Wy,exports.ImageComponent=ha,exports.InfoGroup=Vx,exports.InitialContainer=Zx,exports.InputComponent=se,exports.InputGroup=$x,exports.InputOTPComponent=e=>{var{otpLength:t=6,value:n,onChange:r}=e,i=l(e,["otpLength","value","onChange"]);const a=e=>{var i;const a=e.target,o=a.value,s=a.dataset.index?parseInt(a.dataset.index):0;if(""===o||/^\d$/.test(o)){let e=n.split("");e[s]=o;const a=e.join("");r(a),""!==o&&s<t-1&&(null===(i=document.getElementById(`otp-inputbox-${s+1}`))||void 0===i||i.focus())}},o=e=>{var t;const r=e.target,i=r.dataset.index?parseInt(r.dataset.index):0;"Backspace"===e.key&&!n[i]&&i>0&&(null===(t=document.getElementById("otp-inputbox-"+(i-1)))||void 0===t||t.focus())};let s=[];for(let e=0;e<t;e++)s.push(x.jsx(oe,Object.assign({"data-index":e,id:`otp-inputbox-${e}`,name:`otp-input-${e}`,autoComplete:"one-time-code",inputMode:"numeric",required:!0,value:n[e]||"",onChange:e=>a(e),onKeyDown:e=>o(e),onFocus:e=>{e.target.addEventListener("wheel",(function(e){e.preventDefault()}),{passive:!1}),e.target.select()}},i),e));return x.jsx("div",{onPaste:e=>{e.preventDefault();const n=e.clipboardData.getData("Text").replace(/\D/g,"").slice(0,t);r(n)},children:s})},exports.InputRefComponent=le,exports.IsNumeric=z,exports.ItemPriceLabel=sy,exports.ItemTable=My,exports.LabelComponent=e=>{var{children:t,$mode:n,$position:r}=e,i=l(e,["children","$mode","$position"]);return x.jsx(ve,Object.assign({$mode:n,$position:r},i,{children:t}))},exports.LeftPanelContainer=Kx,exports.LinkComponent=P,exports.LinkContainer=ky,exports.ListAddItemContainer=lb,exports.ListComponent=e=>{var{children:t,$mode:n,$selected:r,$type:i}=e,a=l(e,["children","$mode","$selected","$type"]);return x.jsx(Sv,Object.assign({$mode:n,$selected:r,$type:i},a,{children:t}))},exports.ListContainer=Rx,exports.ListTable=Ty,exports.ListTableContainer=Ey,exports.LoadingComponent=ke,exports.MasterTableActionWrapper=qx,exports.MasterTableComponent=t=>{const{evOpenPopup:n,headerColumns:r,data:i,setData:a,resultPopup:o,setResultPopup:s,type:l,evCreateMessageQuestion:c,evCreateMessage:d,autoCopy:u,setAutoCopy:p,isRemovable:h=!0,isForceUpdate:g,setForceUpdate:f}=t,[m,y]=e.useState(!1),[b,w]=e.useState();e.useEffect((()=>{const e=()=>{const e=document.querySelector("._refResizeContainer");if(e){const t=document.querySelector("._refMasterTableViewport"),n=e.offsetHeight,r=document.querySelector("._refHeaderContainer"),i=r?r.offsetHeight:0;t&&(t.style.height=`calc(100vh - ${n+i+12}px)`)}};return e(),window.addEventListener("resize",e,!0),()=>{window.removeEventListener("resize",e,!0)}}),[]);const C=W(l||"");e.useEffect((()=>{const e=document.querySelector("#master-clone"),t=e?e.innerHTML:"";if((null==i?void 0:i.length)&&!t){const t=document.querySelector("._refMasterTableViewport"),n=document.querySelector("._refMasterTableHeaderClone");let r=0,i=0,a=!1;t&&t.addEventListener("scroll",(e=>{const o=t.offsetWidth-t.clientWidth,s=t.scrollLeft;i!==o&&(n.style.width=parseInt(n.style.width)+o+"px"),a||(window.requestAnimationFrame((()=>{r!==s&&(n.style.left="-"+s+"px"),a=!1,r=s})),a=!0),i=o}),{passive:!0}),e.innerHTML="true"}}),[i]);const k=55,I=h?55:0;let A=0,S=0;for(const e of r.filter((e=>!(null==e?void 0:e.isHidden))))"colGroup"===e.type&&(S+=e.width),A+=e.width;A+=k+I+1,S+=k;const j=(e,t,n,r)=>{const o="category"===(null==e?void 0:e.condition)?"Array":e.typeData||"String",s=J(o,t),c="category"===(null==e?void 0:e.condition)?K(e,s,(null==e?void 0:e.condition[0].toUpperCase())+(null==e?void 0:e.condition.substring(1))):K(e,s);if(n>=0){let t=[...i],o=t[n];if(r&&r>=0)if("putaway-inbound"===l){let t=o.locations[r];const n=e.key.replace("locations-","");t[n]=s,c.approved?delete t[n+"_error"]:t[n+"_error"]=c.errors[0],o.locations.splice(r,1,t)}else{let t=o.variants[r];const n=e.key.replace("variants-",""),i=o.variants.length;if("options-option"===n||"options-type"===n){const a=-1!==e.name.indexOf("1")?0:1,l="options-option"===n?"option":"type";if("type"===l){let e=[];for(let t=0;t<i;t++){let n=o.variants[t];if(n.options[a][l]=s,`${l}_error`in n.options[a]&&delete n.options[a][`${l}_error`],n.options.length>1){const e=0===a?1:0;`${l}_error`in n.options[e]&&delete n.options[e][`${l}_error`],s.toLowerCase()===n.options[e].type.toLowerCase()&&(n.options[a][`${l}_error`]="Variant type is duplicate")}e.push(n)}o.variants=e}else t.options[a][l]=s,c.approved?delete t.options[a][l+"_error"]:t.options[a][l+"_error"]=c.errors[0],o.variants.splice(r,1,t)}else t[n]=s,c.approved?delete t[n+"_error"]:t[n+"_error"]=c.errors[0],o.variants.splice(r,1,t)}else if("category"===(null==e?void 0:e.condition)){if(-1!==e.key.indexOf("listing")&&o.listing){const t=o.listing.findIndex((t=>t.accountId===e.value));if(t>=0){let n=[...o.listing],r=n[t];r[e.condition]=s,c.approved?delete r[e.condition+"_error"]:r[e.condition+"_error"]=c.errors[0],n.splice(t,1,r),o.listing=n}}}else o[e.key]=s,c.approved?delete o[e.key+"_error"]:o[e.key+"_error"]=c.errors[0];t.splice(n,1,o),a(t),e.bare&&c.approved&&f&&f(!0)}},D=e=>{const t=e.target,n=Z("confirm",`Are you sure you want to remove ${"create-paymentreceive"===l?"invoice":"product"}?`,"",(()=>{let e=[...i];const n=t=>{var n;if(!u)return!1;let r=[...u];for(const i of t){const t=Object.assign({},e[i]),a=t.category,o=r.reduce(((e,t,n)=>e.concat(t.category===a?n:[])),[]);if(o.length)for(const e of o)if(e>=0){let i=null===(n=r[e])||void 0===n?void 0:n.copy;if(i){const e=i.findIndex((e=>e.id===t.id));e>=0&&i.splice(e,1)}}}p&&p(r),b&&w(void 0)},r=e=>{const t=document.getElementById("listing-data");t&&!t.innerHTML&&(t.innerText=JSON.stringify(e))};if("bulk"===(t.dataset.type||"")){let t=document.querySelectorAll("[name='checkbox-list']:checked"),i=[];for(let e=0;e<t.length;e++){const n=t[e],r=n.dataset.key?parseInt(n.dataset.key):0;i.push(r)}const o=e.filter(((e,t)=>-1===i.indexOf(t)));"listing"===C?(n(i),a(o,(e=>r(e)))):a(o),_()}else{const i=t.closest(".cell-trash"),o=i.dataset.idx?parseInt(i.dataset.idx):null,s=i.dataset.row?parseInt(i.dataset.row):null;if(null!==o)if("listing"===C)n([o]),e.splice(o,1),a(e,(e=>r(e)));else if("master"===C){let t=Object.assign({},e[o]);if(null==t?void 0:t.variants)if(1===t.variants.length)e.splice(o,1);else{let n=[...t.variants];s&&n.splice(s,1),t.variants=n,e.splice(o,1,t)}else e.splice(o,1);a(e)}else if("putaway-inbound"===l){let t=Object.assign({},e[o]);if(null==t?void 0:t.locations)if(1===t.locations.length)e.splice(o,1);else{let n=[...t.locations];s&&n.splice(s,1),t.locations=n,e.splice(o,1,t)}else e.splice(o,1);a(e)}else e.splice(o,1),a(e)}}));c&&c(n)},E=e=>{const t=document.querySelectorAll("[name='checkbox-list']:checked").length,n=document.querySelector("._refMasterTableBulkWrapper"),r=n.getElementsByTagName("span");r&&(r[0].innerHTML=`${t} selected`),t>0?n.classList.add("is-active"):n.classList.remove("is-active")},M=e=>{const t=e.target.checked,n=document.querySelectorAll("[name='checkbox-list']");if(null==n?void 0:n.length)for(let e=0;e<n.length;e++){const r=n[e],i=r.closest(".cell-checkbox"),a=r.closest("._refMasterTableBodyContent");t?(i&&i.classList.add("isChecked"),a&&a.classList.add("is-highlighted")):(i&&i.classList.remove("isChecked"),a&&a.classList.remove("is-highlighted")),r.checked=t}else{const t=X("warning","No Products Selected");d&&d(t),e.target.checked=!1,y(!1)}E()},T=e=>{const t=e.target,n=t.checked,r=document.querySelectorAll("[name='checkbox-selectAll']"),i=t.closest(".cell-checkbox"),a=t.closest("._refMasterTableBodyContent");!n&&(null==r?void 0:r.length)&&r.forEach((e=>e.checked&&(e.checked=!1))),n?(i&&i.classList.add("isChecked"),a&&a.classList.add("is-highlighted")):(i&&i.classList.remove("isChecked"),a&&a.classList.remove("is-highlighted")),E()},N="stock"===C?66:82,O=(e,t,r,i,a,c,d)=>{const u=c||N,p=e=>{const t=document.getElementById("cur-key");document.querySelectorAll(".cell-editing").forEach((e=>e.classList.remove("cell-editing"))),t&&(t.innerHTML=""),e&&e()};let h;switch(t.fieldType){case"image":h=x.jsx(yv,{head:t,value:r,height:u,evOpenPopup:n,idx:e,variantIdx:a,evChange:j,resultPopup:o,setResultPopup:s,error:i,evCloseEditor:p});break;case"textarea":h=x.jsx(Iv,{head:t,value:r,height:u,idx:e,variantIdx:a});break;case"select":h=t.bare?x.jsx(wv,{head:t,value:r,idx:e,variantIdx:a,evChange:j,error:i,content:d,isForceUpdate:g,setForceUpdate:f}):x.jsx(vv,{head:t,value:r,height:u,idx:e,variantIdx:a,evChange:j,error:i,evCloseEditor:p});break;case"tag":h=x.jsx(kv,{head:t,value:r,height:u,evOpenPopup:n,idx:e,variantIdx:a,evChange:j,resultPopup:o,setResultPopup:s,evCloseEditor:p});break;case"label":h=x.jsx(bv,{head:t,value:r,height:u,idx:e,evOpenPopup:n,content:d,type:l,variantIdx:a});break;case"switch":h=x.jsx(Cv,{head:t,value:r,idx:e,variantIdx:a,evChange:j,evCloseEditor:p});break;case"date":h=t.bare?x.jsx(fv,{head:t,value:r,idx:e,variantIdx:a,evChange:j,error:i,isForceUpdate:g,setForceUpdate:f}):x.jsx(gv,{head:t,value:r,height:u,idx:e,variantIdx:a,evChange:j,error:i,evCloseEditor:p});break;default:h=t.bare?x.jsx(xv,{head:t,content:d,value:r,height:u,idx:e,variantIdx:a,evChange:j,error:i,type:l,isForceUpdate:g,setForceUpdate:f}):x.jsx(mv,{head:t,value:r,height:u,idx:e,variantIdx:a,evChange:j,error:i,evCloseEditor:p,content:d})}return h},L=e=>{const t=e.target.dataset.key||"",n=r.findIndex((e=>e.key===t));if(n>=0){const e=r[n],o=document.querySelector("[name='checkbox-selectAll']"),s=document.querySelectorAll("[name='checkbox-list']:checked"),l=!o.checked&&s.length?`Clear to selected products (${s.length})`:"Clear all products",d=Z("confirm","Are you sure you want to clear this column?","By clearing data, you can't undo this action.",(()=>{const n="validations"in e?K(e,""):{approved:!0},r=t.split("-"),l=r[0],c=r[1],d="Boolean"!==e.typeData&&"";let u=[...i];if("stock"===C){const e=u.map((e=>{let r=e;return t&&(r[t]=d,n.approved?delete r[t+"_error"]:r[t+"_error"]=n.errors[0]),r}));a(e)}else if(!o.checked&&s.length){for(let e=0;e<s.length;e++){const t=s[e],r=t.dataset.key?parseInt(t.dataset.key):null;if(null!==r){let e=u[r];if(c){const t=e[l].map((e=>{const t=e;return t[c]=d,n.approved?delete t[c+"_error"]:t[c+"_error"]=n.errors[0],t}));e[l]=t}else e[l]=d,n.approved?delete e[l+"_error"]:e[l+"_error"]=n.errors[0];u.splice(r,1,e)}}a(u)}else{const e=u.map((e=>{let t=e;if(c){const e=t[l].map((e=>{const t=e;return t[c]=d,n.approved?delete t[c+"_error"]:t[c+"_error"]=n.errors[0],t}));t[l]=e}else t[l]=d,n.approved?delete t[l+"_error"]:t[l+"_error"]=n.errors[0];return t}));a(e)}}),l);c&&c(d)}},_=e.useCallback((()=>{const e=document.querySelectorAll("[name='checkbox-selectAll']");setTimeout((()=>{e.forEach((e=>e.checked&&(e.checked=!1)))}),10);const t=document.querySelectorAll("[name='checkbox-list']:checked");if(null==t?void 0:t.length)for(let e=0;e<t.length;e++){const n=t[e],r=n.closest(".cell-checkbox"),i=n.closest("._refMasterTableBodyContent");r&&r.classList.remove("isChecked"),i&&i.classList.remove("is-highlighted"),n.checked=!1}m&&y(!1)}),[m]);e.useEffect((()=>{if(o&&"edit"in o){const e=o.edit.key,t=o.edit.value,n=e.split("-"),r=n[0],l=n[1],c=document.querySelector("[name='checkbox-selectAll']"),d=document.querySelectorAll("[name='checkbox-list']:checked");let u=[...i];if(!c.checked&&d.length){for(let e=0;e<d.length;e++){const n=d[e],i=n.dataset.key?parseInt(n.dataset.key):null;if(null!==i){let e=u[i];if(l){const n=e[r].map((e=>{const n=e;return n[l]=t,delete n[l+"_error"],n}));e[r]=n}else e[r]="",delete e[r+"_error"];u.splice(i,1,e)}}a(u)}else{const e=u.map((e=>{let n=e;if(l){const e=n[r].map((e=>{const n=e;return n[l]=t,delete n[l+"_error"],n}));n[r]=e}else n[r]="",delete n[r+"_error"];return n}));a(e)}s&&s(null)}}),[o,s,i,a,C,l,r]);const B=r.filter((e=>e.isMassEditable||e.isMassClearable)).length>0,R=(e,t,r,a,o,s)=>(null==e?void 0:e.length)?x.jsxs(Jb,{className:""+(s?"_refMasterTableHeaderClone":"_refMasterTableHeader"),style:{width:s&&o||"100%"},children:[x.jsxs(Kb,{children:[x.jsx("div",{className:"headerCell headerCell-Checkbox",style:{width:t},children:h?x.jsx(he,{onClick:M,name:"checkbox-selectAll",id:""+(s?"checkbox-selectAll-clone":"checkbox-selectAll")}):null},0),e.filter((e=>!(null==e?void 0:e.isHidden))).map(((e,t)=>{var n;return x.jsxs("div",{className:"headerCell "+(e.icon||e.initial?"headerCell-img":""),"data-key":e.key,style:{width:e.width},children:[e.icon?x.jsx(ha,{width:"24px",src:e.icon,alt:e.name}):e.initial?x.jsx(Zx,{className:"initial-wrapper",style:{width:"24px",height:"24px",backgroundColor:(null==e?void 0:e.color)||"#000000",fontSize:"10px"},children:e.initial}):null,x.jsxs("header",{className:"multi-elipsis",title:e.name,children:[e.name,(null===(n=null==e?void 0:e.validations)||void 0===n?void 0:n.required)&&x.jsx(v,{$color:"red",style:{display:"inline",lineHeight:"normal"},children:"*"}),(null==e?void 0:e.tip)&&x.jsx(Se,{$name:"question",$width:"12px","data-tip":e.tip,"data-place":"top","data-multiline":!0})]})]},t+1)})),h?x.jsx("div",{className:"headerCell headerCell-trash",style:{width:r}},e.length+("picklist"===C?2:1)):null]}),B&&(null==i?void 0:i.length)?x.jsxs(qx,{children:[x.jsx("div",{className:"actionCell",style:{width:t}}),e.filter((e=>!(null==e?void 0:e.isHidden))).map(((e,t)=>x.jsx("div",{className:"actionCell",style:{width:e.width},children:x.jsxs(lv,{children:[e.isMassEditable&&x.jsx(P,{mode:"clear",title:"Bulk Edit","data-popup":"table-mass-edit","data-detail":JSON.stringify({title:"Bulk Edit",head:e}),onClick:n,children:"Edit"}),e.isMassClearable&&x.jsx(P,{mode:"clear",title:"Bulk Clear","data-key":e.key,onClick:L,children:"Clear"})]})},t+1))),h?x.jsx("div",{className:"actionCell",style:{width:r}},e.length+("picklist"===C?2:1)):null]}):null]}):null;return console.log(i,"dataTable"),x.jsxs(x.Fragment,{children:[R(r,k,I,0,A,!0),x.jsxs(Zb,{children:[x.jsx(qb,{children:x.jsx(Qb,{className:"_refMasterTableViewport",$mode:l||"create-master",children:x.jsxs(Ub,{className:"_refMasterTableCanvas",style:{width:A},children:[R(r,k,I),x.jsx(ev,{className:"_refMasterTableBody",children:(null==i?void 0:i.length)?"putaway-inbound"===l?x.jsx(pv,{data:i,heightContent:N,firstHeaderColumnsWidth:k,evCheckbox:T,headerColumns:r,switchEditor:O,totalColGroupWidth:S,lastHeaderColumnsWidth:I,evRemove:D,type:l,isRemovable:h}):x.jsx(hv,{data:i,firstHeaderColumnsWidth:k,evCheckbox:T,headerColumns:r,switchEditor:O,lastHeaderColumnsWidth:I,evRemove:D,type:l,isRemovable:h}):null})]})})}),x.jsxs("section",{className:"_refContainer",children:[x.jsxs(Xx,{className:"_refMasterTableBulkWrapper",children:[x.jsx(Se,{className:"_refBulkCloseButton",$name:"cross",$width:"16px",onClick:e=>{e.persist(),_()}}),x.jsx("span",{children:"0 Selected"}),x.jsxs(xe,{$mode:"red",$shadow:!0,"data-type":"bulk",onClick:D,children:["Remove ","create-paymentreceive"===l?"Invoice":"Product"]})]}),x.jsx("div",{className:"_refDropdownOverlay",onClick:()=>{document.querySelector("._refDropdownOverlay").style.display="none";document.getElementsByTagName("BODY")[0].classList.remove("is-immuned")}})]})]}),x.jsx("div",{id:"master-clone",className:"hidden"})]})},exports.MenuList=e=>x.jsx(Mc.MenuList,Object.assign({},e,{children:e.children})),exports.MessageComponent=({timer:t=500,$type:n,message:r,callback:i})=>{const[a,o]=Ge.useStateWithCallbackLazy(!1),[s,l]=Ge.useStateWithCallbackLazy(!1),[c,d]=Ge.useStateWithCallbackLazy(!1),u=e.useCallback((()=>{d(!c,(()=>{document.getElementsByTagName("BODY")[0].classList.remove("is-immuned"),i&&i()}))}),[i,d,c]),p=e.useCallback((()=>{u()}),[u]);return e.useEffect((()=>{const e=t||2e3,n=document.querySelector("._refMessageOverlay");return a||c?a&&c&&(o&&o(!a,(()=>{})),l&&l(!s,(()=>{})),n&&n.removeEventListener("click",p)):o(!a,(()=>{n&&n.addEventListener("click",p),setTimeout((()=>{l(!s,(()=>{setTimeout((()=>!s&&u()),e)}))}),1)})),()=>{n&&n.removeEventListener("click",p)}}),[a,s,t,u,o,l,p,c]),x.jsxs(Ve,{$isOpen:a,children:[x.jsx(He,{className:"_refMessageOverlay"}),x.jsx(ze,{children:x.jsx($e,{$isOpen:s,children:x.jsxs(Xe,{$type:n,children:[x.jsx("i",{}),r,x.jsx(xe,{$mode:"small-white-round-close",onClick:u})]})})})]})},exports.MessageQuestionComponent=({$type:t,title:n,subtitle:r,callback:i,buttonSubmit:a,cancelCallback:o})=>{const[s,l]=Ge.useStateWithCallbackLazy(!1),[c,d]=Ge.useStateWithCallbackLazy(!1),[u,p]=Ge.useStateWithCallbackLazy(!1),h=e.useCallback((()=>{p(!u,(()=>{o&&o();document.getElementsByTagName("BODY")[0].classList.remove("is-immuned")}))}),[o,u,p]),g=e.useCallback((()=>{h()}),[h]);return e.useEffect((()=>{const e=document.querySelector("._refQuestionMessageOverlay");s||u?s&&u&&(l(!s,(()=>{})),d(!c,(()=>{})),e&&e.removeEventListener("click",g)):l(!s,(()=>{setTimeout((()=>{d(!c,(()=>{})),e&&e.addEventListener("click",g)}),1)}))}),[s,c,l,d,g,u]),x.jsxs(Ve,{$isOpen:s,children:[x.jsx(He,{className:"_refQuestionMessageOverlay",$type:t}),x.jsx(ze,{$type:t,children:x.jsx($e,{$isOpen:c,children:x.jsxs(Xe,{$type:t,children:[x.jsx("i",{}),x.jsxs("div",{children:[x.jsx(v,{$elipsis:!1,style:{fontWeight:600,fontSize:"15px"},children:n}),x.jsx(v,{$color:"grey",$elipsis:!1,children:Ji(r)}),x.jsxs("aside",{children:[x.jsx(xe,{$mode:"white",$size:"small",onClick:h,children:"Cancel"}),x.jsx(xe,{$mode:"red",$size:"small",onClick:()=>{p(!u,(()=>{document.getElementsByTagName("BODY")[0].classList.remove("is-immuned"),i&&i()}))},children:a||"Confirm"})]})]})]})})})]})},exports.MultiPanelContainer=Jx,exports.MuteLabel=Hx,exports.NameLabel=cy,exports.NavChildItem=xb,exports.NavList=gb,exports.NavMainItem=fb,exports.NavMainItemWrapper=mb,exports.NavMobileOverlay=hb,exports.PageButton=by,exports.PageDot=wy,exports.PageLabel=vy,exports.PageWrapper=yy,exports.PaginationContainer=xy,exports.PanelBody=Ux,exports.PanelContainer=Bx,exports.PanelWrapper=Px,exports.PopupAddProductContainer=db,exports.PopupBoxWrapper=Ky,exports.PopupCard=ub,exports.PopupComponent=t=>{var{children:n,body:r,mode:i,height:a,width:o,isOpen:s,evTooglePopup:c}=t,d=l(t,["children","body","mode","height","width","isOpen","evTooglePopup"]);const[u,p]=Ge.useStateWithCallbackLazy(!1),h=e.useRef(null),g=e.useCallback((e=>{ca=setTimeout((()=>{p(e,(()=>{const e=h&&h.current?h.current:null;e&&(e.scrollTop=0)})),clearTimeout(ca)}),1)}),[p]),f=e.useRef({init:()=>{g(s)}});e.useEffect((()=>{const{init:e}=f.current;return e(),()=>{clearTimeout(ca)}}),[]),e.useEffect((()=>{g(s)}),[s,g]);let m=[...n];const y=(null==m?void 0:m.filter((t=>e.isValidElement(t)&&"head"===t.props["aria-label"])))||null,b=(null==m?void 0:m.filter((t=>e.isValidElement(t)&&"sub-head"===t.props["aria-label"])))||null,v=(null==m?void 0:m.filter((t=>e.isValidElement(t)&&"body"===t.props["aria-label"])))||null,w=(null==m?void 0:m.filter((t=>e.isValidElement(t)&&"foot"===t.props["aria-label"])))||null,C=(null==m?void 0:m.filter((t=>e.isValidElement(t)&&"left-foot"===t.props["aria-label"])))||null,k=b.length?x.jsx("aside",{children:b[0]&&e.isValidElement(b[0])?b[0].props.children:null}):null,I=y.length&&y[0]&&e.isValidElement(y[0])?y[0].props["data-qa-id"]:"";return x.jsxs(ea,{$isOpen:s,children:[x.jsx(ta,{}),x.jsx(na,Object.assign({ref:h},d["data-qa-id"]&&{"data-qa-id":d["data-qa-id"]},{children:"question"===i?x.jsx(ra,{$isOpen:u,children:x.jsxs(la,{$width:o,children:[x.jsx(Se,{$name:"warning",$width:"30px"}),x.jsxs(ia,{$mode:i,children:[y.length?x.jsx(aa,{children:y[0]&&e.isValidElement(y[0])?y[0].props.children:null}):null,k,w.length?x.jsx(sa,{children:w[0]&&e.isValidElement(w[0])?x.jsx("aside",{"data-type":w[0].props.type||"",children:w[0].props.children}):null}):null]})]})}):x.jsxs(x.Fragment,{children:[x.jsx(ia,{$width:o,$isOpen:u,$mode:i,children:y.length?x.jsxs(x.Fragment,{children:[x.jsx(xe,{$mode:"round-close",onClick:c}),x.jsx(aa,{"data-qa-id":I,children:y[0]&&e.isValidElement(y[0])&&y[0].props.children})]}):null}),x.jsxs(ra,{$width:o,$isOpen:u,$withHeader:!!y.length,children:[k,v.length?x.jsx(oa,{$mode:r,$width:o,$height:a,children:v[0]&&e.isValidElement(v[0])&&v[0].props.children}):null,w.length?x.jsxs(sa,{$isLeft:!!C.length,children:[x.jsx("aside",{children:C&&C.length&&C[0]&&e.isValidElement(C[0])?C[0].props.children:null}),w[0]&&e.isValidElement(w[0])?x.jsxs("aside",{"data-type":w[0].props.type||"",children:[i&&"info"===i?x.jsx(xe,{$mode:"white",$size:"small",onClick:c,children:"Close"}):x.jsx(xe,{$mode:"white",$size:"small",onClick:c,"data-qa-id":"popup-button-cancel",children:"Cancel"}),w[0].props.children]}):null]}):null]})]})}))]})},exports.PopupDownloadWrapper=eb,exports.PopupExportCardWrapper=pb,exports.RadioComponent=e=>{var{children:t,$mode:n,evChange:r}=e,i=l(e,["children","$mode","evChange"]);const{id:a}=i;return x.jsx(_b,{children:x.jsxs("label",{htmlFor:a,children:[x.jsx(Bb,Object.assign({type:"radio",id:a,$mode:n,onChange:e=>{r&&r(e)}},i)),x.jsx(Pb,Object.assign({$mode:n},i["data-qa-id"]&&{"data-qa-id":i["data-qa-id"]},{children:t}))]})})},exports.RightPanelContainer=ey,exports.ScrollArrowContainer=vb,exports.SearchDropdownContainer=ib,exports.SearchFilterContainer=Ay,exports.SearchFormWrapper=ty,exports.SearchResultItem=sb,exports.SearchResultList=ob,exports.SearchResultWrapper=ab,exports.SearchWrapper=Sy,exports.SearchWrapperPopup=cb,exports.SelectComponent=rp,exports.SingleFormContainer=Ev,exports.SortByWrapper=Yy,exports.SwitchComponent=Wb,exports.TableColumnGroup=oy,exports.TableHeadLabel=ny,exports.TableHeadWrapper=ry,exports.TableItemColumn=gy,exports.TableItemWrapper=fy,exports.TableLabel=ly,exports.TableRightGroup=ay,exports.TableRowGroup=iy,exports.TabsContainer=Fx,exports.TabsContent=Gx,exports.TabsHeader=dy,exports.TabsItem=uy,exports.TabsList=py,exports.TabsWrapper=hy,exports.TextAreaComponent=vp,exports.TextAreaRefComponent=wp,exports.TextComponent=v,exports.Title=_x,exports.TotalLabel=yb,exports.UploadComponent=e=>{var{children:t,mode:n}=e,r=l(e,["children","mode"]);const{id:i,width:a}=r;return"image"===n?x.jsxs(x.Fragment,{children:[t,x.jsx(up,Object.assign({},"data-idx"in r&&{"data-idx":r["data-idx"]},r["data-detail"]&&{"data-detail":r["data-detail"]},r))]}):x.jsxs(sp,{$width:a,children:[x.jsxs(lp,{htmlFor:i,children:[x.jsx(dp,{}),x.jsx(cp,{children:t})]}),x.jsx(up,Object.assign({},"data-idx"in r&&{"data-idx":r["data-idx"]},r["data-detail"]&&{"data-detail":r["data-detail"]},r))]})},exports.UploadDragDropComponent=t=>{var{children:n,id:r,name:i,evChange:a,evCreateMessage:o}=t,s=l(t,["children","id","name","evChange","evCreateMessage"]);const{accept:c}=s,[d,u]=e.useState(!1),p=e=>{e.preventDefault(),e.stopPropagation(),"dragenter"===e.type||"dragover"===e.type?u(!0):"dragleave"===e.type&&u(!1)};return x.jsxs(pp,{onDragEnter:p,className:d?"drag-active":"",children:[x.jsx(up,Object.assign({id:r,name:i,onChange:e=>{e.preventDefault();const t=e.target;t.files&&t.files[0]&&a&&a(t.files)}},s)),x.jsx(hp,{id:"label-file-dragdrop-upload",htmlFor:r,children:x.jsx(fp,{children:n?x.jsxs(xp,{children:[x.jsx(yp,{}),x.jsx("span",{children:n})]}):x.jsxs(mp,{children:["Drag & Drop file here to upload, or ",x.jsx("span",{children:"browse"}),"."]})})}),d&&x.jsx(gp,{onDragEnter:p,onDragLeave:p,onDragOver:p,onDrop:e=>{if(e.preventDefault(),e.stopPropagation(),u(!1),e.dataTransfer.files[0]){const t=c?c.split(",").map((e=>e.trim().replace(".",""))):null;for(let n=0;n<e.dataTransfer.files.length;n++){const r=e.dataTransfer.files[n].name.split(".").pop();if((null==t?void 0:t.length)&&r&&!t.includes(r)){const e=X("failed","File type is not allowed. Please check again");return o&&o(e),!1}}a&&a(e.dataTransfer.files)}}})]})},exports.abbreviateNumber=e=>{let t="";if(void 0!==e&&(t=e.toString(),e>=1e3)){const n=["","k","m","b","t"],r=Math.floor((""+e).length/3);let i;for(let t=2;t>=1;t--){i=parseFloat((0!==r?e/Math.pow(1e3,r):e).toPrecision(t));if((i+"").replace(/[^a-zA-Z 0-9]+/g,"").length<=2)break}t=i+n[r]}return t},exports.boxBase=S,exports.capitalize=e=>e?e[0].toUpperCase()+e.substring(1):"",exports.channelMap=e=>({2:"Shopify",3:"Lazada",5:"Blanja",6:"Matahari mall",7:"Magento 1",8:"Elevania",9:"Blibli","1o":"Magento 2",11:"Bukalapak",12:"Shopee",13:"Zalora Indonesia",15:"Tokopedia",16:"JD Indonesia",18:"Zilingo",19:"Woocommerce",21:"Manual SO",3532:"Aladin Mall",10017:"Grabmart",10030:"Tiktok"}[e.toString()]||""),exports.clearList=w,exports.colorCommonQuantity=V,exports.colorStatus=e=>{switch(e){case"Pending_payment":case"Pending_courier":case"pending payment":case"Pending Payment":case"pending courier":case"not started yet":case"Pending":case"Draft":case"Not_picked":case"Not Picked":case"Unpaid":case"Overdue":case"Write_off":case"Write Off":case"write off":case"Written Off":case"Failed Delivery":case"failed delivery":return"#FF585C";case"Open":case"open":case"In_picking":case"Partial_picked":case"in picking":case"In Picking":case"Incoming":case"not shipped":case"Not Shipped":case"Partial_paid":return"#F8813E";case"Picked":case"picked":case"Packed":case"Ready_to_ship":case"ready to ship":case"Ready to Ship":case"Ready_to_pickup":case"Shipped":case"shipped":case"Fulfilled":case"Delivered":case"delivered":case"Picked_up":case"Invoiced":case"Not_invoiced":case"Invoice_paid":case"Completed":case"completed":case"Paid":case"In Progress":case"Active":case"Confirmed":case"Adjusted":return"#21BA45";case"Cancelled":case"cancelled":case"Voided":return"#a9a9a9";case"Returned":case"return":case"Return":return"#ff585d";case"Closed":return"#2c913d";default:return"green"}},exports.colorStockAdjust=(e,t)=>e<t?"lightgreen":"red",exports.colorStockInboundQuantity=e=>["Inbounded","Incompleted","Putaway"].includes(e)?"lightgreen":"yellow",exports.colorStockInboundStatus=e=>{switch(e){case"inbounded":case"Inbounded":case"incompleted":case"Incompleted":case"Incomplete":case"putaway":case"Putaway":return"#21BA45";case"waiting-inbound":case"Waiting Inbound":case"partial-inbounded":case"Partial Inbounded":case"partial-putaway":case"Partial Putaway":return"#F8813E";default:return"#696969"}},exports.colorStockQuantity=(e,t)=>e===t?"lightgreen":"red",exports.colorStockStatus=e=>{switch(e){case"success":case"approved":case"putaway":case"adjusted":case"Adjusted":case"outbounded":case"Outbounded":return"#21BA45";case"waiting":case"waiting adjustment":case"Waiting Adjustment":case"waiting outbound":case"Waiting Outbound":return"#F8813E";default:return"#696969"}},exports.components=Mc,exports.configDateRange=Xv,exports.currencyNumber=q,exports.dateRangeStatus=e=>({today:"Today",lastweek:"Last 7 days",lastsecondweek:"Last 14 days",lastmonth:"Last 30 days",lastquart:"Last 90 days",custom:"Date"}[e]),exports.debounce=H,exports.dropBase=j,exports.elipsis=k,exports.errorMessage=e=>"unique"===e?"already exists":"is required",exports.errorTitle=Y,exports.evCheckAllValidation=e=>{let t=!1;for(let n=0;n<e.length;n++){const r=e[n],i=Object.keys(r);for(let e of i){if(Array.isArray(r[e]))for(let n=0;n<r[e].length;n++){const i=r[e][n],a=Object.keys(i);for(let e of a){if(Array.isArray(i[e]))for(let n=0;n<i[e].length;n++){const r=i[e][n],a=Object.keys(r);for(let e of a)if(-1===e.indexOf("_error")||t||(t=!0),t)break;if(t)break}else if(-1===e.indexOf("_error")||t||(t=!0),t)break;if(t)break}if(t)break}else if(-1===e.indexOf("_error")||t||(t=!0),t)break;if(t)break}}return t},exports.evExecuteError=e=>{const t=X("failed","Validation Errors found, Please fix it!");e&&e(t);const n=document.querySelectorAll(".cell-error");n.length&&te(n[0])},exports.evGenerateValueMatch=(e,t)=>{let n;if(e&&Object.keys(e).length){const r=["lessEqual","greaterEqual","less","greater"].find((t=>t in e));if(t&&r){const i=e[r];i&&i in t&&(n=t[i])}}return n},exports.evHighlight=e=>{if(!(null==e?void 0:e.length))return;const t=10*Math.ceil(e.length/10)<=10?30:10*Math.ceil(e.length/10)>=200?200:10*Math.ceil(e.length/10);setTimeout((()=>{const t=document.querySelectorAll("._refMasterTableBodyContent.is-highlighted");if(null==t?void 0:t.length)for(const e of t)e.classList.remove("is-highlighted");for(let t=0;t<e.length;t++){const n=e[t],r=document.querySelector(`#row-${n}`);if(r&&(r.classList.add("is-highlighted"),setTimeout((()=>{r.classList.remove("is-highlighted")}),1888)),t===e.length-1){const t=document.querySelector(`#row-${e[0]}`);t&&te(t,140)}}}),t)},exports.evKeyMapperScanner=e=>{var t=e.which;switch(!0){case t>=48&&t<=90:case t>=106&&t<=111||45===t||173===t||189===t:if(void 0!==e.key&&""!==e.key)return e.key;var n=String.fromCharCode(t);switch(e.shiftKey){case!1:n=n.toLowerCase();break;case!0:n=n.toUpperCase()}return n;case t>=96&&t<=105:return t-96+0}return""},exports.evScrollTo=te,exports.evUpdateInputRc=(e,t)=>{var n;if(!e)return!1;const r=null===(n=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"))||void 0===n?void 0:n.set;r&&r.call(e,void 0===t?"":t);const i=new Event("input",{bubbles:!0});e.dispatchEvent(i)},exports.formLabel=E,exports.formatNumber=$,exports.generateMessage=X,exports.generateMessageQuestion=Z,exports.generateValue=J,exports.generateValueTable=U,exports.getSizeContainer=Q,exports.getStorage=(e,t="string",n,r="load")=>{let i;switch(null!==sessionStorage.getItem(r)?i=null!==sessionStorage.getItem(e)?sessionStorage.getItem(e):n:(i=null!==localStorage.getItem(e)?localStorage.getItem(e):n,null!==localStorage.getItem(e)&&sessionStorage.setItem(e,i)),t){case"boolean":i=void 0!==i&&"undefined"!==i&&"true"===i;break;case"number":case"integer":i=void 0!==i&&"undefined"!==i?parseInt(i):0;break;case"object":case"array":i=void 0!==i&&"undefined"!==i?JSON.parse(i):void 0;break;default:i=void 0===i||"undefined"===i?"":i}return i},exports.headTable=D,exports.historyType=e=>{if(!e)return"";switch(e){case"Transfer":return"ST";case"Adjustment":case"Adjustment (API)":case"Adjustment (Interface & Excel)":return"SA";case"Inbound":return"SI";case"Outbound":return"SOB";case"Return":return"RMA";case"Sales Order":return"SO";default:return""}},exports.isDesktop=()=>document.body.clientWidth>=1024,exports.isMobile=()=>document.body.clientWidth<768,exports.isTablet=()=>document.body.clientWidth>=768&&document.body.clientWidth<1024,exports.multiElipsis=I,exports.pageMasterTable=W,exports.pasteIntoInput=(e,t)=>{if(e.focus(),"number"==typeof e.selectionStart&&"number"==typeof e.selectionEnd){var n=e.value,r=e.selectionStart;e.value=n.slice(0,r)+t+n.slice(e.selectionEnd),e.selectionEnd=e.selectionStart=r+t.length}else if(void 0!==document.selection){var i=document.selection.createRange();i.text=t,i.collapse(!1),i.select()}},exports.removeStorage=e=>(localStorage.removeItem(e),sessionStorage.removeItem(e),!0),exports.responseWidth=C,exports.setStorage=(e,t,n)=>{if(null==t)return!1;const r="string"!=typeof t?"object"==typeof t?JSON.stringify(t):t.toString():t;switch(n){case"session":sessionStorage.setItem(e,r);break;case"local":localStorage.setItem(e,r);break;default:sessionStorage.setItem(e,r),localStorage.setItem(e,r)}},exports.statusColor=e=>{if(!e)return"";switch(e){case"Picked Up":case"Shipped":case"Delivered":case"Completed":return"green";case"Ready to Ship":case"Not Shipped":return"#F8813E";case"Pending Payment":return"red";default:return""}},exports.thirdElipsis=A,exports.typePage=e=>{if(!e)return"";switch(e){case"adjustment":case"inbound":case"outbound":return"stock";case"bundle":return"bundle";case"sales":return"sales";default:return""}},exports.unCamelCaseKeys=e=>Object.entries(e).reduce(((e,[t,n])=>(e[(e=>e.replace(/([a-z][A-Z])/g,(function(e){return e[0]+"_"+e[1].toLowerCase()})))(t)]=n,e)),{}),exports.unescapeHTML=ee,exports.validateByApproveJs=K;
3553
3590
  //# sourceMappingURL=index.js.map