@unchainedshop/admin-ui 4.6.0 → 4.6.2
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/out/403/index.html +2 -2
- package/out/404/index.html +2 -2
- package/out/404.html +2 -2
- package/out/423/index.html +2 -2
- package/out/500/index.html +2 -2
- package/out/_next/static/{N9Z2SsJs2tDfugfSzn0XU → _wcic5Y3loPdQD9mT3zos}/_buildManifest.js +65 -61
- package/out/_next/static/chunks/0051e9c34432b0c6.js +81 -0
- package/out/_next/static/chunks/04258b01517d0f9e.js +13 -0
- package/out/_next/static/chunks/{2562397db3d3cad1.js → 04afca2441229ae6.js} +8 -8
- package/out/_next/static/chunks/0592edfeb1a20ed1.js +1 -0
- package/out/_next/static/chunks/0644143aefa7f14a.js +2 -0
- package/out/_next/static/chunks/0ce5ae8f9ed0754d.js +14 -0
- package/out/_next/static/chunks/{f98be5df0ea84e80.js → 0d9ed91755412d86.js} +1 -1
- package/out/_next/static/chunks/10bed648b282ce94.js +13 -0
- package/out/_next/static/chunks/118438252cfc0bd0.js +288 -0
- package/out/_next/static/chunks/{f0b4a38f0b700d5b.js → 11cd557e3749cb8b.js} +1 -1
- package/out/_next/static/chunks/146788ff8891517b.js +15 -0
- package/out/_next/static/chunks/157c3fa07e18f5c7.js +12 -0
- package/out/_next/static/chunks/1642b1f34238906c.js +1 -0
- package/out/_next/static/chunks/164ecf9a73b6b4d2.js +5 -0
- package/out/_next/static/chunks/18a777407d3164bc.js +2 -0
- package/out/_next/static/chunks/1b8928b23c220769.js +1 -0
- package/out/_next/static/chunks/1c4ebf0533a6f94b.js +15 -0
- package/out/_next/static/chunks/1ccb09e78f959ee0.js +291 -0
- package/out/_next/static/chunks/1d815b4154fd879c.js +1 -0
- package/out/_next/static/chunks/200d3bc314898b66.js +132 -0
- package/out/_next/static/chunks/22b923c43d3aa7cd.js +50 -0
- package/out/_next/static/chunks/22d51f661194d303.js +14 -0
- package/out/_next/static/chunks/{bea7d18bcfa278cc.js → 23ea2d1feef9e998.js} +2 -2
- package/out/_next/static/chunks/25919830eaf2f4e0.js +1 -0
- package/out/_next/static/chunks/{6450e0b75a6a8e0b.js → 259b3147fc998da8.js} +1 -1
- package/out/_next/static/chunks/25aa5dcd9d2108f9.js +16 -0
- package/out/_next/static/chunks/2bd8be232a656040.js +1 -0
- package/out/_next/static/chunks/2cb02acde7961c0f.js +13 -0
- package/out/_next/static/chunks/2e57a61928767e1c.js +14 -0
- package/out/_next/static/chunks/2f0946cb79a66863.js +101 -0
- package/out/_next/static/chunks/31383dc5ad51cb1a.js +14 -0
- package/out/_next/static/chunks/3180e23f59291e6b.js +1 -0
- package/out/_next/static/chunks/{7ddea44a67e3f4d2.js → 320cc644938eb6e3.js} +63 -63
- package/out/_next/static/chunks/{b6446a534a83781d.js → 322fd29364e46f13.js} +27 -27
- package/out/_next/static/chunks/324869c4943f493c.js +14 -0
- package/out/_next/static/chunks/325bf7748981cb5b.js +46 -0
- package/out/_next/static/chunks/330837992d56bd8a.js +1 -0
- package/out/_next/static/chunks/3313431063047e6d.js +324 -0
- package/out/_next/static/chunks/3398dc70e287e1b3.js +5 -0
- package/out/_next/static/chunks/34cdee51a883e092.js +1 -0
- package/out/_next/static/chunks/{5763a0bcd3a13fa1.js → 36cdb6dcab6e9762.js} +2 -2
- package/out/_next/static/chunks/36d8074195cb4e6d.js +51 -0
- package/out/_next/static/chunks/37a7b0184a6f532d.js +15 -0
- package/out/_next/static/chunks/38200c8cb2429294.js +1 -0
- package/out/_next/static/chunks/{ad8739afcbc536aa.js → 3a187b0dc891f9a3.js} +2 -2
- package/out/_next/static/chunks/3c92e6cdacf97d33.js +50 -0
- package/out/_next/static/chunks/3e3146b28645dbf3.js +1 -0
- package/out/_next/static/chunks/3e3aae833d48534d.js +111 -0
- package/out/_next/static/chunks/3f70b074fe0cb7eb.js +5 -0
- package/out/_next/static/chunks/40753fe032e64b67.js +1 -0
- package/out/_next/static/chunks/41e527773c5dca54.js +71 -0
- package/out/_next/static/chunks/{e08282f87c28d042.js → 422ee02a73e2338c.js} +26 -26
- package/out/_next/static/chunks/43314db8130f3e6e.js +10 -0
- package/out/_next/static/chunks/4555c6599c51b673.js +14 -0
- package/out/_next/static/chunks/46260326ae6424cd.js +18 -0
- package/out/_next/static/chunks/46d78c2426dc6443.js +54 -0
- package/out/_next/static/chunks/46e3a705a7ded479.js +61 -0
- package/out/_next/static/chunks/49c2baa6b1e8134d.js +178 -0
- package/out/_next/static/chunks/4ad2124482cfe6d4.js +12 -0
- package/out/_next/static/chunks/4b4c5d792f1f40cb.js +288 -0
- package/out/_next/static/chunks/4b5f64c67aa70a77.js +1 -0
- package/out/_next/static/chunks/4c5ecbab28345efa.js +1 -0
- package/out/_next/static/chunks/4db79e826af39e32.js +2 -0
- package/out/_next/static/chunks/4f810ce035ebc0e5.js +2 -0
- package/out/_next/static/chunks/4fca6a4e23b2844c.js +8 -0
- package/out/_next/static/chunks/51426d09d291326f.js +8 -0
- package/out/_next/static/chunks/517ea2cf7e5aaa2e.js +1 -0
- package/out/_next/static/chunks/51f135de2961686b.js +11 -0
- package/out/_next/static/chunks/{0ed1db1732820209.js → 52bb95ecf48dacae.js} +3 -3
- package/out/_next/static/chunks/544571f944ab247c.js +7 -0
- package/out/_next/static/chunks/556b12b89f01fbcb.js +13 -0
- package/out/_next/static/chunks/5578242c14928c74.js +87 -0
- package/out/_next/static/chunks/56821b9bd58d6cb5.js +14 -0
- package/out/_next/static/chunks/580f9e5b1548023c.js +13 -0
- package/out/_next/static/chunks/589ba731744b3bbb.js +1 -0
- package/out/_next/static/chunks/59de3ca12ac3e821.js +18 -0
- package/out/_next/static/chunks/5a297caf182b5914.js +2 -0
- package/out/_next/static/chunks/{fe2b047fdc80b492.js → 5a33218a2f2b0467.js} +2 -2
- package/out/_next/static/chunks/5a5a51b65fb24885.js +1 -0
- package/out/_next/static/chunks/5c2f55a0bdd679cc.js +13 -0
- package/out/_next/static/chunks/5c96c3c3f3b16ded.js +1 -0
- package/out/_next/static/chunks/5cc2513eaf268333.js +1 -0
- package/out/_next/static/chunks/5cd7bb2ff39b4594.js +1 -0
- package/out/_next/static/chunks/5d628e503293cd4b.js +61 -0
- package/out/_next/static/chunks/5db2e352e17d133b.js +12 -0
- package/out/_next/static/chunks/5f995b4029a14f92.js +13 -0
- package/out/_next/static/chunks/{5e61314918ab1901.js → 60a7ef230653c6ab.js} +2 -2
- package/out/_next/static/chunks/6107e0ebb413132e.js +23 -0
- package/out/_next/static/chunks/{380087a616841542.js → 618f3339425a898e.js} +26 -26
- package/out/_next/static/chunks/637c63a979962578.js +2 -0
- package/out/_next/static/chunks/63c03aeeb5583d48.js +46 -0
- package/out/_next/static/chunks/{202781ff93ff3a35.js → 643f7bdccb4d0c4e.js} +2 -2
- package/out/_next/static/chunks/6521a6bbf0815a09.js +10 -0
- package/out/_next/static/chunks/65cf017dbb3312cc.js +1 -0
- package/out/_next/static/chunks/667b7b1fe2014cf0.js +8 -0
- package/out/_next/static/chunks/{70fd8910b0212107.js → 67a359f66966c3b0.js} +2 -2
- package/out/_next/static/chunks/67c5ce5ec36405ab.css +1 -0
- package/out/_next/static/chunks/{d2a4c6262906cb68.js → 67e92dca9a322f7b.js} +1 -1
- package/out/_next/static/chunks/6adac061cf13080d.js +20 -0
- package/out/_next/static/chunks/6c8d6408ab346062.js +58 -0
- package/out/_next/static/chunks/6d7135bc7cc257ba.js +144 -0
- package/out/_next/static/chunks/{b22405aa65784fd1.js → 6e8c7417ac98d928.js} +3 -3
- package/out/_next/static/chunks/6f49c454238cc7c0.js +22 -0
- package/out/_next/static/chunks/73125bd35499f96a.js +10 -0
- package/out/_next/static/chunks/{3668ae67081a69e3.js → 73bc279e567cf47d.js} +2 -2
- package/out/_next/static/chunks/73e742a9a5b279c8.js +119 -0
- package/out/_next/static/chunks/75e4c05ea1ac7e7a.js +13 -0
- package/out/_next/static/chunks/76cf755a9c8274a3.js +3 -0
- package/out/_next/static/chunks/{3a32c0d7bf016b19.js → 78521e875384f740.js} +2 -2
- package/out/_next/static/chunks/7a81ae2408cf80e8.js +12 -0
- package/out/_next/static/chunks/7dd567ab82cd0c67.js +5 -0
- package/out/_next/static/chunks/{8907db8e040efe5d.js → 812e693b862919eb.js} +3 -3
- package/out/_next/static/chunks/{2d06af75ece8bc6d.js → 830a68ec7600d76c.js} +5 -5
- package/out/_next/static/chunks/8481204b6f8a478a.js +1 -0
- package/out/_next/static/chunks/8549770725c9379f.js +217 -0
- package/out/_next/static/chunks/{de50b6fcd131b622.js → 87242fd9979883c9.js} +1 -1
- package/out/_next/static/chunks/88af33f57c0d6bbb.js +1 -0
- package/out/_next/static/chunks/89d89a0322d3d849.js +14 -0
- package/out/_next/static/chunks/8a14a9f45c09c6e7.js +1 -0
- package/out/_next/static/chunks/8adb9fe625661098.js +101 -0
- package/out/_next/static/chunks/{48b67c3254c9af38.js → 8b04e2f48fee535f.js} +1 -1
- package/out/_next/static/chunks/8b5e3cc633489785.js +5 -0
- package/out/_next/static/chunks/8b8b53ce0e0b2c59.js +173 -0
- package/out/_next/static/chunks/{c9d2f92c023061f0.js → 8bd64278a3d0f346.js} +5 -5
- package/out/_next/static/chunks/8c2fd033108e6699.js +16 -0
- package/out/_next/static/chunks/{bc4fe1846c66514a.js → 8e16fd1270f0c668.js} +1 -1
- package/out/_next/static/chunks/8ebf7565ecd30de4.js +138 -0
- package/out/_next/static/chunks/91c2986b677e6f2e.js +13 -0
- package/out/_next/static/chunks/94d9a1b6baaf3a0a.js +15 -0
- package/out/_next/static/chunks/9505a3f621b21ccc.js +16 -0
- package/out/_next/static/chunks/958ce42925e8f006.js +2 -0
- package/out/_next/static/chunks/95ed0d70c975eb05.js +46 -0
- package/out/_next/static/chunks/95fec607bcda13f5.js +12 -0
- package/out/_next/static/chunks/9a1a9b771e72016d.js +12 -0
- package/out/_next/static/chunks/{06b009dc933923df.js → 9ab656d1441f1501.js} +4 -4
- package/out/_next/static/chunks/9ed48f5bee6bd1d0.js +8 -0
- package/out/_next/static/chunks/{056c259617500a97.js → a07ce58daa89e354.js} +27 -27
- package/out/_next/static/chunks/a1dd8111f5cda5dc.js +10 -0
- package/out/_next/static/chunks/a2bc6bcbb9fa94be.js +209 -0
- package/out/_next/static/chunks/a346b2c9a094e108.js +1 -0
- package/out/_next/static/chunks/a3ca6fe75e42dad2.js +13 -0
- package/out/_next/static/chunks/a425d2e8aa6de21d.js +22 -0
- package/out/_next/static/chunks/{3c247fb4b62a4c6a.js → a70ec3c3d4e3597c.js} +2 -2
- package/out/_next/static/chunks/aa91d566909ea2b6.js +19 -0
- package/out/_next/static/chunks/aaa96d2f4e5214c0.js +21 -0
- package/out/_next/static/chunks/{08687e11efcba80d.js → aac8a0823d648ca4.js} +1 -1
- package/out/_next/static/chunks/ab7c6442f2d86a59.js +73 -0
- package/out/_next/static/chunks/abe5a686260cec44.js +16 -0
- package/out/_next/static/chunks/ad184b81ac04fa5d.js +88 -0
- package/out/_next/static/chunks/af276dfcea23702d.js +7 -0
- package/out/_next/static/chunks/b041b3cb01e454bf.js +46 -0
- package/out/_next/static/chunks/b07bdb43a436410e.js +15 -0
- package/out/_next/static/chunks/b2bfd5c82b30e902.js +16 -0
- package/out/_next/static/chunks/b316f8dcd77094ea.js +12 -0
- package/out/_next/static/chunks/b46b07c553cbd014.js +1 -0
- package/out/_next/static/chunks/{af772d006fb559cc.js → b5ba366f8cdfe3ea.js} +4 -4
- package/out/_next/static/chunks/b736cf2b052112b7.js +13 -0
- package/out/_next/static/chunks/b76bbba14a9094d0.js +13 -0
- package/out/_next/static/chunks/{d4e8f53e7a153ebf.js → b930222155336289.js} +62 -62
- package/out/_next/static/chunks/b960c3c83b1c4bee.js +1 -0
- package/out/_next/static/chunks/{310f57d562073c82.js → bba59258102b89aa.js} +2 -2
- package/out/_next/static/chunks/bbd0095470e508e7.js +22 -0
- package/out/_next/static/chunks/bc43d7d4b567b5ea.js +1 -0
- package/out/_next/static/chunks/be18fecf33b8aff4.js +2 -0
- package/out/_next/static/chunks/be3b5952132fd7e7.js +471 -0
- package/out/_next/static/chunks/beb4f08114e1ff0b.js +15 -0
- package/out/_next/static/chunks/bf0397bb49e85f73.js +200 -0
- package/out/_next/static/chunks/{58df71393b1870e6.js → c0e233fb74a8f51b.js} +2 -2
- package/out/_next/static/chunks/c56caa89756d142b.js +3 -0
- package/out/_next/static/chunks/c6e9803cbaa52fa6.js +2 -0
- package/out/_next/static/chunks/c88c6cd9171a39a6.js +1 -0
- package/out/_next/static/chunks/cd4b1d554140e38a.js +1 -0
- package/out/_next/static/chunks/ced67effbb174f33.js +100 -0
- package/out/_next/static/chunks/cf22bd7f999c9730.js +1 -0
- package/out/_next/static/chunks/{b2717f6b4d13c00d.js → d211a2fd31fe667b.js} +2 -2
- package/out/_next/static/chunks/{12a85d4b9d6ed551.js → d4099cc5c04e160f.js} +11 -11
- package/out/_next/static/chunks/d5d4fe0c2f022c56.js +90 -0
- package/out/_next/static/chunks/d6d09fbd247f490a.js +60 -0
- package/out/_next/static/chunks/d9f5be23c99d734d.js +1 -0
- package/out/_next/static/chunks/da60c42bca398ee7.js +12 -0
- package/out/_next/static/chunks/db4d5cc8098e3b0d.js +20 -0
- package/out/_next/static/chunks/dc20eb4b7dd7b2f1.js +15 -0
- package/out/_next/static/chunks/{cf751731977de8a7.js → e2ea777b6b52d20c.js} +26 -26
- package/out/_next/static/chunks/e3ec2c067e9e2964.js +1 -0
- package/out/_next/static/chunks/e62d073495404c74.js +1 -0
- package/out/_next/static/chunks/e69610d3fe3adf04.js +137 -0
- package/out/_next/static/chunks/eaa73b979cb8d68d.js +71 -0
- package/out/_next/static/chunks/eb4bc8e8a1250b4e.js +12 -0
- package/out/_next/static/chunks/eb8ddf0005de3e5f.js +1 -0
- package/out/_next/static/chunks/ec3efc144e0cf3a0.js +1 -0
- package/out/_next/static/chunks/ee25b5b16cf2ec57.js +1 -0
- package/out/_next/static/chunks/ee30334e97f8630e.js +44 -0
- package/out/_next/static/chunks/eee53c3540a0175a.js +15 -0
- package/out/_next/static/chunks/f085e07fed389435.js +44 -0
- package/out/_next/static/chunks/f25a3cfe94f73db4.js +13 -0
- package/out/_next/static/chunks/f29010c5dda6d08d.js +14 -0
- package/out/_next/static/chunks/f2f6e1b023b78202.js +15 -0
- package/out/_next/static/chunks/f32b41e426f01f11.js +11 -0
- package/out/_next/static/chunks/f53db7905a0efcb2.js +31 -0
- package/out/_next/static/chunks/f5c06cf49cca7807.js +15 -0
- package/out/_next/static/chunks/fcd4af226ace7c8b.js +13 -0
- package/out/_next/static/chunks/{fbde3f4a69691196.js → fd20130b507a7ded.js} +2 -2
- package/out/_next/static/chunks/fe1fd10dfcaa2cad.js +1 -0
- package/out/_next/static/chunks/ff3dd15001881cd6.js +346 -0
- package/out/_next/static/chunks/ff5993cac4be61a6.js +13 -0
- package/out/_next/static/chunks/ff7c98808140c2aa.js +1 -0
- package/out/_next/static/chunks/ffde1981ac8d3d29.js +1 -0
- package/out/_next/static/chunks/turbopack-01bbc28bc70261a2.js +4 -0
- package/out/_next/static/chunks/turbopack-0a4df64306bcbd12.js +4 -0
- package/out/_next/static/chunks/turbopack-0ec9aa6183ed6e3c.js +4 -0
- package/out/_next/static/chunks/turbopack-14d4e2a748011f59.js +4 -0
- package/out/_next/static/chunks/turbopack-19a5d97c2ac0c85b.js +4 -0
- package/out/_next/static/chunks/turbopack-20733304f94162eb.js +4 -0
- package/out/_next/static/chunks/turbopack-20dadd71668dfd99.js +4 -0
- package/out/_next/static/chunks/turbopack-22a4ab7a695b7d33.js +4 -0
- package/out/_next/static/chunks/turbopack-26720157d7395ef9.js +4 -0
- package/out/_next/static/chunks/turbopack-272beae610cd6a85.js +4 -0
- package/out/_next/static/chunks/turbopack-356d21428d6bcc63.js +4 -0
- package/out/_next/static/chunks/turbopack-35b927ea75c46712.js +4 -0
- package/out/_next/static/chunks/{turbopack-369a26cc44caef3b.js → turbopack-394df10cb72ec1c5.js} +2 -2
- package/out/_next/static/chunks/{turbopack-9cc6b7acb7136339.js → turbopack-398241ba6559f9e2.js} +2 -2
- package/out/_next/static/chunks/turbopack-3a7bb4a358599896.js +4 -0
- package/out/_next/static/chunks/turbopack-3ab2dc185dce2139.js +4 -0
- package/out/_next/static/chunks/turbopack-3ec91a4d50087e1a.js +4 -0
- package/out/_next/static/chunks/turbopack-3fc3303a0ec531f8.js +4 -0
- package/out/_next/static/chunks/turbopack-446407552f5da2f7.js +4 -0
- package/out/_next/static/chunks/turbopack-46b65df8c1477a1e.js +4 -0
- package/out/_next/static/chunks/turbopack-4efbf905da347977.js +4 -0
- package/out/_next/static/chunks/turbopack-534b80abe841801a.js +4 -0
- package/out/_next/static/chunks/turbopack-540befa1d257629c.js +4 -0
- package/out/_next/static/chunks/turbopack-566392526cc91bc7.js +4 -0
- package/out/_next/static/chunks/turbopack-5f1905a3a1f838d0.js +4 -0
- package/out/_next/static/chunks/turbopack-5f1c504dcc7064df.js +4 -0
- package/out/_next/static/chunks/turbopack-69d3d2f6354a7216.js +4 -0
- package/out/_next/static/chunks/turbopack-73185568a38dcbf0.js +4 -0
- package/out/_next/static/chunks/turbopack-803fcde847c5f0ac.js +4 -0
- package/out/_next/static/chunks/turbopack-83a588fbb91bc0ba.js +4 -0
- package/out/_next/static/chunks/turbopack-8868588a7e891f7a.js +4 -0
- package/out/_next/static/chunks/turbopack-91e8d9a7dadcaa65.js +4 -0
- package/out/_next/static/chunks/turbopack-93164539270c8d27.js +4 -0
- package/out/_next/static/chunks/turbopack-9527dfc1e8011448.js +4 -0
- package/out/_next/static/chunks/turbopack-9c525d44ff8c04ec.js +4 -0
- package/out/_next/static/chunks/turbopack-9c5a37dfb2aa0887.js +4 -0
- package/out/_next/static/chunks/turbopack-a0f57e2acedf0a84.js +4 -0
- package/out/_next/static/chunks/turbopack-a60f328eef765118.js +4 -0
- package/out/_next/static/chunks/turbopack-a79367a4a15a358a.js +4 -0
- package/out/_next/static/chunks/turbopack-a7b5fdf11aaa070c.js +4 -0
- package/out/_next/static/chunks/turbopack-a7cb4918a3f5950c.js +4 -0
- package/out/_next/static/chunks/turbopack-a7edb63282d9777f.js +4 -0
- package/out/_next/static/chunks/turbopack-a803ba4c058164c7.js +4 -0
- package/out/_next/static/chunks/{turbopack-a0ba8198cae7c432.js → turbopack-aa3d15949867bd1f.js} +2 -2
- package/out/_next/static/chunks/turbopack-ab5ec2284990b820.js +4 -0
- package/out/_next/static/chunks/turbopack-adc3396fbdf2addd.js +4 -0
- package/out/_next/static/chunks/turbopack-add275c20f4c5f97.js +4 -0
- package/out/_next/static/chunks/turbopack-b122561e017a9274.js +4 -0
- package/out/_next/static/chunks/turbopack-b8014c7253eec832.js +4 -0
- package/out/_next/static/chunks/turbopack-bd24a20dd41588d1.js +4 -0
- package/out/_next/static/chunks/turbopack-c0f1a583ecfd6765.js +4 -0
- package/out/_next/static/chunks/turbopack-c4d1d20785e106aa.js +4 -0
- package/out/_next/static/chunks/turbopack-ccdc6bfa9dc12ff3.js +4 -0
- package/out/_next/static/chunks/turbopack-d0cc2493968e5e1e.js +4 -0
- package/out/_next/static/chunks/turbopack-d6ef4e49b1ea80d5.js +4 -0
- package/out/_next/static/chunks/turbopack-e248c04ef5bc87ea.js +4 -0
- package/out/_next/static/chunks/turbopack-e624be33c21e2398.js +4 -0
- package/out/_next/static/chunks/turbopack-ef156fb0a654a9e7.js +4 -0
- package/out/_next/static/chunks/turbopack-f1b28b068d3e2a2f.js +4 -0
- package/out/_next/static/chunks/turbopack-f86fb6da2f7eccc5.js +4 -0
- package/out/_next/static/chunks/turbopack-f89ba2c35f94946c.js +4 -0
- package/out/_next/static/chunks/turbopack-fbfe3ab8d73b6681.js +4 -0
- package/out/_next/static/chunks/turbopack-fc5549983e046d28.js +4 -0
- package/out/_offline/index.html +2 -2
- package/out/account/forgot-password/index.html +2 -2
- package/out/account/index.html +2 -2
- package/out/assortments/AssortmentDetailPage/index.html +2 -2
- package/out/assortments/index.html +2 -2
- package/out/assortments/new/index.html +2 -2
- package/out/copilot/index.html +2 -2
- package/out/country/CountryDetailPage/index.html +2 -2
- package/out/country/index.html +2 -2
- package/out/country/new/index.html +2 -2
- package/out/currency/CurrencyDetailPage/index.html +2 -2
- package/out/currency/index.html +2 -2
- package/out/currency/new/index.html +2 -2
- package/out/delivery-provider/DeliveryProviderDetailPage/index.html +2 -2
- package/out/delivery-provider/index.html +2 -2
- package/out/delivery-provider/new/index.html +2 -2
- package/out/enrollments/EnrollmentDetailPage/index.html +2 -2
- package/out/enrollments/index.html +2 -2
- package/out/events/EventDetailPage/index.html +2 -2
- package/out/events/index.html +2 -2
- package/out/exports/index.html +11 -0
- package/out/external/index.html +2 -2
- package/out/filters/FilterDetailPage/index.html +2 -2
- package/out/filters/index.html +2 -2
- package/out/filters/new/index.html +2 -2
- package/out/index.html +2 -2
- package/out/install/index.html +2 -2
- package/out/language/LanguageDetailPage/index.html +2 -2
- package/out/language/index.html +2 -2
- package/out/language/new/index.html +2 -2
- package/out/log-in/index.html +2 -2
- package/out/orders/OrderDetailPage/index.html +2 -2
- package/out/orders/index.html +2 -2
- package/out/payment-provider/PaymentProviderDetailPage/index.html +2 -2
- package/out/payment-provider/index.html +2 -2
- package/out/payment-provider/new/index.html +2 -2
- package/out/products/ProductDetailPage/index.html +2 -2
- package/out/products/index.html +2 -2
- package/out/products/new/index.html +2 -2
- package/out/quotations/QuotationDetailPage/index.html +2 -2
- package/out/quotations/index.html +2 -2
- package/out/reset-password/index.html +2 -2
- package/out/sign-up/index.html +2 -2
- package/out/styleguide/index.html +2 -2
- package/out/tokens/TokenDetailPage/index.html +2 -2
- package/out/tokens/index.html +2 -2
- package/out/users/UserDetailPage/index.html +2 -2
- package/out/users/index.html +2 -2
- package/out/users/new/index.html +2 -2
- package/out/verify-email/index.html +2 -2
- package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +2 -2
- package/out/warehousing-provider/index.html +2 -2
- package/out/warehousing-provider/new/index.html +2 -2
- package/out/works/WorkDetailPage/index.html +2 -2
- package/out/works/WorkQueueListView/index.html +2 -2
- package/out/works/index.html +2 -2
- package/out/works/management/index.html +2 -2
- package/package.json +2 -2
- package/out/_next/static/chunks/0096b9e4072ea982.js +0 -87
- package/out/_next/static/chunks/015a12a268d9d8cc.js +0 -13
- package/out/_next/static/chunks/01d02b25e90598b0.js +0 -2
- package/out/_next/static/chunks/01ebe787a8ddd0f8.js +0 -1
- package/out/_next/static/chunks/0411c4be4ed602e6.js +0 -15
- package/out/_next/static/chunks/0454a7068dba9e50.js +0 -13
- package/out/_next/static/chunks/04be98027a2dc21d.js +0 -2
- package/out/_next/static/chunks/04f6e2039ed872b5.js +0 -13
- package/out/_next/static/chunks/054f8ab329a69595.js +0 -1
- package/out/_next/static/chunks/06d6d8bf5f971763.js +0 -23
- package/out/_next/static/chunks/08542b2ec00cf886.js +0 -14
- package/out/_next/static/chunks/09ba49b4ce40eb8d.js +0 -12
- package/out/_next/static/chunks/0a2a08eb8b29ee43.js +0 -1
- package/out/_next/static/chunks/10e6f9a219fd2d59.js +0 -324
- package/out/_next/static/chunks/115ae5cbbc71c47b.js +0 -13
- package/out/_next/static/chunks/11bc210de354e563.js +0 -8
- package/out/_next/static/chunks/132a6033de66c4c2.js +0 -11
- package/out/_next/static/chunks/1393534a6af8c1bb.js +0 -39
- package/out/_next/static/chunks/13ab0c90930f76c0.js +0 -1
- package/out/_next/static/chunks/17a51698889f206f.js +0 -10
- package/out/_next/static/chunks/180f19d81c896a56.js +0 -1
- package/out/_next/static/chunks/1ac3c2ecd12b3c68.js +0 -13
- package/out/_next/static/chunks/1b7969a2d3aaaf50.js +0 -1
- package/out/_next/static/chunks/1bb121543a6f1fbf.js +0 -1
- package/out/_next/static/chunks/1bfc8f4848828752.js +0 -344
- package/out/_next/static/chunks/1c545b91d2677a38.js +0 -260
- package/out/_next/static/chunks/1cbc5bab7320d121.js +0 -15
- package/out/_next/static/chunks/21e1b4ee63219a13.js +0 -12
- package/out/_next/static/chunks/2204d70f62d21522.js +0 -14
- package/out/_next/static/chunks/22e9c8414771b45f.js +0 -19
- package/out/_next/static/chunks/2d638de705f33182.js +0 -7
- package/out/_next/static/chunks/2e1c75c452faae18.js +0 -16
- package/out/_next/static/chunks/2f00317a0dfc6047.js +0 -10
- package/out/_next/static/chunks/2f23acb4a8a11b35.js +0 -44
- package/out/_next/static/chunks/2fe9dad1269d21d5.js +0 -214
- package/out/_next/static/chunks/311d1921e69f7c93.js +0 -7
- package/out/_next/static/chunks/31b59b4652d398c3.js +0 -3
- package/out/_next/static/chunks/33f61aeaa072ceb3.js +0 -16
- package/out/_next/static/chunks/34d24e57d297f025.js +0 -71
- package/out/_next/static/chunks/34df7e31e89a877f.js +0 -178
- package/out/_next/static/chunks/362c1460ecd452f0.js +0 -12
- package/out/_next/static/chunks/398be80b131c086b.js +0 -2
- package/out/_next/static/chunks/3d870a0e339f83b1.js +0 -266
- package/out/_next/static/chunks/44cc864453be04d0.js +0 -5
- package/out/_next/static/chunks/45f599929bd7f34f.js +0 -17
- package/out/_next/static/chunks/4834ec6ac33c6774.js +0 -13
- package/out/_next/static/chunks/4a41bb5444629faa.js +0 -1
- package/out/_next/static/chunks/4e075951daaf40e9.js +0 -11
- package/out/_next/static/chunks/4ea20a695596f02c.js +0 -13
- package/out/_next/static/chunks/52161e2148039530.js +0 -22
- package/out/_next/static/chunks/53f8dde7813ae201.js +0 -119
- package/out/_next/static/chunks/5573e42eb3314f57.js +0 -1
- package/out/_next/static/chunks/5689c09869e48b86.js +0 -1
- package/out/_next/static/chunks/578069c46ce13bdb.js +0 -14
- package/out/_next/static/chunks/589624f7093b23c5.js +0 -12
- package/out/_next/static/chunks/58efb06a97adf57e.js +0 -12
- package/out/_next/static/chunks/5a15295537deba19.js +0 -14
- package/out/_next/static/chunks/5afccd7f3bb23a0e.js +0 -20
- package/out/_next/static/chunks/5b4e690b002be10d.js +0 -101
- package/out/_next/static/chunks/5bcace73a8d9c6b0.js +0 -1
- package/out/_next/static/chunks/5c2c8884164984d7.js +0 -23
- package/out/_next/static/chunks/61794d8ca01e79e1.js +0 -1
- package/out/_next/static/chunks/63420020fcc3c50f.js +0 -1
- package/out/_next/static/chunks/63d4bf210999c12d.js +0 -15
- package/out/_next/static/chunks/674d5880aaf4d35e.js +0 -1
- package/out/_next/static/chunks/689f229f02e92ca8.js +0 -1
- package/out/_next/static/chunks/6a68747a19752b56.js +0 -22
- package/out/_next/static/chunks/6cca5ebda40e4477.js +0 -12
- package/out/_next/static/chunks/6e7adaa6d233dba1.js +0 -46
- package/out/_next/static/chunks/6fdd5525b8653974.js +0 -16
- package/out/_next/static/chunks/7260c9ed446105c3.js +0 -2
- package/out/_next/static/chunks/72d8edce9e613802.js +0 -16
- package/out/_next/static/chunks/72da749fb2eb00ad.js +0 -1
- package/out/_next/static/chunks/76526584207a694c.js +0 -31
- package/out/_next/static/chunks/777412be81d9c33a.js +0 -1
- package/out/_next/static/chunks/7a033fad4428e1bc.js +0 -18
- package/out/_next/static/chunks/7a4db36836cf15f9.js +0 -2
- package/out/_next/static/chunks/7ac7b6f89a6bb9c1.js +0 -51
- package/out/_next/static/chunks/7af6bc3590a522e4.js +0 -288
- package/out/_next/static/chunks/7ca7a803a8676541.js +0 -16
- package/out/_next/static/chunks/80d9123c9f3abb30.js +0 -1
- package/out/_next/static/chunks/8250360d92610891.js +0 -1
- package/out/_next/static/chunks/82599e21825addc9.js +0 -13
- package/out/_next/static/chunks/83619aa5695889d1.js +0 -58
- package/out/_next/static/chunks/838b910ef7e4c0ca.js +0 -1
- package/out/_next/static/chunks/83c4b2c785d33921.js +0 -1
- package/out/_next/static/chunks/844f642223bd65be.js +0 -1
- package/out/_next/static/chunks/8624972bdb99a2c8.js +0 -3
- package/out/_next/static/chunks/88e592fb9134cd52.js +0 -1
- package/out/_next/static/chunks/8a5f559fe8c1c489.js +0 -1
- package/out/_next/static/chunks/8b556a74079aba4f.js +0 -15
- package/out/_next/static/chunks/8cf6faffdff55492.js +0 -2
- package/out/_next/static/chunks/8e8ba9e4c57f576c.js +0 -46
- package/out/_next/static/chunks/8ecf24ee3683d1cf.js +0 -15
- package/out/_next/static/chunks/90989afd6f01d777.js +0 -5
- package/out/_next/static/chunks/967842635197ec2c.js +0 -8
- package/out/_next/static/chunks/9880e45a71e7b384.js +0 -13
- package/out/_next/static/chunks/995de591fb28d84b.js +0 -15
- package/out/_next/static/chunks/99fee86c1d424573.js +0 -15
- package/out/_next/static/chunks/9a9cf63d3876abbe.js +0 -10
- package/out/_next/static/chunks/9ce91f70bbd92b8b.js +0 -177
- package/out/_next/static/chunks/9f17f97b2086d6b1.js +0 -44
- package/out/_next/static/chunks/a58247d14a314bda.js +0 -1
- package/out/_next/static/chunks/a66ae6f06537ef1e.js +0 -138
- package/out/_next/static/chunks/a70681ab87c1e5ed.js +0 -81
- package/out/_next/static/chunks/a82b5e0a9fd2af1b.js +0 -1
- package/out/_next/static/chunks/a8baa1a74b5a4b17.js +0 -3
- package/out/_next/static/chunks/a96e3623312d7877.js +0 -21
- package/out/_next/static/chunks/b08d768b4e6f0b30.js +0 -14
- package/out/_next/static/chunks/b195fa15dd90d90d.js +0 -5
- package/out/_next/static/chunks/b211df15f812738a.js +0 -5
- package/out/_next/static/chunks/b31abd650a827ab7.js +0 -15
- package/out/_next/static/chunks/b34b4902bf5251c6.js +0 -1
- package/out/_next/static/chunks/b35962ad3916f370.js +0 -2
- package/out/_next/static/chunks/b4cf38e8cafd15dd.js +0 -3
- package/out/_next/static/chunks/b60f1005cfaa1e4d.js +0 -46
- package/out/_next/static/chunks/b6529b2854960106.js +0 -50
- package/out/_next/static/chunks/b69969599c4851a5.js +0 -54
- package/out/_next/static/chunks/b953be094d79c77a.js +0 -471
- package/out/_next/static/chunks/ba782714aa359eb3.js +0 -8
- package/out/_next/static/chunks/bd7dffcbba9388ce.js +0 -1
- package/out/_next/static/chunks/c04e3e14bae51ec0.js +0 -101
- package/out/_next/static/chunks/c2dab8d2d4aa1312.js +0 -12
- package/out/_next/static/chunks/c2e4e35e8bcfe434.js +0 -15
- package/out/_next/static/chunks/c4eaa6f8c3f94ce6.js +0 -1
- package/out/_next/static/chunks/c511954c023d8fa5.js +0 -1
- package/out/_next/static/chunks/c5c35ce15c3a5bbf.js +0 -169
- package/out/_next/static/chunks/c7aebf8fb25b9bce.js +0 -16
- package/out/_next/static/chunks/c7b2620f6802dc60.js +0 -14
- package/out/_next/static/chunks/cb17f9a8eab1a071.js +0 -13
- package/out/_next/static/chunks/cb239694ac3b2a02.js +0 -12
- package/out/_next/static/chunks/cbced7e18621ef67.js +0 -1
- package/out/_next/static/chunks/cd972acf52b0c0b5.css +0 -1
- package/out/_next/static/chunks/cf023c047bfe3172.js +0 -1
- package/out/_next/static/chunks/d213dac8d0245238.js +0 -1
- package/out/_next/static/chunks/d240afc78f4135a8.js +0 -14
- package/out/_next/static/chunks/d2649c1116becc6a.js +0 -13
- package/out/_next/static/chunks/d4f23097ae6ffeb8.js +0 -2
- package/out/_next/static/chunks/d82feacfdc37ffc6.js +0 -3
- package/out/_next/static/chunks/dd41138446700434.js +0 -8
- package/out/_next/static/chunks/dd7d77c8e91e2560.js +0 -132
- package/out/_next/static/chunks/dddc02f5e3f90a22.js +0 -46
- package/out/_next/static/chunks/ddfeca7dae96beb9.js +0 -20
- package/out/_next/static/chunks/de5bc771274d7fa2.js +0 -1
- package/out/_next/static/chunks/e1a04f2b988c0127.js +0 -1
- package/out/_next/static/chunks/e45b45f51794fc91.js +0 -10
- package/out/_next/static/chunks/e5f0ab61a0737b88.js +0 -1
- package/out/_next/static/chunks/e7023915d17ccabc.js +0 -61
- package/out/_next/static/chunks/e7ae256d74cf1a79.js +0 -14
- package/out/_next/static/chunks/e90e3ae24a48fbc3.js +0 -13
- package/out/_next/static/chunks/e9e91f3763dfd8e6.js +0 -14
- package/out/_next/static/chunks/eab07a9d821cca6e.js +0 -15
- package/out/_next/static/chunks/eafd0f7a9dfe11e3.js +0 -2
- package/out/_next/static/chunks/eb8d19d35d559572.js +0 -61
- package/out/_next/static/chunks/ecbb43b35ec68dca.js +0 -173
- package/out/_next/static/chunks/f12fd60740986cd3.js +0 -13
- package/out/_next/static/chunks/f2a520d75ef83d66.js +0 -88
- package/out/_next/static/chunks/f332652322d66970.js +0 -1
- package/out/_next/static/chunks/f3bbb6f5cd572aef.js +0 -71
- package/out/_next/static/chunks/f47bc797e90a14cd.js +0 -9
- package/out/_next/static/chunks/f4da369af633ca2c.js +0 -13
- package/out/_next/static/chunks/f585cc7fc2c34888.js +0 -5
- package/out/_next/static/chunks/f62a9768f2112c4d.js +0 -2
- package/out/_next/static/chunks/f764df1e357b1af0.js +0 -1
- package/out/_next/static/chunks/f9369c39c18227dd.js +0 -137
- package/out/_next/static/chunks/fac4bb5cc7a79e00.js +0 -110
- package/out/_next/static/chunks/fe2b44ca7d9077b4.js +0 -2
- package/out/_next/static/chunks/turbopack-06326531308e420c.js +0 -4
- package/out/_next/static/chunks/turbopack-0b2886eac294208b.js +0 -4
- package/out/_next/static/chunks/turbopack-11490f589626ae95.js +0 -4
- package/out/_next/static/chunks/turbopack-176751ac2097a088.js +0 -4
- package/out/_next/static/chunks/turbopack-18c2df6a9c61dcf4.js +0 -4
- package/out/_next/static/chunks/turbopack-203d6803feb3c33a.js +0 -4
- package/out/_next/static/chunks/turbopack-2665eff1cfad8581.js +0 -4
- package/out/_next/static/chunks/turbopack-2688a09e528b01fb.js +0 -4
- package/out/_next/static/chunks/turbopack-29c231fbc65ef11d.js +0 -4
- package/out/_next/static/chunks/turbopack-2abec513e1b0311b.js +0 -4
- package/out/_next/static/chunks/turbopack-2f20f676ac5b125b.js +0 -4
- package/out/_next/static/chunks/turbopack-36db2f05127f624f.js +0 -4
- package/out/_next/static/chunks/turbopack-38d6ede5d54f26f2.js +0 -4
- package/out/_next/static/chunks/turbopack-41573d526c4a948a.js +0 -4
- package/out/_next/static/chunks/turbopack-439c52b77980c4c7.js +0 -4
- package/out/_next/static/chunks/turbopack-4ad063e3cbffc00c.js +0 -4
- package/out/_next/static/chunks/turbopack-4b488bf64a2e8dd1.js +0 -4
- package/out/_next/static/chunks/turbopack-4c7477517b52ba68.js +0 -4
- package/out/_next/static/chunks/turbopack-5c983e42a1e260e4.js +0 -4
- package/out/_next/static/chunks/turbopack-5f2bcdcaa043728a.js +0 -4
- package/out/_next/static/chunks/turbopack-671122c54887dc69.js +0 -4
- package/out/_next/static/chunks/turbopack-6d75f05ddacb7da2.js +0 -4
- package/out/_next/static/chunks/turbopack-6dc028ecebd94645.js +0 -4
- package/out/_next/static/chunks/turbopack-723604d1148e5320.js +0 -4
- package/out/_next/static/chunks/turbopack-74fa79f5127116c8.js +0 -4
- package/out/_next/static/chunks/turbopack-8003cebb87e02b6f.js +0 -4
- package/out/_next/static/chunks/turbopack-8140fe478fb3e120.js +0 -4
- package/out/_next/static/chunks/turbopack-88086a75b1e60f46.js +0 -4
- package/out/_next/static/chunks/turbopack-88eb03702be93ae0.js +0 -4
- package/out/_next/static/chunks/turbopack-897ba35fba678b73.js +0 -4
- package/out/_next/static/chunks/turbopack-8a1b19f230ba6880.js +0 -4
- package/out/_next/static/chunks/turbopack-8ffb67edeb44d982.js +0 -4
- package/out/_next/static/chunks/turbopack-998a786f942e947d.js +0 -4
- package/out/_next/static/chunks/turbopack-9a2df05b70127c82.js +0 -4
- package/out/_next/static/chunks/turbopack-9b182fc4451b5698.js +0 -4
- package/out/_next/static/chunks/turbopack-a57eed18cbeb25e7.js +0 -4
- package/out/_next/static/chunks/turbopack-a7ff96ea75235751.js +0 -4
- package/out/_next/static/chunks/turbopack-af20a66dd4bceecf.js +0 -4
- package/out/_next/static/chunks/turbopack-b356908061e33334.js +0 -4
- package/out/_next/static/chunks/turbopack-b6ce904246ed7a9f.js +0 -4
- package/out/_next/static/chunks/turbopack-b9cef4be1decb7b2.js +0 -4
- package/out/_next/static/chunks/turbopack-bf2ca10d6641cd12.js +0 -4
- package/out/_next/static/chunks/turbopack-c3399585cf5c035a.js +0 -4
- package/out/_next/static/chunks/turbopack-c44178b57b3e98b5.js +0 -4
- package/out/_next/static/chunks/turbopack-c51548c040a966c5.js +0 -4
- package/out/_next/static/chunks/turbopack-c8e973d3b138f742.js +0 -4
- package/out/_next/static/chunks/turbopack-cc20aca40e453b88.js +0 -4
- package/out/_next/static/chunks/turbopack-d34b6cf8960cacf6.js +0 -4
- package/out/_next/static/chunks/turbopack-d37a5e6c8a834dea.js +0 -4
- package/out/_next/static/chunks/turbopack-d82b95fbbee71ed9.js +0 -4
- package/out/_next/static/chunks/turbopack-d8ed8a779ed564d6.js +0 -4
- package/out/_next/static/chunks/turbopack-dafa04d793b6860d.js +0 -4
- package/out/_next/static/chunks/turbopack-dc4b2a768f14c44e.js +0 -4
- package/out/_next/static/chunks/turbopack-deaa436e60eccde3.js +0 -4
- package/out/_next/static/chunks/turbopack-f58c8e41f737271a.js +0 -4
- package/out/_next/static/chunks/turbopack-f67c925e56a43b50.js +0 -4
- package/out/_next/static/chunks/turbopack-f7b7451c68d69b3c.js +0 -4
- package/out/_next/static/chunks/turbopack-f8e4bfb5ec24c06d.js +0 -4
- package/out/_next/static/chunks/turbopack-f9eebeab42544066.js +0 -4
- /package/out/_next/static/{N9Z2SsJs2tDfugfSzn0XU → _wcic5Y3loPdQD9mT3zos}/_clientMiddlewareManifest.json +0 -0
- /package/out/_next/static/{N9Z2SsJs2tDfugfSzn0XU → _wcic5Y3loPdQD9mT3zos}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,12442,e=>{"use strict";var t=e.i(69178),s=e.i(1415),a=e.i(13071);let r=(0,s.createContext)(!1);e.s(["FormWrapperContext",0,r,"default",0,({children:e,className:s=""})=>(0,t.jsx)(r.Provider,{value:!0,children:(0,t.jsx)("div",{className:"sm:max-w-full",children:(0,t.jsx)("div",{className:(0,a.default)("bg-white dark:bg-slate-800 rounded-md shadow-sm overflow-hidden",s),children:e})})})])},68686,e=>{"use strict";var t=e.i(69178),s=e.i(13071),a=e.i(19892),r=e.i(4142),l=e.i(88500);e.s(["default",0,({maxLength:e=0,validators:i=[],...d})=>{let o=(0,r.default)({validators:[...i,e&&(0,a.validateMaxLength)(e)],...d});return(0,t.jsx)(l.default,{...o,children:(0,t.jsx)("input",{className:(0,s.default)("relative mt-1 block w-full dark:focus:autofill dark:hover:autofill dark:autofill dark:placeholder:text-slate-600 dark:bg-slate-900 dark:text-slate-200 appearance-none rounded-md border-1 dark:border-slate-700 px-4 py-2.5 text-sm text-slate-900 focus:outline-hidden focus:ring-2 focus:ring-slate-800 shadow-xs",{"border-rose-700 placeholder:text-rose-500":!!o.error,"border-slate-300 placeholder-slate-400":!o.error}),disabled:o.disabled,id:o.name,name:o.name,onChange:o.onChange,onClick:e=>{e.stopPropagation()},onBlur:o.onBlur,placeholder:o.placeholder,autoComplete:o.autoComplete||"off",type:o.type||"text",value:o.value,autoFocus:o.autoFocus})})}])},17362,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a={VALID_LOADERS:function(){return l},imageConfigDefault:function(){return i}};for(var r in a)Object.defineProperty(s,r,{enumerable:!0,get:a[r]});let l=["default","imgix","cloudinary","akamai","custom"],i={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumRedirects:3,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1}},76648,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"ImageConfigContext",{enumerable:!0,get:function(){return l}});let a=e.r(23726)._(e.r(1415)),r=e.r(17362),l=a.default.createContext(r.imageConfigDefault)},90575,19190,e=>{"use strict";var t=e.i(1415);let s=t.default.createContext({customProperties:{},hydrateFragment:(e,t)=>null});e.s(["default",0,s],19190),e.s(["default",0,()=>(0,t.useContext)(s)],90575)},53162,e=>{"use strict";let t=e.i(1415).default.createContext({setModal:()=>{throw Error("No ModalContext/ModalWrapper ancestor found.")}});e.s(["default",0,t])},31891,e=>{"use strict";var t=e.i(1415),s=e.i(53162);e.s(["default",0,()=>(0,t.useContext)(s.default)])},17831,e=>{"use strict";var t=e.i(69178),s=e.i(98183);e.s(["default",0,({onOkClick:e,onCancelClick:a,okText:r=null,cancelText:l=null,headerText:i=null,message:d=null,icon:o=null,close:n=null})=>{let{formatMessage:u}=(0,s.useIntl)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"sm:flex sm:items-start",children:[o||(0,t.jsx)("div",{className:"mx-auto flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-rose-100 dark:bg-rose-900/30 sm:mx-0 sm:h-10 sm:w-10",children:(0,t.jsx)("svg",{className:"h-6 w-6 text-rose-600 dark:text-rose-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),(0,t.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:[(0,t.jsx)("h3",{className:"text-lg text-slate-900 dark:text-slate-200",id:"modal-title",children:i||u({id:"warning",defaultMessage:"Warning!"})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("p",{className:"text-sm text-slate-500 dark:text-slate-200",children:d||u({id:"are_you_sure",defaultMessage:"Are you sure?"})})})]})]}),(0,t.jsxs)("div",{className:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse",children:[(0,t.jsx)("button",{id:"danger_continue",onClick:e,type:"button",className:"inline-flex w-full justify-center rounded-md border border-transparent bg-rose-600 px-4 py-2 text-base font-medium text-white shadow-xs hover:bg-rose-700 focus:outline-hidden focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm",children:r||u({id:"continue",defaultMessage:"Continue"})}),(0,t.jsx)("button",{id:"danger_cancel",onClick:a||n,type:"button",className:"mt-3 inline-flex w-full justify-center rounded-md border border-slate-300 bg-white px-4 py-2 text-base font-medium text-slate-700 shadow-xs hover:bg-slate-50 focus:outline-hidden focus:ring-2 focus:ring-slate-800 focus:ring-offset-2 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",children:l||u({id:"cancel",defaultMessage:"Cancel"})})]})]})}])},69744,e=>{"use strict";var t=e.i(1415);let s=t.forwardRef(function({title:e,titleId:s,...a},r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":s},a),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))});e.s(["XMarkIcon",0,s],69744)},33362,e=>{"use strict";var t=e.i(69178),s=e.i(69744),a=e.i(98183);e.s(["default",0,({onClick:e,text:r=null,Icon:l=null})=>{let{formatMessage:i}=(0,a.useIntl)();return(0,t.jsxs)("button",{type:"button",onClick:e,"aria-describedby":"header-delete-button",className:"inline-flex items-center gap-2 justify-center rounded-md border border-rose-500 px-4 py-2 text-sm font-medium leading-5 text-rose-600 dark:text-rose-200 shadow-sm hover:border-rose-600 hover:bg-rose-600 hover:text-white focus:outline-hidden focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 h-[38px]",children:[(0,t.jsx)("span",{children:l||(0,t.jsx)(s.XMarkIcon,{className:"h-5 w-5"})}),r||i({id:"delete",defaultMessage:"Delete"})]})}])},47822,e=>{"use strict";var t=e.i(69178),s=e.i(13071);e.s(["default",0,({value:e,className:a,onChange:r=()=>{},rows:l=7,...i})=>{let d=Math.max(e?e.split("\n").length:1,l);return(0,t.jsx)("textarea",{className:(0,s.default)("text-black dark:bg-slate-900 dark:text-slate-200 border-transparent border-t border-t-slate-200 dark:border-t-slate-800 resize-y",a),value:e,onChange:r,rows:d,...i})}])},36187,e=>{"use strict";var t=e.i(69178),s=e.i(13071),a=e.i(47822),r=e.i(4142),l=e.i(88500);e.s(["default",0,({validators:e=[],rows:i=10,...d})=>{let o=(0,r.default)({...d,validators:[...e,{isValid:e=>{try{return JSON?.parse(e),!0}catch(e){return!1}},intlMessageDescriptor:{id:"invalid_json_input",defaultMessage:"Invalid JSON input"}}]});return(0,t.jsx)(l.default,{...o,children:(0,t.jsx)(a.default,{className:(0,s.default)("mt-1 block w-full max-w-full rounded-md border-1 border-slate-300 dark:border-slate-800 dark:bg-slate-900 dark:text-slate-200 shadow-xs dark:shadow-none focus:ring-slate-800 sm:text-sm",{"border-rose-300 text-rose-600 focus:border-rose-600 focus:ring-rose-600":!!o.error},d.className),disabled:o.disabled,id:o.name,name:o.name,onChange:e=>{try{JSON.parse(e.target.value||"{}"),o.setError("")}catch(e){o.setError(e.message?.replace("JSON.parse",""))}finally{o.setValue(e.target.value,!0),o.setTouched(!0)}},onBlur:e=>{try{o.setValue(JSON.stringify(JSON.parse(e.target.value),void 0,2),!0),o.setError("")}catch(e){o.setError(e.message)}},placeholder:o.placeholder,autoComplete:o.autoComplete,value:o.value})})}])},95126,e=>{"use strict";var t=e.i(69178),s=e.i(13071),a=e.i(4142),r=e.i(19892),l=e.i(88500);let i=e=>{let t=new Date(e);return isNaN(t.getTime())?null:t.toISOString().split("T")[0]};e.s(["default",0,({validators:e=[],className:d,parseDate:o=i,...n})=>{let u=(0,a.default)({validators:[...e,r.validateDate],...n}),c=u.value?new Date(u.value).toISOString().split("T")[0]:"";return(0,t.jsx)(l.default,{...u,className:n.containerClassName,children:(0,t.jsx)("input",{type:"date",id:u.id,name:u.name,disabled:u.disabled,className:(0,s.default)("relative mt-0 block w-full appearance-none rounded-md rounded-b-md border-1 border-slate-300 dark:border-slate-700 px-4 py-2.5 text-sm text-slate-900 dark:text-slate-200 dark:bg-slate-900 placeholder-slate-400 shadow-xs focus:z-10 focus:outline-hidden focus:ring-2 focus:ring-slate-800",d,{"border-rose-700 placeholder:text-rose-300":!!u.error}),onChange:e=>u.setValue(e.target.value),value:c,placeholder:u.placeholder,autoComplete:"off",...n})})}])},15064,e=>{"use strict";var t=e.i(71983),s=e.i(13699),a=e.i(90575),r=e.i(73517);let l=(e="")=>t.gql`
|
|
2
|
+
query Work($workId: ID!) {
|
|
3
|
+
work(workId: $workId) {
|
|
4
|
+
...WorkFragment
|
|
5
|
+
${e}
|
|
6
|
+
error
|
|
7
|
+
priority
|
|
8
|
+
worker
|
|
9
|
+
timeout
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
${r.default}
|
|
13
|
+
`;e.s(["GetWorkQuery",0,l,"default",0,({workId:e=null,...t})=>{let{customProperties:r}=(0,a.default)(),{data:i,loading:d,error:o,previousData:n}=(0,s.useQuery)(l(r?.Work),{skip:!e,variables:{workId:e},...t});return{work:i?.work||n?.work,loading:d,error:o}}])},73517,e=>{"use strict";var t=e.i(71983);let s=t.gql`
|
|
14
|
+
fragment WorkFragment on Work {
|
|
15
|
+
_id
|
|
16
|
+
type
|
|
17
|
+
scheduled
|
|
18
|
+
status
|
|
19
|
+
started
|
|
20
|
+
success
|
|
21
|
+
finished
|
|
22
|
+
created
|
|
23
|
+
deleted
|
|
24
|
+
retries
|
|
25
|
+
original {
|
|
26
|
+
_id
|
|
27
|
+
retries
|
|
28
|
+
}
|
|
29
|
+
input
|
|
30
|
+
result
|
|
31
|
+
}
|
|
32
|
+
`;e.s(["default",0,s])},23222,e=>{"use strict";var t=e.i(71983),s=e.i(13686);let a=t.gql`
|
|
33
|
+
mutation AddWork(
|
|
34
|
+
$type: WorkType!
|
|
35
|
+
$priority: Int! = 0
|
|
36
|
+
$input: JSON
|
|
37
|
+
$originalWorkId: ID
|
|
38
|
+
$scheduled: Timestamp
|
|
39
|
+
$retries: Int! = 20
|
|
40
|
+
) {
|
|
41
|
+
addWork(
|
|
42
|
+
type: $type
|
|
43
|
+
priority: $priority
|
|
44
|
+
input: $input
|
|
45
|
+
originalWorkId: $originalWorkId
|
|
46
|
+
scheduled: $scheduled
|
|
47
|
+
retries: $retries
|
|
48
|
+
) {
|
|
49
|
+
_id
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
`;e.s(["default",0,()=>{let[e]=(0,s.useMutation)(a);return{addWork:async({type:t,priority:s,input:a,originalWorkId:r,scheduled:l=null,retries:i})=>e({variables:{type:t,priority:s,input:a,originalWorkId:r,scheduled:l,retries:i},refetchQueries:["WorkQueue"]})}}])},79180,81856,52626,e=>{"use strict";var t=e.i(92024),s=e.i(27817),a=e.i(5944),r=e.i(77860),l=e.i(66752),i=e.i(44701),d=e.i(10863),o=e.i(31556);let n=["years","months","weeks","days","hours","minutes","seconds"];e.s(["default",0,()=>({getScheduledTime:e=>{if(!e)return null;let{scheduled:n,status:u,started:c}=e;if("FAILED"===u||"SUCCESS"===u||"DELETED"===u)return null;let m=new Date(n).getTime();if("ALLOCATED"===u||"NEW"===u&&!c){var x;return x={addSuffix:!0},function(e,t,n){let u,c=(0,a.getDefaultOptions)(),m=n?.locale??c.locale??s.defaultLocale,x=(0,d.compareAsc)(e,t);if(isNaN(x))throw RangeError("Invalid time value");let f=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:x}),[h,g]=(0,i.normalizeDates)(n?.in,...x>0?[t,e]:[e,t]),p=(0,r.getRoundingMethod)(n?.roundingMethod??"round"),k=g.getTime()-h.getTime(),w=k/o.millisecondsInMinute,b=(k-((0,l.getTimezoneOffsetInMilliseconds)(g)-(0,l.getTimezoneOffsetInMilliseconds)(h)))/o.millisecondsInMinute,v=n?.unit;if("second"===(u=v||(w<1?"second":w<60?"minute":w<o.minutesInDay?"hour":b<o.minutesInMonth?"day":b<o.minutesInYear?"month":"year"))){let e=p(k/1e3);return m.formatDistance("xSeconds",e,f)}if("minute"===u){let e=p(w);return m.formatDistance("xMinutes",e,f)}if("hour"===u){let e=p(w/60);return m.formatDistance("xHours",e,f)}if("day"===u){let e=p(b/o.minutesInDay);return m.formatDistance("xDays",e,f)}if("month"===u){let e=p(b/o.minutesInMonth);return 12===e&&"month"!==v?m.formatDistance("xYears",1,f):m.formatDistance("xMonths",e,f)}else{let e=p(b/o.minutesInYear);return m.formatDistance("xYears",e,f)}}(m,(0,t.constructFrom)(m,Date.now()),x)}return null},getDuration:e=>{var t,r;let l,i,d,o,u;if(!e)return null;let{started:c,finished:m}=e,x=new Date().getTime();if(!c)return null;let f=null;return t={hours:Number(Math.floor((f=c&&!m?x-new Date(c).getTime():new Date(m).getTime()-new Date(c).getTime())/1e3/60/60)%24),minutes:Number(Math.floor(f/1e3/60)%60),seconds:Number(Math.ceil(f/1e3)%60)},r={zero:!1},l=(0,a.getDefaultOptions)(),i=r?.locale??l.locale??s.defaultLocale,d=r?.format??n,o=r?.zero??!1,u=r?.delimiter??" ",i.formatDistance?d.reduce((e,s)=>{let a=`x${s.replace(/(^.)/,e=>e.toUpperCase())}`,r=t[s];return void 0!==r&&(o||t[s])?e.concat(i.formatDistance(a,r)):e},[]).join(u):""}})],79180);var u=e.i(69178),c=e.i(1415);e.s(["default",0,({text:e,children:t})=>{let[s,a]=(0,c.useState)(!1);return(0,u.jsxs)("div",{className:"relative",children:[(0,u.jsx)("div",{onMouseEnter:()=>{a(!0)},onMouseLeave:()=>{a(!1)},children:t}),s&&(0,u.jsx)("div",{className:"tooltip absolute p-2 bg-slate-700 text-white rounded-lg whitespace-nowrap",children:e})]})}],81856),e.s(["default",0,({work:e,children:t=null})=>e?.original?e?.original?.retries===e?.retries?(0,u.jsxs)("span",{children:[(0,u.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-3 h-3 inline-block text-slate-500 mr-2",children:(0,u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})}),t]}):(0,u.jsx)("span",{children:(0,u.jsxs)("span",{children:[(0,u.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-3 h-3 inline-block text-slate-500 mr-2",children:(0,u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})}),t,(0,u.jsx)("span",{className:"text-rose-400 text-sm ml-2",children:`${e?.retries} / ${e?.original?.retries}`})]})}):t],52626)},77860,e=>{"use strict";function t(e){return t=>{let s=(e?Math[e]:Math.trunc)(t);return 0===s?0:s}}e.s(["getRoundingMethod",()=>t])},10863,e=>{"use strict";var t=e.i(23317);function s(e,s){let a=(0,t.toDate)(e)-(0,t.toDate)(s);return a<0?-1:a>0?1:a}e.s(["compareAsc",()=>s])},20124,e=>{"use strict";var t=e.i(1415);let s=t.forwardRef(function({title:e,titleId:s,...a},r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":s},a),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))});e.s(["ArrowPathIcon",0,s],20124)},92648,e=>{"use strict";var t=e.i(69178),s=e.i(49061),a=e.i(98183),r=e.i(29252),l=e.i(30758),i=e.i(1415),d=e.i(72670),o=e.i(70079),n=e.i(39381),u=e.i(47822),c=e.i(79180),m=e.i(81856),x=e.i(52626);let f=({work:e})=>{let{formatMessage:s}=(0,a.useIntl)(),{formatDateTime:r}=(0,o.default)(),{getDuration:f,getScheduledTime:h}=(0,c.default)(),[,g]=(0,i.useState)(null);(0,i.useEffect)(()=>{let t=null;return e&&("NEW"===e.status||"ALLOCATED"===e.status)&&(t=setInterval(()=>g(Date.now()),1e3)),()=>{clearInterval(t)}},[e?.status]);let p={timeStyle:"medium",dateStyle:"long"};return(0,t.jsx)("div",{className:`rounded-xl xl:-mx-8 mt-10 p-2 sm:p-6 lg:p-8 ${(0,n.getShadowStyle)(e?.status)}`,children:(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-2 auto-rows-max",children:[(0,t.jsxs)("div",{className:"max-h-fit col-span-2 rounded-lg border border-slate-300 dark:border-slate-800 bg-white dark:bg-slate-900 p-4 shadow-md dark:shadow-none sm:p-6 lg:col-span-1 lg:p-8",children:[(0,t.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between",children:[(0,t.jsx)("div",{className:"mr-4 text-base text-slate-500 dark:text-slate-500 ",children:s({id:"work_type",defaultMessage:"Work type"})}),(0,t.jsx)("div",{className:"mt-2 max-w-prose space-y-5 text-sm",children:e?.type})]}),(0,t.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between",children:[(0,t.jsx)("div",{className:"mr-4 text-base text-slate-500 dark:text-slate-500 ",children:s({id:"work_status",defaultMessage:"Work Status"})}),(0,t.jsx)(d.default,{text:e?.status,color:n.WORK_STATUSES[e?.status]})]}),(0,t.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between",children:[(0,t.jsx)("div",{className:"mr-4 text-base text-slate-500 dark:text-slate-500 ",children:s({id:"work_priority",defaultMessage:"Priority"})}),(0,t.jsx)("div",{className:"mt-2 max-w-prose space-y-5 text-sm ",children:e?.priority})]}),(0,t.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between",children:[(0,t.jsx)("div",{className:"mr-4 text-base text-slate-500 dark:text-slate-500 ",children:s({id:"work_retries",defaultMessage:"Retries"})}),(0,t.jsx)("div",{className:"mt-2 max-w-prose space-y-5 text-sm",children:(0,t.jsx)(x.default,{work:e})})]}),(0,t.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between",children:[(0,t.jsx)("div",{className:"mr-4 text-base text-slate-500 dark:text-slate-500 ",children:s({id:"worker",defaultMessage:"Worker"})}),(0,t.jsx)("div",{className:"mt-2 max-w-prose space-y-5 text-sm",children:e?.worker?(0,t.jsx)(d.default,{text:s({id:"worker_dynamic",defaultMessage:"{worker}"},{worker:e?.worker}),color:"purple"}):"n/a"})]}),e?.retries||e?.original?(0,t.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between",children:[(0,t.jsx)("div",{className:"mr-4 text-base text-slate-500 dark:text-slate-500 ",children:s({id:"work_original",defaultMessage:"Original Work"})}),(0,t.jsx)("div",{className:"mt-2 max-w-prose space-y-5 text-sm",children:(0,t.jsx)(l.default,{href:`/works?workerId=${e?.original?._id}`,className:"text-slate-900 dark:text-slate-300",children:e?.original?._id})})]}):""]}),(0,t.jsx)("div",{className:"col-span-2 rounded-lg border border-slate-300 dark:border-slate-800 bg-white dark:bg-slate-900 p-4 shadow-md dark:shadow-none sm:p-6 lg:col-span-1 lg:p-8",children:(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-5",children:[(0,t.jsxs)("div",{className:"sm:col-span-1",children:[(0,t.jsx)("div",{className:"flex text-base text-slate-500 dark:text-slate-500 ",children:s({id:"work_created",defaultMessage:"Created"})}),(0,t.jsx)("div",{className:"flex text-sm",children:r(e?.created,p)})]}),(0,t.jsxs)("div",{className:"sm:col-span-1",children:[(0,t.jsx)("div",{className:"flex text-base text-slate-500 dark:text-slate-500 ",children:s({id:"work_scheduled",defaultMessage:"Scheduled"})}),(0,t.jsx)("div",{className:"flex text-sm w-100",children:(0,t.jsx)(m.default,{text:r(e?.scheduled,p),children:h(e)})})]}),(0,t.jsxs)("div",{className:"sm:col-span-1",children:[(0,t.jsx)("div",{className:"flex text-base text-slate-500 dark:text-slate-500 ",children:s({id:"work_started",defaultMessage:"Started"})}),(0,t.jsx)("div",{className:"flex text-sm",children:r(e?.started,p)})]}),(0,t.jsxs)("div",{className:"sm:col-span-1",children:[(0,t.jsx)("div",{className:"flex text-base text-slate-500 dark:text-slate-500 ",children:s({id:"work_finished",defaultMessage:"Finished"})}),(0,t.jsx)("div",{className:"flex text-sm",children:r(e?.finished,p)})]}),(0,t.jsxs)("div",{className:"sm:col-span-1",children:[(0,t.jsx)("div",{className:"flex text-base text-slate-500 dark:text-slate-500 ",children:s({id:"duration",defaultMessage:"Duration"})}),(0,t.jsx)("div",{className:"flex text-sm",children:f(e)})]}),e?.deleted&&(0,t.jsxs)("div",{className:"sm:col-span-1",children:[(0,t.jsx)("div",{className:"flex text-base text-slate-500 dark:text-slate-500 ",children:s({id:"deleted",defaultMessage:"Deleted"})}),(0,t.jsx)("div",{className:"flex text-sm",children:r(e?.deleted,p)})]})]})}),e?.error&&(0,t.jsxs)("div",{className:"rounded-lg shadow-md dark:shadow-none border-2 border-rose-300 dark:border-rose-800 col-span-2 lg:col-span-2 order-first overflow-hidden bg-rose-100 dark:bg-rose-800",children:[(0,t.jsx)("div",{className:"px-4 py-5 sm:px-6 border-b border-rose-300 dark:border-rose-800",children:(0,t.jsxs)("h3",{className:"text-lg font-medium leading-6 text-rose-700 dark:text-rose-300 flex items-center gap-2",children:[(0,t.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),s({id:"error",defaultMessage:"Error"})]})}),(0,t.jsx)("div",{className:"bg-rose-50 dark:bg-rose-950",children:(0,t.jsx)(u.default,{value:decodeURI(JSON.stringify(e.error,null,2)),disabled:!0,className:"block border-none w-full max-w-full resize-none sm:text-sm text-rose-900 dark:text-rose-100"})})]}),e?.input&&(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg border border-slate-300 dark:border-slate-800 col-span-2 shadow-md dark:shadow-none bg-white dark:bg-slate-900 lg:col-span-1",children:[(0,t.jsx)("div",{className:"px-4 py-5 sm:px-6",children:(0,t.jsx)("h3",{className:"text-lg font-medium leading-6 text-slate-900 dark:text-slate-500",children:s({id:"input",defaultMessage:"Input"})})}),(0,t.jsx)(u.default,{value:JSON.stringify(e.input,null,2),disabled:!0,className:"block w-full max-w-full resize-none sm:text-sm"})]}),e?.result&&(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg shadow-md dark:shadow-none border border-slate-300 dark:border-slate-800 col-span-2 bg-white dark:bg-slate-900 lg:col-span-1",children:[(0,t.jsxs)("div",{className:"px-4 py-5 sm:px-6 flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"text-lg font-medium leading-6 text-slate-900 dark:text-slate-500",children:s({id:"result",defaultMessage:"Result"})}),e?.type==="BULK_IMPORT"&&e?.result?.created&&(0,t.jsx)("span",{className:"text-sm text-slate-600 dark:text-slate-400",children:s({id:"items_created",defaultMessage:"{count} items created"},{count:e.result.created.length})})]}),(0,t.jsx)(u.default,{value:JSON.stringify(e.result,null,2),disabled:!0,className:`block w-full max-w-full resize-none sm:text-sm ${e?.type==="BULK_IMPORT"&&e?.result?.created?.length>50?"max-h-96 overflow-y-auto":""}`})]})]})})};var h=e.i(15064),g=e.i(71983),p=e.i(13686);let k=g.gql`
|
|
53
|
+
mutation RemoveWork($workId: ID!) {
|
|
54
|
+
removeWork(workId: $workId) {
|
|
55
|
+
_id
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
`;var w=e.i(23222),b=e.i(51443),v=e.i(71588),j=e.i(23529),y=e.i(17831),N=e.i(31891),M=e.i(33362),I=e.i(20124),C=e.i(5858),_=e.i(12442),S=e.i(95126),D=e.i(62010),W=e.i(36187),T=e.i(23518),O=e.i(68686),L=e.i(5641);let E=({work:e,onSubmit:r})=>{let{formatMessage:l,locale:i}=(0,a.useIntl)(),d=(0,s.useRouter)(),o=l({id:"work_added_success",defaultMessage:"Work added successfully!"}),n=(0,L.default)({submit:r,successMessage:o,onSubmitSuccess:(e,{_id:t})=>(d.replace(`/works?workerId=${t}`),!0),enableReinitialize:!0,initialValues:{...e,input:JSON.stringify(e?.input||{},null,2)}});return(0,t.jsx)(_.default,{children:(0,t.jsx)(D.default,{form:n,children:(0,t.jsxs)("div",{className:"space-y-6 rounded-md bg-white dark:bg-slate-900 shadow-md ",children:[(0,t.jsx)("h2",{className:"text-2xl font-bold text-slate-900 dark:text-slate-200 ",children:l({id:"retry_work",defaultMessage:"Retry Work"})}),(0,t.jsx)("div",{className:"flex flex-col sm:flex-row sm:justify-between sm:items-center dark:border-slate-700 pb-4 mb-4",children:(0,t.jsx)("div",{className:"text-sm text-slate-500 dark:text-slate-400 mt-2 sm:mt-0 flex flex-col sm:flex-row sm:gap-4",children:(0,t.jsxs)("span",{children:[(0,t.jsx)("strong",{children:l({id:"type",defaultMessage:"Type"})})," ",e.type]})})}),(0,t.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,t.jsx)(O.default,{name:"priority",id:"priority",label:l({id:"priority",defaultMessage:"Priority"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",type:"number",className:"w-full py-2 text-sm text-slate-900 dark:text-slate-200 dark:bg-slate-800 rounded-md"}),(0,t.jsx)(O.default,{name:"retries",id:"retries",label:l({id:"retries",defaultMessage:"Retries"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",type:"number",className:"w-full py-2 text-sm text-slate-900 dark:text-slate-200 dark:bg-slate-800 rounded-md"})]}),(0,t.jsx)(S.default,{name:"scheduled",label:l({id:"scheduled",defaultMessage:"Scheduled"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",className:"w-full py-2 text-sm text-slate-900 dark:text-slate-200 dark:bg-slate-800 rounded-md",containerClassName:"w-full",locale:i,showTimeInput:!0,timeFormat:"p",timeIntervals:15}),(0,t.jsx)("div",{children:(0,t.jsx)(W.default,{name:"input",label:l({id:"input",defaultMessage:"Input"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",className:"w-full h-48 text-sm text-slate-900 dark:text-slate-200 dark:bg-slate-800 rounded-md"})}),(0,t.jsx)("div",{className:"border-t-slate-100 border-t dark:border-t-slate-700 space-y-6 bg-slate-50 dark:bg-slate-900 p-5 text-right",children:(0,t.jsx)(T.default,{label:l({id:"retry_submit",defaultMessage:"Retry"})})})]})})})};e.s(["default",0,({workerId:e})=>{let l,{formatMessage:d}=(0,a.useIntl)(),{push:o}=(0,s.useRouter)(),{work:n}=(0,h.default)({workId:e,pollInterval:2e3}),{setModal:u}=(0,N.default)(),{removeWork:c}=(()=>{let[e]=(0,p.useMutation)(k);return{removeWork:async({workId:t})=>e({variables:{workId:t},refetchQueries:["WorkQueue"]})}})(),{addWork:m}=(0,w.default)(),x=(0,i.useCallback)(async()=>{u((0,t.jsx)(E,{work:n,onSubmit:async e=>{try{let{data:t}=await m({type:n?.type,priority:e.priority||n?.priority,retries:e.retries,scheduled:e.scheduled,input:JSON.parse(e.input||"{}"),originalWorkId:n?._id});return o(`/works?workerId=${t.addWork._id}`),u(null),{success:!0}}catch(e){return{success:!1,error:e}}}}),{closeOnOutsideClick:!0})},[n]),g=async()=>{await u((0,t.jsx)(y.default,{onCancelClick:()=>u(""),message:d({id:"delete_work_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this work? "}),onOkClick:async()=>{u(""),await c({workId:e}),r.toast.success(d({id:"work_deleted",defaultMessage:"Work deleted successfully"}))},okText:d({id:"delete_work",defaultMessage:"Delete work"})}))};return(0,t.jsxs)("div",{className:"mt-5 max-w-full",children:[(0,t.jsx)(j.default,{}),(0,t.jsxs)("div",{className:"items-center flex min-w-full justify-between gap-3 flex-wrap",children:[(0,t.jsx)(v.default,{headerText:d({id:"work_detail",defaultMessage:"Work Detail"}),title:d({id:"work_detail_title",defaultMessage:"Work {id}"},{id:n?._id})}),n&&(n?.status===C.IWorkStatus.Failed||n?.status===C.IWorkStatus.Success)?(0,t.jsxs)("button",{type:"button","aria-describedby":"header-delete-button",className:"my-auto flex items-center justify-center rounded-sm border-1 border-emerald-600 px-3 py-2 text-sm font-semibold text-emerald-600 shadow-xs hover:border-emerald-800 hover:bg-emerald-700 hover:text-white focus:outline-hidden focus:ring-2 focus:ring-emerald-700 focus:ring-offset-2",onClick:x,children:[(0,t.jsx)("span",{className:"pr-1",children:(0,t.jsx)(I.ArrowPathIcon,{className:"h-5 w-5"})}),d({id:"retry-work",defaultMessage:"Retry"})]}):null,n&&((l=n?.status)===C.IWorkStatus.New||l===C.IWorkStatus.Allocated)?(0,t.jsx)(M.default,{onClick:g}):null]}),n?(0,t.jsx)(f,{work:n}):(0,t.jsx)(b.default,{})]})}],92648)},67338,(e,t,s)=>{let a="/works/WorkDetailPage";(window.__NEXT_P=window.__NEXT_P||[]).push([a,()=>e.r(92648)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([a])})},8233,e=>{e.v(t=>Promise.all(["static/chunks/c88c6cd9171a39a6.js"].map(t=>e.l(t))).then(()=>t(64324)))},69209,e=>{e.v(t=>Promise.all(["static/chunks/aac8a0823d648ca4.js"].map(t=>e.l(t))).then(()=>t(3506)))}]);
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,55628,e=>{"use strict";var t=e.i(69178),r=e.i(30758),s=e.i(98183),l=e.i(12442);e.s(["default",0,({error:e=null,resetError:a=null})=>{let{formatMessage:n}=(0,s.useIntl)();return(0,t.jsx)("div",{className:"flex min-h-screen items-center justify-center py-12 px-4 sm:px-6 lg:px-8",children:(0,t.jsxs)("div",{className:"w-full max-w-md space-y-4 text-center",children:[(0,t.jsx)("div",{children:(0,t.jsx)("h2",{className:"text-center text-3xl text-slate-900 dark:text-slate-200",children:n({id:"internal_server_error",defaultMessage:"500 Internal Server Error"})})}),(0,t.jsx)(l.default,{children:(0,t.jsxs)("div",{className:"space-y-6 px-4 pb-5 pt-3 sm:rounded-lg sm:px-10",children:[(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-rose-100 dark:bg-rose-900",children:(0,t.jsx)("svg",{className:"h-6 w-6 text-rose-600 dark:text-rose-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})})}),(0,t.jsx)("p",{className:"mt-4 text-sm font-semibold uppercase tracking-wide text-rose-600 dark:text-rose-400",children:n({id:"error_500",defaultMessage:"500 Error"})}),(0,t.jsx)("p",{className:"mt-2 text-base text-slate-500 dark:text-slate-400",children:n({id:"internal_server_error_message",defaultMessage:"Sorry, something went wrong on our end. We are working to fix this."})}),e?.message&&(0,t.jsxs)("details",{className:"mt-4 text-left",children:[(0,t.jsx)("summary",{className:"cursor-pointer text-sm text-slate-600 dark:text-slate-400 hover:text-slate-800 dark:hover:text-slate-300",children:n({id:"show_error_details",defaultMessage:"Show error details"})}),(0,t.jsx)("pre",{className:"mt-2 text-xs text-slate-500 dark:text-slate-400 whitespace-pre-wrap break-all",children:e?.message})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 mt-6",children:[(0,t.jsxs)(r.default,{href:"/",className:"group relative flex w-full justify-center rounded-md border border-transparent bg-slate-800 dark:bg-slate-600 py-2 px-4 text-sm font-medium text-white hover:bg-slate-950 dark:hover:bg-slate-500 focus:outline-hidden focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 focus:ring-offset-2",children:[(0,t.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3",children:(0,t.jsx)("svg",{className:"h-5 w-5 text-white group-hover:text-slate-200",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z",clipRule:"evenodd"})})}),n({id:"back_to_home",defaultMessage:"Back to Home"})]}),a&&(0,t.jsxs)("button",{type:"button",onClick:a,className:"group relative flex w-full justify-center rounded-md border border-slate-300 bg-slate-100 dark:bg-slate-700 dark:border-slate-600 py-2 px-4 text-sm font-medium text-slate-700 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 focus:outline-hidden focus:ring-2 focus:ring-slate-500 dark:focus:ring-slate-400 focus:ring-offset-2",children:[(0,t.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3",children:(0,t.jsx)("svg",{className:"h-5 w-5 text-slate-500 dark:text-slate-400 group-hover:text-slate-600 dark:group-hover:text-slate-300",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z",clipRule:"evenodd"})})}),n({id:"try_again",defaultMessage:"Try Again"})]})]})]})})]})})}])},18524,e=>{"use strict";var t=e.i(69178),r=e.i(1415),s=e.i(55628);class l extends r.default.Component{constructor(e){super(e),this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error({error:e,errorInfo:t})}render(){return this.state.hasError?(0,t.jsx)(s.default,{error:this.state.error,resetError:()=>this.setState({hasError:!1,error:null})}):this.props.children}}e.s(["default",0,l])},55336,e=>{"use strict";var t=e.i(1415);let r=t.forwardRef(function({title:e,titleId:r,...s},l){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{d:"M10.362 1.093a.75.75 0 0 0-.724 0L2.523 5.018 10 9.143l7.477-4.125-7.115-3.925ZM18 6.443l-7.25 4v8.25l6.862-3.786A.75.75 0 0 0 18 14.25V6.443ZM9.25 18.693v-8.25l-7.25-4v7.807a.75.75 0 0 0 .388.657l6.862 3.786Z"}))});e.s(["CubeIcon",0,r],55336)},90575,19190,e=>{"use strict";var t=e.i(1415);let r=t.default.createContext({customProperties:{},hydrateFragment:(e,t)=>null});e.s(["default",0,r],19190),e.s(["default",0,()=>(0,t.useContext)(r)],90575)},81907,e=>{"use strict";let t=()=>({formatPrice:e=>{if(!e?.currencyCode)return"n/a";if(e?.amount===void 0||e?.amount===null)return"";let{amount:t,currencyCode:r}=e||{};return new Intl.NumberFormat(navigator.language,{style:"currency",currency:r}).format(t/100)}}),r=e=>e?.label&&e?.version?`${e.label} ${e.version}`:"",s=(...e)=>e.filter(Boolean).join(" "),l=(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"region"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},a=(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"language"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},n=(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"currency"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},i=e=>e&&e?.split(",").reduce((e,t)=>{let[r=null,s=null]=(t||"")?.split("_")||[];return{...e,[r]:s}},null)||{},o=(e,t,r)=>{let s;return s=r?{...e,[r]:t}:e,Object.keys(s)?.map(e=>[e,s[e]].join("="))?.join("&")};e.s(["classNames",()=>s,"convertSortFieldsToQueryFormat",0,e=>Object.entries(i(e))?.map(([e,t])=>({key:e,value:t})),"getInterfaceLabel",()=>r,"getSortKeys",()=>i,"normalizeCountryISOCode",()=>l,"normalizeCurrencyISOCode",()=>n,"normalizeLanguageISOCode",()=>a,"normalizeQuery",()=>o,"useFormatPrice",()=>t])},53162,e=>{"use strict";let t=e.i(1415).default.createContext({setModal:()=>{throw Error("No ModalContext/ModalWrapper ancestor found.")}});e.s(["default",0,t])},31891,e=>{"use strict";var t=e.i(1415),r=e.i(53162);e.s(["default",0,()=>(0,t.useContext)(r.default)])},17831,e=>{"use strict";var t=e.i(69178),r=e.i(98183);e.s(["default",0,({onOkClick:e,onCancelClick:s,okText:l=null,cancelText:a=null,headerText:n=null,message:i=null,icon:o=null,close:u=null})=>{let{formatMessage:d}=(0,r.useIntl)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"sm:flex sm:items-start",children:[o||(0,t.jsx)("div",{className:"mx-auto flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-rose-100 dark:bg-rose-900/30 sm:mx-0 sm:h-10 sm:w-10",children:(0,t.jsx)("svg",{className:"h-6 w-6 text-rose-600 dark:text-rose-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),(0,t.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:[(0,t.jsx)("h3",{className:"text-lg text-slate-900 dark:text-slate-200",id:"modal-title",children:n||d({id:"warning",defaultMessage:"Warning!"})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("p",{className:"text-sm text-slate-500 dark:text-slate-200",children:i||d({id:"are_you_sure",defaultMessage:"Are you sure?"})})})]})]}),(0,t.jsxs)("div",{className:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse",children:[(0,t.jsx)("button",{id:"danger_continue",onClick:e,type:"button",className:"inline-flex w-full justify-center rounded-md border border-transparent bg-rose-600 px-4 py-2 text-base font-medium text-white shadow-xs hover:bg-rose-700 focus:outline-hidden focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm",children:l||d({id:"continue",defaultMessage:"Continue"})}),(0,t.jsx)("button",{id:"danger_cancel",onClick:s||u,type:"button",className:"mt-3 inline-flex w-full justify-center rounded-md border border-slate-300 bg-white px-4 py-2 text-base font-medium text-slate-700 shadow-xs hover:bg-slate-50 focus:outline-hidden focus:ring-2 focus:ring-slate-800 focus:ring-offset-2 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",children:a||d({id:"cancel",defaultMessage:"Cancel"})})]})]})}])},69744,e=>{"use strict";var t=e.i(1415);let r=t.forwardRef(function({title:e,titleId:r,...s},l){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))});e.s(["XMarkIcon",0,r],69744)},33362,e=>{"use strict";var t=e.i(69178),r=e.i(69744),s=e.i(98183);e.s(["default",0,({onClick:e,text:l=null,Icon:a=null})=>{let{formatMessage:n}=(0,s.useIntl)();return(0,t.jsxs)("button",{type:"button",onClick:e,"aria-describedby":"header-delete-button",className:"inline-flex items-center gap-2 justify-center rounded-md border border-rose-500 px-4 py-2 text-sm font-medium leading-5 text-rose-600 dark:text-rose-200 shadow-sm hover:border-rose-600 hover:bg-rose-600 hover:text-white focus:outline-hidden focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 h-[38px]",children:[(0,t.jsx)("span",{children:a||(0,t.jsx)(r.XMarkIcon,{className:"h-5 w-5"})}),l||n({id:"delete",defaultMessage:"Delete"})]})}])},71747,e=>{"use strict";var t=e.i(1415);let r=t.forwardRef(function({title:e,titleId:r,...s},l){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{fillRule:"evenodd",d:"M8.75 1A2.75 2.75 0 0 0 6 3.75v.443c-.795.077-1.584.176-2.365.298a.75.75 0 1 0 .23 1.482l.149-.022.841 10.518A2.75 2.75 0 0 0 7.596 19h4.807a2.75 2.75 0 0 0 2.742-2.53l.841-10.52.149.023a.75.75 0 0 0 .23-1.482A41.03 41.03 0 0 0 14 4.193V3.75A2.75 2.75 0 0 0 11.25 1h-2.5ZM10 4c.84 0 1.673.025 2.5.075V3.75c0-.69-.56-1.25-1.25-1.25h-2.5c-.69 0-1.25.56-1.25 1.25v.325C8.327 4.025 9.16 4 10 4ZM8.58 7.72a.75.75 0 0 0-1.5.06l.3 7.5a.75.75 0 1 0 1.5-.06l-.3-7.5Zm4.34.06a.75.75 0 1 0-1.5-.06l-.3 7.5a.75.75 0 1 0 1.5.06l.3-7.5Z",clipRule:"evenodd"}))});e.s(["TrashIcon",0,r],71747)},14936,e=>{"use strict";var t=e.i(1415);let r=t.forwardRef(function({title:e,titleId:r,...s},l){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM18.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"}))});e.s(["EllipsisHorizontalIcon",0,r],14936)},21924,e=>{"use strict";var t=e.i(1415);let r=t.forwardRef(function({title:e,titleId:r,...s},l){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{d:"m2.695 14.762-1.262 3.155a.5.5 0 0 0 .65.65l3.155-1.262a4 4 0 0 0 1.343-.886L17.5 5.501a2.121 2.121 0 0 0-3-3L3.58 13.419a4 4 0 0 0-.885 1.343Z"}))});e.s(["PencilIcon",0,r],21924)},38163,e=>{"use strict";var t=e.i(1415),r=e.i(93736);e.s(["default",0,({children:e,container:s=null,className:l=""})=>{let a=(0,t.useRef)(null),[n,i]=(0,t.useState)(!1);return((0,t.useEffect)(()=>{let e=document.createElement("div");l&&(e.className=l),a.current=e;let t=s||document.body;return t.appendChild(e),i(!0),()=>{a.current&&t.contains(a.current)&&t.removeChild(a.current)}},[s,l]),n&&a.current)?(0,r.createPortal)(e,a.current):null}])},22103,e=>{"use strict";var t=e.i(69178),r=e.i(1415),s=e.i(98183),l=e.i(14936),a=e.i(21924),n=e.i(71747),i=e.i(38163);e.s(["default",0,({onEdit:e,onDelete:o,editLabel:u,deleteLabel:d,showEdit:c=!0,showDelete:f=!0})=>{let{formatMessage:m}=(0,s.useIntl)(),[g,h]=(0,r.useState)(!1),[x,v]=(0,r.useState)({top:0,left:0}),p=(0,r.useRef)(null),w=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=e=>{p.current&&!p.current.contains(e.target)&&h(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let b=(e,t)=>{e.stopPropagation(),e.preventDefault(),t&&t(),h(!1)};return 0===[c&&e,f&&o].filter(Boolean).length?null:(0,t.jsxs)("div",{className:"flex justify-end w-full",children:[(0,t.jsx)("button",{ref:w,type:"button",onClick:e=>{e.stopPropagation(),e.preventDefault(),g||(()=>{if(!w.current)return;let e=w.current.getBoundingClientRect(),t=e.bottom+4,r=e.right-192;r<8&&(r=8),t+80>window.innerHeight-8&&(t=e.top-80-4),v({top:t,left:r})})(),h(!g)},className:"flex items-center justify-center w-8 h-8 rounded-md hover:bg-slate-100 dark:hover:bg-slate-700 transition-colors","aria-label":m({id:"table_actions_menu",defaultMessage:"Actions menu"}),children:(0,t.jsx)(l.EllipsisHorizontalIcon,{className:"w-5 h-5 text-slate-500 dark:text-slate-400"})}),g&&(0,t.jsx)(i.default,{children:(0,t.jsx)("div",{ref:p,className:"fixed w-48 bg-white dark:bg-slate-800 rounded-md shadow-xl border border-slate-200 dark:border-slate-700 z-[9999]",style:{top:x.top,left:x.left},children:(0,t.jsxs)("div",{className:"py-1",children:[c&&e&&(0,t.jsxs)("button",{type:"button",onClick:t=>b(t,e),className:"flex items-center w-full px-4 py-2 text-sm text-slate-700 dark:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-700 transition-colors",children:[(0,t.jsx)(a.PencilIcon,{className:"mr-3 h-5 w-5"}),u||m({id:"edit",defaultMessage:"Edit"})]}),f&&o&&(0,t.jsxs)("button",{type:"button",onClick:e=>b(e,o),className:"flex items-center w-full px-4 py-2 text-sm text-rose-500 dark:text-rose-400 hover:bg-rose-50 dark:hover:bg-rose-900/20 transition-colors",children:[(0,t.jsx)(n.TrashIcon,{className:"mr-3 h-5 w-5"}),d||m({id:"delete",defaultMessage:"Delete"})]})]})})})]})}])},76691,e=>{"use strict";var t=e.i(71983);let r=t.gql`
|
|
2
|
+
fragment LanguageFragment on Language {
|
|
3
|
+
_id
|
|
4
|
+
isoCode
|
|
5
|
+
isActive
|
|
6
|
+
isBase
|
|
7
|
+
name
|
|
8
|
+
}
|
|
9
|
+
`;e.s(["default",0,r])},23335,e=>{"use strict";var t=e.i(71983),r=e.i(13699),s=e.i(76691);let l=t.gql`
|
|
10
|
+
query Languages(
|
|
11
|
+
$queryString: String
|
|
12
|
+
$offset: Int
|
|
13
|
+
$limit: Int
|
|
14
|
+
$includeInactive: Boolean
|
|
15
|
+
$sort: [SortOptionInput!]
|
|
16
|
+
) {
|
|
17
|
+
languages(
|
|
18
|
+
queryString: $queryString
|
|
19
|
+
offset: $offset
|
|
20
|
+
limit: $limit
|
|
21
|
+
includeInactive: $includeInactive
|
|
22
|
+
sort: $sort
|
|
23
|
+
) {
|
|
24
|
+
...LanguageFragment
|
|
25
|
+
}
|
|
26
|
+
languagesCount(includeInactive: $includeInactive, queryString: $queryString)
|
|
27
|
+
}
|
|
28
|
+
${s.default}
|
|
29
|
+
`;e.s(["default",0,({queryString:e="",limit:t=20,offset:s=0,includeInactive:a=!0,sort:n=[]}={})=>{let{data:i,loading:o,error:u,fetchMore:d}=(0,r.useQuery)(l,{variables:{queryString:e,limit:t,offset:s,includeInactive:a,sort:n}}),c=i?.languages||[],f=i?.languagesCount,m=c?.length<f;return{languages:c,languagesCount:f,hasMore:m,loading:o,error:u,loadMore:()=>{d({variables:{offset:c?.length}})}}}])},360,e=>{"use strict";var t=e.i(71983);let r=t.gql`
|
|
30
|
+
fragment CountryFragment on Country {
|
|
31
|
+
_id
|
|
32
|
+
isoCode
|
|
33
|
+
isActive
|
|
34
|
+
isBase
|
|
35
|
+
|
|
36
|
+
defaultCurrency {
|
|
37
|
+
_id
|
|
38
|
+
isoCode
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
`;e.s(["default",0,r])},63458,e=>{"use strict";var t=e.i(71983),r=e.i(13699),s=e.i(360);let l=t.gql`
|
|
42
|
+
query Countries(
|
|
43
|
+
$queryString: String
|
|
44
|
+
$limit: Int
|
|
45
|
+
$offset: Int
|
|
46
|
+
$includeInactive: Boolean
|
|
47
|
+
$sort: [SortOptionInput!]
|
|
48
|
+
) {
|
|
49
|
+
countries(
|
|
50
|
+
queryString: $queryString
|
|
51
|
+
limit: $limit
|
|
52
|
+
offset: $offset
|
|
53
|
+
includeInactive: $includeInactive
|
|
54
|
+
sort: $sort
|
|
55
|
+
) {
|
|
56
|
+
...CountryFragment
|
|
57
|
+
}
|
|
58
|
+
countriesCount(includeInactive: $includeInactive, queryString: $queryString)
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
${s.default}
|
|
62
|
+
`;e.s(["default",0,({queryString:e="",limit:t=20,offset:s=0,includeInactive:a=!0,sort:n=[]}={})=>{let{data:i,loading:o,error:u,fetchMore:d}=(0,r.useQuery)(l,{variables:{queryString:e,limit:t,offset:s,includeInactive:a,sort:n}}),c=i?.countries||[],f=i?.countriesCount,m=c?.length<f;return{countries:c,countriesCount:f,hasMore:m,loading:o,error:u,loadMore:()=>{d({variables:{offset:c?.length}})}}}])},81312,79174,58724,e=>{"use strict";var t=e.i(1415),r=e.i(69178),s=e.i(98183),l=e.i(23335),a=e.i(63458),n=e.i(71983),i=e.i(13699);let o=n.gql`
|
|
63
|
+
query ShopInfo {
|
|
64
|
+
shopInfo {
|
|
65
|
+
_id
|
|
66
|
+
version
|
|
67
|
+
language {
|
|
68
|
+
_id
|
|
69
|
+
isoCode
|
|
70
|
+
name
|
|
71
|
+
}
|
|
72
|
+
country {
|
|
73
|
+
_id
|
|
74
|
+
isoCode
|
|
75
|
+
flagEmoji
|
|
76
|
+
name
|
|
77
|
+
defaultCurrency {
|
|
78
|
+
_id
|
|
79
|
+
isoCode
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
adminUiConfig {
|
|
83
|
+
singleSignOnURL
|
|
84
|
+
externalLinks {
|
|
85
|
+
href
|
|
86
|
+
title
|
|
87
|
+
target
|
|
88
|
+
}
|
|
89
|
+
customProperties {
|
|
90
|
+
entityName
|
|
91
|
+
inlineFragment
|
|
92
|
+
}
|
|
93
|
+
productTags
|
|
94
|
+
assortmentTags
|
|
95
|
+
userTags
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
`,u=()=>{let{data:e,loading:t,error:r}=(0,i.useQuery)(o,{fetchPolicy:"cache-first"}),{shopInfo:s}=e||{};return{shopInfo:s,defaultLocale:[s?.language?.isoCode,s?.country?.isoCode?.toUpperCase()].filter(Boolean)?.join("-"),loading:t,error:r}};e.s(["default",0,u],79174);var d=e.i(30060);let c=(0,t.createContext)(void 0);e.s(["AppContextWrapper",0,({children:e,onlyFull:n=!1})=>{let i,{languages:o}=(0,l.default)(),{locale:f}=(0,s.useIntl)(),[m,g]=(0,d.default)("selectedLocale",null),{shopInfo:h,loading:x}=u(),{countries:v}=(0,a.default)(),[p,w]=(0,t.useState)(f),b=e=>{g(e),w(e)};(0,t.useEffect)(()=>{m?w(m):x||b(`${h?.language?.isoCode}-${h?.country?.isoCode?.toUpperCase()}`)},[h,x,f]);let y=(i=[],o.forEach(({_id:e,isoCode:t})=>{i.push({_id:e,isoCode:t}),v.forEach(({isoCode:r,_id:s})=>{let l=[t,r.toUpperCase()].join("-");(e=>{try{return new Intl.DateTimeFormat(e).resolvedOptions().locale.toLowerCase()===e.toLowerCase()}catch(e){return!1}})(l)&&i.push({_id:`${s}-${e}`,isoCode:l})})}),i).filter(e=>!n||e.isoCode.includes("-")),j=!!h?.language&&!!h?.country;return(0,r.jsx)(c.Provider,{value:{selectedLocale:p,setSelectedLocale:b,languageDialectList:y,isSystemReady:j,shopInfo:h},children:e})},"default",0,c],58724),e.s(["default",0,()=>{let e=(0,t.useContext)(c);if(!e)throw Error("useLocale must be used within a LocaleProvider");return e}],81312)},47024,e=>{"use strict";var t=e.i(69178),r=e.i(1415),s=e.i(12442),l=e.i(81312);e.s(["default",0,({children:e,onlyFull:a=!1})=>{let{languageDialectList:n,selectedLocale:i,setSelectedLocale:o}=(0,l.default)(),u=(0,r.useContext)(s.FormWrapperContext),d=n.filter(e=>!a||e.isoCode.includes("-"));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:`w-fit mt-5 mb-3 ${u?"ml-5":""}`,children:(0,t.jsx)("select",{id:"locale-wrapper",className:"cursor-pointer rounded-md border-1 border-slate-300 dark:border-slate-700 py-1 pr-8 text-sm lg:py-1 lg:pr-10 text-black dark:text-white dark:bg-slate-800 shadow-xs focus:outline-hidden focus:ring-2 focus:ring-slate-800",value:i||"",onChange:e=>{e.stopPropagation(),o(e.target.value)},children:d?.map(e=>(0,t.jsx)("option",{value:e.isoCode,children:e.isoCode},e._id))})}),(0,t.jsx)("div",{children:r.default.cloneElement(e)})]})}])},92699,e=>{"use strict";var t=e.i(1415);let r=t.forwardRef(function({title:e,titleId:r,...s},l){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))});e.s(["CheckIcon",0,r],92699)},58930,e=>{"use strict";var t=e.i(1415);let r=t.forwardRef(function({title:e,titleId:r,...s},l){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))});e.s(["ChevronDownIcon",0,r],58930)},47426,(e,t,r)=>{"use strict";var s=e.r(1415),l="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=s.useSyncExternalStore,n=s.useRef,i=s.useEffect,o=s.useMemo,u=s.useDebugValue;r.useSyncExternalStoreWithSelector=function(e,t,r,s,d){var c=n(null);if(null===c.current){var f={hasValue:!1,value:null};c.current=f}else f=c.current;var m=a(e,(c=o(function(){function e(e){if(!i){if(i=!0,a=e,e=s(e),void 0!==d&&f.hasValue){var t=f.value;if(d(t,e))return n=t}return n=e}if(t=n,l(a,e))return t;var r=s(e);return void 0!==d&&d(t,r)?(a=e,t):(a=e,n=r)}var a,n,i=!1,o=void 0===r?null:r;return[function(){return e(t())},null===o?void 0:function(){return e(o())}]},[t,r,s,d]))[0],c[1]);return i(function(){f.hasValue=!0,f.value=m},[m]),u(m),m}},42806,(e,t,r)=>{"use strict";t.exports=e.r(47426)},35348,e=>{"use strict";var t=e.i(71983);let r=t.gql`
|
|
100
|
+
fragment FilterFragment on Filter {
|
|
101
|
+
_id
|
|
102
|
+
updated
|
|
103
|
+
created
|
|
104
|
+
key
|
|
105
|
+
isActive
|
|
106
|
+
type
|
|
107
|
+
options {
|
|
108
|
+
_id
|
|
109
|
+
texts {
|
|
110
|
+
_id
|
|
111
|
+
title
|
|
112
|
+
subtitle
|
|
113
|
+
locale
|
|
114
|
+
}
|
|
115
|
+
value
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
`;e.s(["default",0,r])},64120,e=>{"use strict";var t=e.i(71983),r=e.i(13699),s=e.i(35348);let l=t.gql`
|
|
119
|
+
query Filters(
|
|
120
|
+
$queryString: String
|
|
121
|
+
$limit: Int
|
|
122
|
+
$offset: Int
|
|
123
|
+
$includeInactive: Boolean
|
|
124
|
+
$sort: [SortOptionInput!]
|
|
125
|
+
) {
|
|
126
|
+
filters(
|
|
127
|
+
queryString: $queryString
|
|
128
|
+
limit: $limit
|
|
129
|
+
offset: $offset
|
|
130
|
+
includeInactive: $includeInactive
|
|
131
|
+
sort: $sort
|
|
132
|
+
) {
|
|
133
|
+
...FilterFragment
|
|
134
|
+
texts {
|
|
135
|
+
_id
|
|
136
|
+
title
|
|
137
|
+
subtitle
|
|
138
|
+
locale
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
filtersCount(includeInactive: $includeInactive, queryString: $queryString)
|
|
142
|
+
}
|
|
143
|
+
${s.default}
|
|
144
|
+
`;e.s(["default",0,({queryString:e="",limit:t=20,offset:s=0,includeInactive:a=!0,sort:n=[],forceLocale:i=""}={})=>{let{data:o,loading:u,error:d,fetchMore:c,client:f}=(0,r.useQuery)(l,{context:{headers:{forceLocale:i}},variables:{queryString:e,limit:t,offset:s,includeInactive:a,sort:n}}),m=o?.filters||[],g=o?.filtersCount,h=m?.length<g;return{filters:m,filtersCount:g,hasMore:h,loading:u,error:d,loadMore:()=>{c({variables:{offset:m?.length}})},client:f}}])},32933,(e,t,r)=>{let s="/assortments/AssortmentDetailPage";(window.__NEXT_P=window.__NEXT_P||[]).push([s,()=>e.r(74709)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([s])})},8233,e=>{e.v(t=>Promise.all(["static/chunks/c88c6cd9171a39a6.js"].map(t=>e.l(t))).then(()=>t(64324)))},69209,e=>{e.v(t=>Promise.all(["static/chunks/aac8a0823d648ca4.js"].map(t=>e.l(t))).then(()=>t(3506)))}]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,17362,(e,r,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var i={VALID_LOADERS:function(){return
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,17362,(e,r,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var i={VALID_LOADERS:function(){return d},imageConfigDefault:function(){return s}};for(var t in i)Object.defineProperty(a,t,{enumerable:!0,get:i[t]});let d=["default","imgix","cloudinary","akamai","custom"],s={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumRedirects:3,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1}},76648,(e,r,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"ImageConfigContext",{enumerable:!0,get:function(){return d}});let i=e.r(23726)._(e.r(1415)),t=e.r(17362),d=i.default.createContext(t.imageConfigDefault)},12442,e=>{"use strict";var r=e.i(69178),a=e.i(1415),i=e.i(13071);let t=(0,a.createContext)(!1);e.s(["FormWrapperContext",0,t,"default",0,({children:e,className:a=""})=>(0,r.jsx)(t.Provider,{value:!0,children:(0,r.jsx)("div",{className:"sm:max-w-full",children:(0,r.jsx)("div",{className:(0,i.default)("bg-white dark:bg-slate-800 rounded-md shadow-sm overflow-hidden",a),children:e})})})])},82028,e=>{"use strict";var r=e.i(69178),a=e.i(13071),i=e.i(4142),t=e.i(88500);e.s(["default",0,e=>{let{options:d,...s}=(0,i.default)(e),{className:l}=e||{className:""};return(0,r.jsx)(t.default,{...s,children:(0,r.jsx)("div",{className:"select-wrap",children:(0,r.jsxs)("select",{className:(0,a.default)("block w-full dark:bg-slate-900 dark:text-white rounded-md border-1 border-slate-300 dark:border-slate-700 py-2.5 pl-3 pr-10 text-base text-black shadow-xs focus:outline-hidden focus:ring-2 focus:ring-slate-800 sm:text-sm",l,{"border-rose-700 text-rose-600 dark:border-rose-500 dark:text-rose-400":!!s.error}),disabled:s.disabled,id:s.name,name:s.name,onChange:s.onChange,onBlur:s.onBlur,value:s.value,children:[(0,r.jsx)("option",{className:"dark:text-slate-200",value:"",disabled:s.required,hidden:s.required,children:s.placeholder||s.label}),Object.entries(d).map(([e,a])=>(0,r.jsx)("option",{className:"dark:text-slate-200",value:e,children:a},e))]})})})}])},96459,e=>{"use strict";e.s(["default",0,(e,r,a)=>Object.assign({},...e?.map(e=>({[e[a]]:e[r]}))||[])])},90112,e=>{"use strict";var r=e.i(71983);let a=r.gql`
|
|
2
2
|
fragment AddressFragment on Address {
|
|
3
3
|
firstName
|
|
4
4
|
lastName
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
`;e.s(["default",0,()=>{let{data:e,loading:r,error:t}=(0,a.useQuery)(i);return{deliveryProviderType:e?.deliveryProviderType?.options||[],loading:r,error:t}}])},40892,e=>{"use strict";var r=e.i(69178),a=e.i(98183),i=e.i(62010),t=e.i(82028),
|
|
21
|
+
`;e.s(["default",0,()=>{let{data:e,loading:r,error:t}=(0,a.useQuery)(i);return{deliveryProviderType:e?.deliveryProviderType?.options||[],loading:r,error:t}}])},40892,e=>{"use strict";var r=e.i(69178),a=e.i(98183),i=e.i(62010),t=e.i(82028),d=e.i(23518),s=e.i(5641),l=e.i(12442);e.s(["default",0,({onSubmit:e,onSubmitSuccess:o,providerTypes:n,providerInterfaces:u,onProviderChange:c,readOnly:v})=>{let{formatMessage:p}=(0,a.useIntl)(),m=p({id:"provider_created_success",defaultMessage:"Provider created successfully!"}),y=(0,s.default)({submit:e,onSubmitSuccess:o,successMessage:m,enableReinitialize:!0,initialValues:{adapterKey:"",type:""}});return(0,r.jsx)(l.default,{children:(0,r.jsx)(i.default,{form:y,children:(0,r.jsxs)("div",{className:"shadow-sm dark:shadow-none sm:max-w-full sm:rounded-lg",children:[(0,r.jsxs)("div",{className:"px-4 pt-4 pb-6",children:[(0,r.jsx)(t.default,{onChange:e=>c(e.target.value),name:"type",disabled:v,required:!0,label:p({id:"type",defaultMessage:"Type"}),options:n,className:"mb-5"}),(0,r.jsx)(t.default,{name:"adapterKey",required:!0,disabled:v,options:u,label:p({id:"adapter",defaultMessage:"Adapter"}),className:"mt-2"})]}),!v&&(0,r.jsx)("div",{className:"border-t-slate-100 border-t dark:border-t-slate-700 space-y-6 bg-slate-50 dark:bg-slate-900 p-6 px-5 text-right",children:(0,r.jsx)(d.default,{label:p({id:"create_provider",defaultMessage:"Create provider"})})})]})})})}])},22372,e=>{"use strict";var r=e.i(69178),a=e.i(1415),i=e.i(5858),t=e.i(49061),d=e.i(98183),s=e.i(19372),l=e.i(23529),o=e.i(40892),n=e.i(71588),u=e.i(96459),c=e.i(71983),v=e.i(13686),p=e.i(90112);let m=c.gql`
|
|
22
22
|
mutation CreateDeliveryProvider(
|
|
23
23
|
$deliveryProvider: CreateDeliveryProviderInput!
|
|
24
24
|
) {
|
|
@@ -56,4 +56,4 @@
|
|
|
56
56
|
label
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
`;var b=e.i(34502);e.s(["default",0,()=>{let[e,c]=(0,a.useState)(i.IDeliveryProviderType.Shipping),{formatMessage:p}=(0,
|
|
59
|
+
`;var b=e.i(34502);e.s(["default",0,()=>{let[e,c]=(0,a.useState)(i.IDeliveryProviderType.Shipping),{formatMessage:p}=(0,d.useIntl)(),{createDeliveryProvider:g}=(()=>{let[e,{data:r,error:a,loading:i}]=(0,v.useMutation)(m);return{createDeliveryProvider:async({deliveryProvider:{adapterKey:r,type:a}})=>e({variables:{deliveryProvider:{adapterKey:r,type:a}},refetchQueries:["DeliveryProviders","ShopStatus"]}),newDeliveryProvider:r?.createDeliveryProvider,loading:i,error:a}})(),{deliveryProviderType:h}=(0,b.default)(),{deliveryInterfaces:x}=(({providerType:e=null})=>{let{data:r,loading:a,error:i}=(0,y.useQuery)(f,{skip:!e,variables:{providerType:e}});return{deliveryInterfaces:r?.deliveryInterfaces||[],loading:a,error:i}})({providerType:e}),{hasRole:P}=(0,s.default)(),j=async({adapterKey:e,type:r})=>{let{data:a,error:i}=await g({deliveryProvider:{adapterKey:e,type:r}});return!i&&{success:!0,data:a?.createDeliveryProvider}},_=(0,t.useRouter)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.default,{}),(0,r.jsxs)("div",{className:"mx-auto sm:max-w-2xl",children:[(0,r.jsx)(n.default,{headerText:p({id:"new_delivery_provider",defaultMessage:"New delivery provider"})}),(0,r.jsx)("div",{className:"mt-6",children:(0,r.jsx)(o.default,{readOnly:!P(i.IRoleAction.ManageDeliveryProviders),providerInterfaces:(0,u.default)(x,"label","value"),providerTypes:(0,u.default)(h,"label","value"),onSubmit:j,onSubmitSuccess:(e,{_id:r})=>{_.replace(`/delivery-provider?deliveryProviderId=${r}`)},onProviderChange:e=>c(e)})})]})]})}],22372)},21633,(e,r,a)=>{let i="/delivery-provider/new";(window.__NEXT_P=window.__NEXT_P||[]).push([i,()=>e.r(22372)]),r.hot&&r.hot.dispose(function(){window.__NEXT_P.push([i])})},8233,e=>{e.v(r=>Promise.all(["static/chunks/c88c6cd9171a39a6.js"].map(r=>e.l(r))).then(()=>r(64324)))},69209,e=>{e.v(r=>Promise.all(["static/chunks/aac8a0823d648ca4.js"].map(r=>e.l(r))).then(()=>r(3506)))}]);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
__turbopack_load_page_chunks__("/products", [
|
|
2
|
+
"static/chunks/259b3147fc998da8.js",
|
|
3
|
+
"static/chunks/38200c8cb2429294.js",
|
|
4
|
+
"static/chunks/4c5ecbab28345efa.js",
|
|
5
|
+
"static/chunks/854229936d29e550.js",
|
|
6
|
+
"static/chunks/95ed0d70c975eb05.js",
|
|
7
|
+
"static/chunks/3398dc70e287e1b3.js",
|
|
8
|
+
"static/chunks/4f810ce035ebc0e5.js",
|
|
9
|
+
"static/chunks/3f70b074fe0cb7eb.js",
|
|
10
|
+
"static/chunks/1d815b4154fd879c.js",
|
|
11
|
+
"static/chunks/34cdee51a883e092.js",
|
|
12
|
+
"static/chunks/b930222155336289.js",
|
|
13
|
+
"static/chunks/1b8928b23c220769.js",
|
|
14
|
+
"static/chunks/65cf017dbb3312cc.js",
|
|
15
|
+
"static/chunks/9d64dabee2592951.js",
|
|
16
|
+
"static/chunks/d211a2fd31fe667b.js",
|
|
17
|
+
"static/chunks/87242fd9979883c9.js",
|
|
18
|
+
"static/chunks/b960c3c83b1c4bee.js",
|
|
19
|
+
"static/chunks/ee25b5b16cf2ec57.js",
|
|
20
|
+
"static/chunks/1ccb09e78f959ee0.js",
|
|
21
|
+
"static/chunks/turbopack-0ec9aa6183ed6e3c.js"
|
|
22
|
+
])
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
__turbopack_load_page_chunks__("/423", [
|
|
2
|
+
"static/chunks/a70ec3c3d4e3597c.js",
|
|
3
|
+
"static/chunks/87242fd9979883c9.js",
|
|
4
|
+
"static/chunks/fd20130b507a7ded.js",
|
|
5
|
+
"static/chunks/3398dc70e287e1b3.js",
|
|
6
|
+
"static/chunks/ee25b5b16cf2ec57.js",
|
|
7
|
+
"static/chunks/b960c3c83b1c4bee.js",
|
|
8
|
+
"static/chunks/d211a2fd31fe667b.js",
|
|
9
|
+
"static/chunks/turbopack-3fc3303a0ec531f8.js"
|
|
10
|
+
])
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
`,n=()=>{let{data:e,loading:r,error:t}=(0,s.useQuery)(i,{fetchPolicy:"cache-first"}),{shopInfo:a}=e||{};return{shopInfo:a,defaultLocale:[a?.language?.isoCode,a?.country?.isoCode?.toUpperCase()].filter(Boolean)?.join("-"),loading:r,error:t}};e.s(["default",0,n],79174);var b=e.i(30060);let g=(0,r.createContext)(void 0);e.s(["AppContextWrapper",0,({children:e,onlyFull:l=!1})=>{let s,{languages:i}=(0,d.default)(),{locale:u}=(0,a.useIntl)(),[x,p]=(0,b.default)("selectedLocale",null),{shopInfo:c,loading:m}=n(),{countries:k}=(0,o.default)(),[y,f]=(0,r.useState)(u),h=e=>{p(e),f(e)};(0,r.useEffect)(()=>{x?f(x):m||h(`${c?.language?.isoCode}-${c?.country?.isoCode?.toUpperCase()}`)},[c,m,u]);let v=(s=[],i.forEach(({_id:e,isoCode:r})=>{s.push({_id:e,isoCode:r}),k.forEach(({isoCode:t,_id:a})=>{let d=[r,t.toUpperCase()].join("-");(e=>{try{return new Intl.DateTimeFormat(e).resolvedOptions().locale.toLowerCase()===e.toLowerCase()}catch(e){return!1}})(d)&&s.push({_id:`${a}-${e}`,isoCode:d})})}),s).filter(e=>!l||e.isoCode.includes("-")),w=!!c?.language&&!!c?.country;return(0,t.jsx)(g.Provider,{value:{selectedLocale:y,setSelectedLocale:h,languageDialectList:v,isSystemReady:w,shopInfo:c},children:e})},"default",0,g],58724),e.s(["default",0,()=>{let e=(0,r.useContext)(g);if(!e)throw Error("useLocale must be used within a LocaleProvider");return e}],81312)},47024,e=>{"use strict";var r=e.i(69178),t=e.i(1415),a=e.i(12442),d=e.i(81312);e.s(["default",0,({children:e,onlyFull:o=!1})=>{let{languageDialectList:l,selectedLocale:s,setSelectedLocale:i}=(0,d.default)(),n=(0,t.useContext)(a.FormWrapperContext),b=l.filter(e=>!o||e.isoCode.includes("-"));return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:`w-fit mt-5 mb-3 ${n?"ml-5":""}`,children:(0,r.jsx)("select",{id:"locale-wrapper",className:"cursor-pointer rounded-md border-1 border-slate-300 dark:border-slate-700 py-1 pr-8 text-sm lg:py-1 lg:pr-10 text-black dark:text-white dark:bg-slate-800 shadow-xs focus:outline-hidden focus:ring-2 focus:ring-slate-800",value:s||"",onChange:e=>{e.stopPropagation(),i(e.target.value)},children:b?.map(e=>(0,r.jsx)("option",{value:e.isoCode,children:e.isoCode},e._id))})}),(0,r.jsx)("div",{children:t.default.cloneElement(e)})]})}])},39381,e=>{"use strict";let r={red:{bg:{50:"bg-rose-50 dark:bg-rose-900/20",100:"bg-rose-100 dark:bg-rose-900/30",200:"bg-rose-200",300:"bg-rose-300 dark:bg-rose-900/30",400:"bg-rose-400",500:"bg-rose-500",600:"bg-rose-600",700:"bg-rose-700",800:"bg-rose-800",900:"bg-rose-900"},text:{50:"text-rose-50",100:"text-rose-100",200:"text-rose-200",300:"text-rose-300",400:"text-rose-400 dark:text-rose-300",500:"text-rose-500",600:"text-rose-600 dark:text-rose-400",700:"text-rose-700 dark:text-rose-300",800:"text-rose-800 dark:text-rose-200",900:"text-rose-900"},border:{50:"border-rose-50",100:"border-rose-100",200:"border-rose-200 dark:border-rose-800",300:"border-rose-300 dark:border-rose-700",400:"border-rose-400 dark:border-rose-600",500:"border-rose-500",600:"border-rose-600",700:"border-rose-700",800:"border-rose-800",900:"border-rose-900"}},pink:{bg:{50:"bg-pink-50",100:"bg-pink-100",200:"bg-pink-200",300:"bg-pink-300",400:"bg-pink-400",500:"bg-pink-500",600:"bg-pink-600",700:"bg-pink-700",800:"bg-pink-800",900:"bg-pink-900"},text:{50:"text-pink-50",100:"text-pink-100",200:"text-pink-200",300:"text-pink-300",400:"text-pink-400",500:"text-pink-500",600:"text-pink-600",700:"text-pink-700",800:"text-pink-800",900:"text-pink-900"},border:{50:"border-pink-50",100:"border-pink-100",200:"border-pink-200",300:"border-pink-300",400:"border-pink-400",500:"border-pink-500",600:"border-pink-600",700:"border-pink-700",800:"border-pink-800",900:"border-pink-900"}},purple:{bg:{50:"bg-purple-50 dark:bg-purple-900/20",100:"bg-purple-100 dark:bg-purple-900/30",200:"bg-purple-200",300:"bg-purple-300",400:"bg-purple-400",500:"bg-purple-500",600:"bg-purple-600",700:"bg-purple-700",800:"bg-purple-800",900:"bg-purple-900"},text:{50:"text-purple-50",100:"text-purple-100",200:"text-purple-200",300:"text-purple-300",400:"text-purple-400 dark:text-purple-300",500:"text-purple-500",600:"text-purple-600 dark:text-purple-400",700:"text-purple-700",800:"text-purple-800 dark:text-purple-300",900:"text-purple-900"},border:{50:"border-purple-50",100:"border-purple-100",200:"border-purple-200 dark:border-purple-600",300:"border-purple-300 dark:border-purple-500",400:"border-purple-400 dark:border-purple-500",500:"border-purple-500",600:"border-purple-600",700:"border-purple-700",800:"border-purple-800",900:"border-purple-900"}},"deep-purple":{bg:{50:"bg-deep-purple-50",100:"bg-deep-purple-100",200:"bg-deep-purple-200",300:"bg-deep-purple-300",400:"bg-deep-purple-400",500:"bg-deep-purple-500",600:"bg-deep-purple-600",700:"bg-deep-purple-700",800:"bg-deep-purple-800",900:"bg-deep-purple-900"},text:{50:"text-deep-purple-50",100:"text-deep-purple-100",200:"text-deep-purple-200",300:"text-deep-purple-300",400:"text-deep-purple-400",500:"text-deep-purple-500",600:"text-deep-purple-600",700:"text-deep-purple-700",800:"text-deep-purple-800",900:"text-deep-purple-900"},border:{50:"border-deep-purple-50",100:"border-deep-purple-100",200:"border-deep-purple-200",300:"border-deep-purple-300",400:"border-deep-purple-400",500:"border-deep-purple-500",600:"border-deep-purple-600",700:"border-deep-purple-700",800:"border-deep-purple-800",900:"border-deep-purple-900"}},blue:{bg:{50:"bg-sky-50 dark:bg-sky-900/20",100:"bg-sky-100 dark:bg-sky-900/30",200:"bg-sky-200",300:"bg-sky-300",400:"bg-sky-400",500:"bg-sky-500",600:"bg-sky-600",700:"bg-sky-700",800:"bg-sky-800",900:"bg-sky-900"},text:{50:"text-sky-50",100:"text-sky-100",200:"text-sky-200",300:"text-sky-300",400:"text-sky-400 dark:text-sky-300",500:"text-sky-500",600:"text-sky-600 dark:text-sky-400",700:"text-sky-700 dark:text-sky-300",800:"text-sky-800 dark:text-sky-200",900:"text-sky-900"},border:{50:"border-sky-50",100:"border-sky-100",200:"border-sky-200 dark:border-sky-800",300:"border-sky-300 dark:border-sky-700",400:"border-sky-400 dark:border-sky-600",500:"border-sky-500",600:"border-sky-600",700:"border-sky-700",800:"border-sky-800",900:"border-sky-900"}},"light-blue":{bg:{50:"bg-sky-50",100:"bg-sky-100",200:"bg-sky-200",300:"bg-sky-300",400:"bg-sky-400",500:"bg-sky-500",600:"bg-sky-600",700:"bg-sky-700",800:"bg-sky-800",900:"bg-sky-900"},text:{50:"text-sky-50",100:"text-sky-100",200:"text-sky-200",300:"text-sky-300",400:"text-sky-400",500:"text-sky-500",600:"text-sky-600",700:"text-sky-700",800:"text-sky-800",900:"text-sky-900"},border:{50:"border-sky-50",100:"border-sky-100",200:"border-sky-200",300:"border-sky-300",400:"border-sky-400",500:"border-sky-500",600:"border-sky-600",700:"border-sky-700",800:"border-sky-800",900:"border-sky-900"}},indigo:{bg:{50:"bg-indigo-50",100:"bg-indigo-100",200:"bg-indigo-200",300:"bg-indigo-300",400:"bg-indigo-400",500:"bg-indigo-500",600:"bg-indigo-600",700:"bg-indigo-700",800:"bg-indigo-800",900:"bg-indigo-900"},text:{50:"text-indigo-50",100:"text-indigo-100",200:"text-indigo-200",300:"text-indigo-300",400:"text-indigo-400",500:"text-indigo-500",600:"text-indigo-600",700:"text-indigo-700",800:"text-indigo-800",900:"text-indigo-900"},border:{50:"border-indigo-50",100:"border-indigo-100",200:"border-indigo-200",300:"border-indigo-300",400:"border-indigo-400",500:"border-indigo-500",600:"border-indigo-600",700:"border-indigo-700",800:"border-indigo-800",900:"border-indigo-900"}},cyan:{bg:{50:"bg-cyan-50 dark:bg-cyan-900/20",100:"bg-cyan-100 dark:bg-cyan-900/30",200:"bg-cyan-200",300:"bg-cyan-300",400:"bg-cyan-400",500:"bg-cyan-500",600:"bg-cyan-600",700:"bg-cyan-700",800:"bg-cyan-800",900:"bg-cyan-900"},text:{50:"text-cyan-50",100:"text-cyan-100",200:"text-cyan-200",300:"text-cyan-300",400:"text-cyan-400 dark:text-cyan-300",500:"text-cyan-500",600:"text-cyan-600 dark:text-cyan-400",700:"text-cyan-700 dark:text-cyan-300",800:"text-cyan-800 dark:text-cyan-200",900:"text-cyan-900"},border:{50:"border-cyan-50",100:"border-cyan-100",200:"border-cyan-200 dark:border-cyan-800",300:"border-cyan-300 dark:border-cyan-700",400:"border-cyan-400 dark:border-cyan-600",500:"border-cyan-500",600:"border-cyan-600",700:"border-cyan-700",800:"border-cyan-800",900:"border-cyan-900"}},teal:{bg:{50:"bg-teal-50 dark:bg-teal-900/20",100:"bg-teal-100 dark:bg-teal-900/30",200:"bg-teal-200",300:"bg-teal-300",400:"bg-teal-400",500:"bg-teal-500",600:"bg-teal-600",700:"bg-teal-700",800:"bg-teal-800",900:"bg-teal-900"},text:{50:"text-teal-50",100:"text-teal-100",200:"text-teal-200",300:"text-teal-300",400:"text-teal-400 dark:text-teal-300",500:"text-teal-500",600:"text-teal-600 dark:text-teal-400",700:"text-teal-700 dark:text-teal-300",800:"text-teal-800 dark:text-teal-200",900:"text-teal-900"},border:{50:"border-teal-50",100:"border-teal-100",200:"border-teal-200 dark:border-teal-800",300:"border-teal-300 dark:border-teal-700",400:"border-teal-400 dark:border-teal-600",500:"border-teal-500",600:"border-teal-600",700:"border-teal-700",800:"border-teal-800",900:"border-teal-900"}},green:{bg:{50:"bg-emerald-50 dark:bg-emerald-900/20",100:"bg-emerald-50 dark:bg-emerald-900/30",200:"bg-emerald-200",300:"bg-emerald-300",400:"bg-emerald-400",500:"bg-emerald-500",600:"bg-emerald-600",700:"bg-emerald-700",800:"bg-emerald-800",900:"bg-emerald-900"},text:{50:"text-emerald-50",100:"text-emerald-100",200:"text-emerald-200",300:"text-emerald-300",400:"text-emerald-400",500:"text-emerald-500",600:"text-emerald-600 dark:text-emerald-400",700:"text-emerald-700 dark:text-emerald-300",800:"text-emerald-700 dark:text-emerald-300",900:"text-emerald-900"},border:{50:"border-emerald-50",100:"border-emerald-100",200:"border-emerald-200 dark:border-emerald-800",300:"border-emerald-300 dark:border-emerald-700",400:"border-emerald-200 dark:border-emerald-800",500:"border-emerald-500",600:"border-emerald-600",700:"border-emerald-700",800:"border-emerald-800",900:"border-emerald-900"}},"light-green":{bg:{50:"bg-light-green-50",100:"bg-light-green-100",200:"bg-light-green-200",300:"bg-light-green-300",400:"bg-light-green-400",500:"bg-light-green-500",600:"bg-light-green-600",700:"bg-light-green-700",800:"bg-light-green-800",900:"bg-light-green-900"},text:{50:"text-light-green-50",100:"text-light-green-100",200:"text-light-green-200",300:"text-light-green-300",400:"text-light-green-400",500:"text-light-green-500",600:"text-light-green-600",700:"text-light-green-700",800:"text-light-green-800",900:"text-light-green-900"},border:{50:"border-light-green-50",100:"border-light-green-100",200:"border-light-green-200",300:"border-light-green-300",400:"border-light-green-400",500:"border-light-green-500",600:"border-light-green-600",700:"border-light-green-700",800:"border-light-green-800",900:"border-light-green-900"}},lime:{bg:{50:"bg-lime-50 dark:bg-lime-900/20",100:"bg-lime-100 dark:bg-lime-900/30",200:"bg-lime-200",300:"bg-lime-300",400:"bg-lime-400",500:"bg-lime-500",600:"bg-lime-600",700:"bg-lime-700",800:"bg-lime-800",900:"bg-lime-900"},text:{50:"text-lime-50",100:"text-lime-100",200:"text-lime-200",300:"text-lime-300",400:"text-lime-400 dark:text-lime-300",500:"text-lime-500",600:"text-lime-600 dark:text-lime-400",700:"text-lime-700 dark:text-lime-300",800:"text-lime-800 dark:text-lime-200",900:"text-lime-900"},border:{50:"border-lime-50",100:"border-lime-100",200:"border-lime-200 dark:border-lime-800",300:"border-lime-300 dark:border-lime-700",400:"border-lime-400 dark:border-lime-600",500:"border-lime-500",600:"border-lime-600",700:"border-lime-700",800:"border-lime-800",900:"border-lime-900"}},yellow:{bg:{50:"bg-yellow-50 dark:bg-yellow-900/20",100:"bg-amber-100 dark:bg-yellow-900/30",200:"bg-yellow-200",300:"bg-yellow-300",400:"bg-amber-400",500:"bg-amber-500",600:"bg-yellow-600",700:"bg-yellow-700",800:"bg-yellow-800",900:"bg-yellow-900"},text:{50:"text-yellow-50",100:"text-yellow-100",200:"text-yellow-200",300:"text-yellow-300",400:"text-amber-400 dark:text-yellow-300",500:"text-amber-500",600:"text-amber-600 dark:text-yellow-400",700:"text-yellow-700",800:"text-yellow-800 dark:text-yellow-300",900:"text-yellow-900"},border:{50:"border-yellow-50",100:"border-yellow-100",200:"border-yellow-200 dark:border-yellow-800",300:"border-yellow-300 dark:border-yellow-700",400:"border-amber-400 dark:border-yellow-800",500:"border-yellow-500",600:"border-yellow-600",700:"border-yellow-700",800:"border-yellow-800",900:"border-yellow-900"}},amber:{bg:{50:"bg-amber-50 dark:bg-amber-900/20",100:"bg-amber-100 dark:bg-amber-900/30",200:"bg-amber-200",300:"bg-amber-300",400:"bg-amber-400",500:"bg-amber-500",600:"bg-amber-600",700:"bg-amber-700",800:"bg-amber-800",900:"bg-amber-900"},text:{50:"text-amber-50",100:"text-amber-100",200:"text-amber-200",300:"text-amber-300",400:"text-amber-400 dark:text-amber-300",500:"text-amber-500",600:"text-amber-600 dark:text-amber-400",700:"text-amber-700 dark:text-amber-300",800:"text-amber-800 dark:text-amber-200",900:"text-amber-900"},border:{50:"border-amber-50",100:"border-amber-100",200:"border-amber-200 dark:border-amber-800",300:"border-amber-300 dark:border-amber-700",400:"border-amber-400 dark:border-amber-600",500:"border-amber-500",600:"border-amber-600",700:"border-amber-700",800:"border-amber-800",900:"border-amber-900"}},orange:{bg:{50:"bg-orange-50 dark:bg-orange-900/20",100:"bg-orange-100 dark:bg-orange-900/30",200:"bg-orange-200",300:"bg-orange-300",400:"bg-orange-400",500:"bg-orange-500",600:"bg-orange-600",700:"bg-orange-700",800:"bg-orange-800",900:"bg-orange-900"},text:{50:"text-orange-50",100:"text-orange-100",200:"text-orange-200",300:"text-orange-300",400:"text-orange-400 dark:text-orange-300",500:"text-orange-500",600:"text-orange-600 dark:text-orange-400",700:"text-orange-700 dark:text-orange-300",800:"text-orange-800 dark:text-orange-200",900:"text-orange-900"},border:{50:"border-orange-50",100:"border-orange-100",200:"border-orange-200 dark:border-orange-800",300:"border-orange-300 dark:border-orange-700",400:"border-orange-400 dark:border-orange-600",500:"border-orange-500",600:"border-orange-600",700:"border-orange-700",800:"border-orange-800",900:"border-orange-900"}},"deep-orange":{bg:{50:"bg-deep-orange-50",100:"bg-deep-orange-100",200:"bg-deep-orange-200",300:"bg-deep-orange-300",400:"bg-deep-orange-400",500:"bg-deep-orange-500",600:"bg-deep-orange-600",700:"bg-deep-orange-700",800:"bg-deep-orange-800",900:"bg-deep-orange-900"},text:{50:"text-deep-orange-50",100:"text-deep-orange-100",200:"text-deep-orange-200",300:"text-deep-orange-300",400:"text-deep-orange-400",500:"text-deep-orange-500",600:"text-deep-orange-600",700:"text-deep-orange-700",800:"text-deep-orange-800",900:"text-deep-orange-900"},border:{50:"border-deep-orange-50",100:"border-deep-orange-100",200:"border-deep-orange-200",300:"border-deep-orange-300",400:"border-deep-orange-400",500:"border-deep-orange-500",600:"border-deep-orange-600",700:"border-deep-orange-700",800:"border-deep-orange-800",900:"border-deep-orange-900"}},stone:{bg:{50:"bg-stone-50",100:"bg-stone-100",200:"bg-stone-200",300:"bg-stone-300",400:"bg-stone-400",500:"bg-stone-500",600:"bg-stone-600",700:"bg-stone-700",800:"bg-stone-800",900:"bg-stone-900"},text:{50:"text-stone-50",100:"text-stone-100",200:"text-stone-200",300:"text-stone-300",400:"text-stone-400",500:"text-stone-500",600:"text-stone-600",700:"text-stone-700",800:"text-stone-800",900:"text-stone-900"},border:{50:"border-stone-50",100:"border-stone-100",200:"border-stone-200",300:"border-stone-300",400:"border-stone-400",500:"border-stone-500",600:"border-stone-600",700:"border-stone-700",800:"border-stone-800",900:"border-stone-900"}},slate:{bg:{50:"bg-slate-50",100:"bg-slate-50 dark:bg-slate-800/50",200:"bg-slate-200",300:"bg-slate-300",400:"bg-slate-400",500:"bg-slate-500",600:"bg-slate-600",700:"bg-slate-700",800:"bg-slate-800",900:"bg-slate-900"},text:{50:"text-slate-50",100:"text-slate-100",200:"text-slate-200",300:"text-slate-300",400:"text-slate-400",500:"text-slate-500",600:"text-slate-600 dark:text-slate-400",700:"text-slate-700",800:"text-slate-600 dark:text-slate-400",900:"text-slate-900"},border:{50:"border-slate-50",100:"border-slate-100",200:"border-slate-300 dark:border-slate-700",300:"border-slate-300",400:"border-slate-300 dark:border-slate-700",500:"border-slate-500",600:"border-slate-600",700:"border-slate-700",800:"border-slate-800",900:"border-slate-900"}},rose:{bg:{50:"bg-rose-50 dark:bg-rose-900/20",100:"bg-rose-100 dark:bg-rose-900/30",200:"bg-rose-200",300:"bg-rose-300 dark:bg-rose-900/30",400:"bg-rose-400",500:"bg-rose-500",600:"bg-rose-600",700:"bg-rose-700",800:"bg-rose-800",900:"bg-rose-900"},text:{50:"text-rose-50",100:"text-rose-100",200:"text-rose-200",300:"text-rose-300",400:"text-rose-400 dark:text-rose-300",500:"text-rose-500",600:"text-rose-600 dark:text-rose-400",700:"text-rose-700 dark:text-rose-300",800:"text-rose-800 dark:text-rose-200",900:"text-rose-900"},border:{50:"border-rose-50",100:"border-rose-100",200:"border-rose-200 dark:border-rose-800",300:"border-rose-300 dark:border-rose-700",400:"border-rose-400 dark:border-rose-600",500:"border-rose-500",600:"border-rose-600",700:"border-rose-700",800:"border-rose-800",900:"border-rose-900"}},sky:{bg:{50:"bg-sky-50 dark:bg-sky-900/20",100:"bg-sky-100 dark:bg-sky-900/30",200:"bg-sky-200",300:"bg-sky-300",400:"bg-sky-400",500:"bg-sky-500",600:"bg-sky-600",700:"bg-sky-700",800:"bg-sky-800",900:"bg-sky-900"},text:{50:"text-sky-50",100:"text-sky-100",200:"text-sky-200",300:"text-sky-300",400:"text-sky-400 dark:text-sky-300",500:"text-sky-500",600:"text-sky-600 dark:text-sky-400",700:"text-sky-700 dark:text-sky-300",800:"text-sky-800 dark:text-sky-200",900:"text-sky-900"},border:{50:"border-sky-50",100:"border-sky-100",200:"border-sky-200 dark:border-sky-800",300:"border-sky-300 dark:border-sky-700",400:"border-sky-400 dark:border-sky-600",500:"border-sky-500",600:"border-sky-600",700:"border-sky-700",800:"border-sky-800",900:"border-sky-900"}},emerald:{bg:{50:"bg-emerald-50 dark:bg-emerald-900/20",100:"bg-emerald-100 dark:bg-emerald-900/30",200:"bg-emerald-200",300:"bg-emerald-300",400:"bg-emerald-400",500:"bg-emerald-500",600:"bg-emerald-600",700:"bg-emerald-700",800:"bg-emerald-800",900:"bg-emerald-900"},text:{50:"text-emerald-50",100:"text-emerald-100",200:"text-emerald-200",300:"text-emerald-300",400:"text-emerald-400",500:"text-emerald-500",600:"text-emerald-600 dark:text-emerald-400",700:"text-emerald-700 dark:text-emerald-300",800:"text-emerald-800 dark:text-emerald-200",900:"text-emerald-900"},border:{50:"border-emerald-50",100:"border-emerald-100",200:"border-emerald-200 dark:border-emerald-800",300:"border-emerald-300 dark:border-emerald-700",400:"border-emerald-400 dark:border-emerald-600",500:"border-emerald-500",600:"border-emerald-600",700:"border-emerald-700",800:"border-emerald-800",900:"border-emerald-900"}},"blue-slate":{bg:{50:"bg-slate-50",100:"bg-slate-100",200:"bg-slate-200",300:"bg-slate-300",400:"bg-slate-400",500:"bg-slate-500",600:"bg-slate-600",700:"bg-slate-700",800:"bg-slate-800",900:"bg-slate-900"},text:{50:"text-slate-50",100:"text-slate-100",200:"text-slate-200",300:"text-slate-300",400:"text-slate-400",500:"text-slate-500",600:"text-slate-600",700:"text-slate-700",800:"text-slate-800",900:"text-slate-900"}}},t={NEW:"shadow-[inset_0_0_0_5px_rgb(168_85_247)]",ALLOCATED:"shadow-[inset_0_0_0_5px_rgb(14_165_233)]",SUCCESS:"shadow-[inset_0_0_0_5px_rgb(16_185_129)]",FAILED:"shadow-[inset_0_0_0_5px_rgb(244_63_94)]",DELETED:"shadow-[inset_0_0_0_5px_rgb(251_146_60)]"};e.s(["DELIVERY_STATUSES",0,{DELIVERED:"green",RETURNED:"red",OPEN:"yellow"},"DefaultLimit",0,50,"ORDER_STATUSES",0,{OPEN:"purple",PENDING:"sky",CONFIRMED:"lime",FULFILLED:"emerald",REJECTED:"rose"},"PAYMENT_STATUSES",0,{PAID:"green",REFUNDED:"red",OPEN:"yellow"},"PROVIDER_TYPE_CLASSES",0,{PHYSICAL:"emerald",CARD:"sky",INVOICE:"lime",GENERIC:"purple",PICKUP:"red",SHIPPING:"sky"},"QUOTATION_STATUS",0,{REQUESTED:"orange",PROCESSING:"yellow",PROPOSED:"cyan",REJECTED:"red",FULFILLED:"emerald"},"TOKEN_STATUSES",0,{CENTRALIZED:"sky",EXPORTING:"amber",DECENTRALIZED:"emerald"},"WORK_STATUSES",0,{NEW:"purple",ALLOCATED:"sky",SUCCESS:"emerald",FAILED:"rose",DELETED:"orange"},"bgColor",0,(e,t)=>`${r?.[e].bg[t]}`,"borderColor",0,(e,t)=>`${r[e]?.border[t]}`,"getShadowStyle",0,e=>`${t[e]}`,"textColor",0,(e,t)=>`${r[e].text[t]}`])},72670,e=>{"use strict";var r=e.i(69178),t=e.i(13071),a=e.i(39381);e.s(["default",0,({text:e,className:d="",dotted:o=null,color:l="green",square:s=null,onClick:i=null})=>{let n=l?.trim(),b="rainbow"===n;return(0,r.jsx)("span",{id:"badge",className:(0,t.default)(b?"inline-flex items-center text-sm font-bold text-slate-900 dark:text-white shadow-lg relative p-[2px] bg-gradient-to-r from-rose-500 via-emerald-500 to-sky-500":`inline-flex items-center border ${(0,a.borderColor)(n,400)} px-2.5 py-0.5 text-sm font-medium ${(0,a.bgColor)(n,100)} ${(0,a.textColor)(n,800)}`,d,{"rounded-full":!s,"rounded-md":s}),children:b?(0,r.jsxs)("span",{className:(0,t.default)("inline-flex items-center bg-white dark:bg-slate-700 px-2.5 py-0.5",{"rounded-full":!s,"rounded-md":s}),children:[o&&(0,r.jsx)("svg",{className:"text-slate-900 dark:text-white -ml-1 mr-1.5 h-2 w-2",fill:"currentColor",viewBox:"0 0 8 8",children:(0,r.jsx)("circle",{cx:"4",cy:"4",r:"3"})}),e,i&&(0,r.jsx)("button",{id:"badge-x-button",type:"button",onClick:i,className:"ml-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full text-slate-900 dark:text-white hover:bg-slate-900 hover:bg-opacity-10 dark:hover:bg-white dark:hover:bg-opacity-20 focus:outline-hidden focus:bg-slate-900 focus:bg-opacity-20 dark:focus:bg-white dark:focus:bg-opacity-30",children:(0,r.jsx)("svg",{className:"h-2 w-2",stroke:"currentColor",fill:"none",viewBox:"0 0 8 8",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeWidth:"1.5",d:"M1 1l6 6m0-6L1 7"})})})]}):(0,r.jsxs)(r.Fragment,{children:[o&&(0,r.jsx)("svg",{className:`-ml-1 mr-1.5 h-2 w-2 ${(0,a.textColor)(n,400)}`,fill:"currentColor",viewBox:"0 0 8 8",children:(0,r.jsx)("circle",{cx:"4",cy:"4",r:"3"})}),e,i&&(0,r.jsx)("button",{id:"badge-x-button",type:"button",onClick:i,className:`ml-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full ${(0,a.textColor)(n,400)} hover:${(0,a.bgColor)(n,200)} hover:text-${n}-500 focus:outline-hidden focus:${(0,a.bgColor)(n,500)} focus:text-white`,children:(0,r.jsx)("svg",{className:"h-2 w-2",stroke:"currentColor",fill:"none",viewBox:"0 0 8 8",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeWidth:"1.5",d:"M1 1l6 6m0-6L1 7"})})})]})})}])},17255,e=>{"use strict";var r=e.i(1415),t=e.i(31617),a=e.i(21154),d=e.i(69178);function o(e){let{formatMessage:t,textComponent:o=r.Fragment}=(0,a.default)(),{id:l,description:s,defaultMessage:i,values:n,children:b,tagName:g=o,ignoreTag:u}=e,x=t({id:l,description:s,defaultMessage:i},n,{ignoreTag:u});return"function"==typeof b?b(Array.isArray(x)?x:[x]):g?(0,d.jsx)(g,{children:x}):(0,d.jsx)(d.Fragment,{children:x})}o.displayName="FormattedMessage";let l=r.memo(o,function(e,r){let{values:a,...d}=e,{values:o,...l}=r;return(0,t.shallowEqual)(o,a)&&(0,t.shallowEqual)(d,l)});l.displayName="MemoizedFormattedMessage",e.s(["FormattedMessage",0,l],17255)},17362,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={VALID_LOADERS:function(){return o},imageConfigDefault:function(){return l}};for(var d in a)Object.defineProperty(t,d,{enumerable:!0,get:a[d]});let o=["default","imgix","cloudinary","akamai","custom"],l={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumRedirects:3,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1}},76648,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return o}});let a=e.r(11004)._(e.r(1415)),d=e.r(17362),o=a.default.createContext(d.imageConfigDefault)},6356,e=>{"use strict";e.s(["default",0,(e={})=>{let{_id:r,texts:t}=e||{};return t||r?`${t?.slug?.split("/").join("")||""}_id_${r}`:null},"parseSlug",0,e=>{if(!e)return null;let[r]=e?.split("_id_")||[];return r},"parseUniqueId",0,e=>{if(!e)return null;let r=e?.split("_id_");return r?.pop()}])},88611,e=>{"use strict";var r=e.i(69178),t=e.i(13071),a=e.i(38524),d=e.i(4142),o=e.i(19892),l=e.i(88500);e.s(["default",0,({buttonText:e="",validators:s=[],selectOptions:i=[],...n})=>{let b=(0,d.default)({validators:[...s,(0,o.validateRequiredTag)(n?.required)],label:"Tags",...n});return(0,r.jsx)(l.default,{...b,children:(0,r.jsx)(a.default,{disabled:b.disabled,id:b.id,name:b.name,className:(0,t.default)({"border-rose-300":!!b.error}),onChange:e=>b.setValue(e),placeholder:b.placeholder,tagList:b.value,buttonText:e,selectOptions:i})})}])},88246,e=>{"use strict";var r=e.i(69178),t=e.i(1415);let a=t.forwardRef(function({title:e,titleId:r,...a},d){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:d,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"}))});var d=e.i(98183);e.s(["default",0,({messageKey:e,defaultMessage:t,values:o,className:l="",showIcon:s=!0})=>{let{formatMessage:i}=(0,d.useIntl)(),n=i({id:e,defaultMessage:t},o);return n?(0,r.jsxs)("div",{className:`flex items-start space-x-1 text-sm text-slate-600 dark:text-slate-400 ${l}`,children:[s&&(0,r.jsx)(a,{className:"h-4 w-4 mt-0.5 flex-shrink-0"}),(0,r.jsx)("span",{children:n})]}):null}],88246)},60474,21205,e=>{"use strict";var r=e.i(71983);let t=r.gql`
|
|
99
|
+
`,n=()=>{let{data:e,loading:r,error:t}=(0,s.useQuery)(i,{fetchPolicy:"cache-first"}),{shopInfo:a}=e||{};return{shopInfo:a,defaultLocale:[a?.language?.isoCode,a?.country?.isoCode?.toUpperCase()].filter(Boolean)?.join("-"),loading:r,error:t}};e.s(["default",0,n],79174);var b=e.i(30060);let g=(0,r.createContext)(void 0);e.s(["AppContextWrapper",0,({children:e,onlyFull:l=!1})=>{let s,{languages:i}=(0,d.default)(),{locale:u}=(0,a.useIntl)(),[x,p]=(0,b.default)("selectedLocale",null),{shopInfo:c,loading:m}=n(),{countries:k}=(0,o.default)(),[y,f]=(0,r.useState)(u),h=e=>{p(e),f(e)};(0,r.useEffect)(()=>{x?f(x):m||h(`${c?.language?.isoCode}-${c?.country?.isoCode?.toUpperCase()}`)},[c,m,u]);let v=(s=[],i.forEach(({_id:e,isoCode:r})=>{s.push({_id:e,isoCode:r}),k.forEach(({isoCode:t,_id:a})=>{let d=[r,t.toUpperCase()].join("-");(e=>{try{return new Intl.DateTimeFormat(e).resolvedOptions().locale.toLowerCase()===e.toLowerCase()}catch(e){return!1}})(d)&&s.push({_id:`${a}-${e}`,isoCode:d})})}),s).filter(e=>!l||e.isoCode.includes("-")),w=!!c?.language&&!!c?.country;return(0,t.jsx)(g.Provider,{value:{selectedLocale:y,setSelectedLocale:h,languageDialectList:v,isSystemReady:w,shopInfo:c},children:e})},"default",0,g],58724),e.s(["default",0,()=>{let e=(0,r.useContext)(g);if(!e)throw Error("useLocale must be used within a LocaleProvider");return e}],81312)},47024,e=>{"use strict";var r=e.i(69178),t=e.i(1415),a=e.i(12442),d=e.i(81312);e.s(["default",0,({children:e,onlyFull:o=!1})=>{let{languageDialectList:l,selectedLocale:s,setSelectedLocale:i}=(0,d.default)(),n=(0,t.useContext)(a.FormWrapperContext),b=l.filter(e=>!o||e.isoCode.includes("-"));return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:`w-fit mt-5 mb-3 ${n?"ml-5":""}`,children:(0,r.jsx)("select",{id:"locale-wrapper",className:"cursor-pointer rounded-md border-1 border-slate-300 dark:border-slate-700 py-1 pr-8 text-sm lg:py-1 lg:pr-10 text-black dark:text-white dark:bg-slate-800 shadow-xs focus:outline-hidden focus:ring-2 focus:ring-slate-800",value:s||"",onChange:e=>{e.stopPropagation(),i(e.target.value)},children:b?.map(e=>(0,r.jsx)("option",{value:e.isoCode,children:e.isoCode},e._id))})}),(0,r.jsx)("div",{children:t.default.cloneElement(e)})]})}])},39381,e=>{"use strict";let r={red:{bg:{50:"bg-rose-50 dark:bg-rose-900/20",100:"bg-rose-100 dark:bg-rose-900/30",200:"bg-rose-200",300:"bg-rose-300 dark:bg-rose-900/30",400:"bg-rose-400",500:"bg-rose-500",600:"bg-rose-600",700:"bg-rose-700",800:"bg-rose-800",900:"bg-rose-900"},text:{50:"text-rose-50",100:"text-rose-100",200:"text-rose-200",300:"text-rose-300",400:"text-rose-400 dark:text-rose-300",500:"text-rose-500",600:"text-rose-600 dark:text-rose-400",700:"text-rose-700 dark:text-rose-300",800:"text-rose-800 dark:text-rose-200",900:"text-rose-900"},border:{50:"border-rose-50",100:"border-rose-100",200:"border-rose-200 dark:border-rose-800",300:"border-rose-300 dark:border-rose-700",400:"border-rose-400 dark:border-rose-600",500:"border-rose-500",600:"border-rose-600",700:"border-rose-700",800:"border-rose-800",900:"border-rose-900"}},pink:{bg:{50:"bg-pink-50",100:"bg-pink-100",200:"bg-pink-200",300:"bg-pink-300",400:"bg-pink-400",500:"bg-pink-500",600:"bg-pink-600",700:"bg-pink-700",800:"bg-pink-800",900:"bg-pink-900"},text:{50:"text-pink-50",100:"text-pink-100",200:"text-pink-200",300:"text-pink-300",400:"text-pink-400",500:"text-pink-500",600:"text-pink-600",700:"text-pink-700",800:"text-pink-800",900:"text-pink-900"},border:{50:"border-pink-50",100:"border-pink-100",200:"border-pink-200",300:"border-pink-300",400:"border-pink-400",500:"border-pink-500",600:"border-pink-600",700:"border-pink-700",800:"border-pink-800",900:"border-pink-900"}},purple:{bg:{50:"bg-purple-50 dark:bg-purple-900/20",100:"bg-purple-100 dark:bg-purple-900/30",200:"bg-purple-200",300:"bg-purple-300",400:"bg-purple-400",500:"bg-purple-500",600:"bg-purple-600",700:"bg-purple-700",800:"bg-purple-800",900:"bg-purple-900"},text:{50:"text-purple-50",100:"text-purple-100",200:"text-purple-200",300:"text-purple-300",400:"text-purple-400 dark:text-purple-300",500:"text-purple-500",600:"text-purple-600 dark:text-purple-400",700:"text-purple-700",800:"text-purple-800 dark:text-purple-300",900:"text-purple-900"},border:{50:"border-purple-50",100:"border-purple-100",200:"border-purple-200 dark:border-purple-600",300:"border-purple-300 dark:border-purple-500",400:"border-purple-400 dark:border-purple-500",500:"border-purple-500",600:"border-purple-600",700:"border-purple-700",800:"border-purple-800",900:"border-purple-900"}},"deep-purple":{bg:{50:"bg-deep-purple-50",100:"bg-deep-purple-100",200:"bg-deep-purple-200",300:"bg-deep-purple-300",400:"bg-deep-purple-400",500:"bg-deep-purple-500",600:"bg-deep-purple-600",700:"bg-deep-purple-700",800:"bg-deep-purple-800",900:"bg-deep-purple-900"},text:{50:"text-deep-purple-50",100:"text-deep-purple-100",200:"text-deep-purple-200",300:"text-deep-purple-300",400:"text-deep-purple-400",500:"text-deep-purple-500",600:"text-deep-purple-600",700:"text-deep-purple-700",800:"text-deep-purple-800",900:"text-deep-purple-900"},border:{50:"border-deep-purple-50",100:"border-deep-purple-100",200:"border-deep-purple-200",300:"border-deep-purple-300",400:"border-deep-purple-400",500:"border-deep-purple-500",600:"border-deep-purple-600",700:"border-deep-purple-700",800:"border-deep-purple-800",900:"border-deep-purple-900"}},blue:{bg:{50:"bg-sky-50 dark:bg-sky-900/20",100:"bg-sky-100 dark:bg-sky-900/30",200:"bg-sky-200",300:"bg-sky-300",400:"bg-sky-400",500:"bg-sky-500",600:"bg-sky-600",700:"bg-sky-700",800:"bg-sky-800",900:"bg-sky-900"},text:{50:"text-sky-50",100:"text-sky-100",200:"text-sky-200",300:"text-sky-300",400:"text-sky-400 dark:text-sky-300",500:"text-sky-500",600:"text-sky-600 dark:text-sky-400",700:"text-sky-700 dark:text-sky-300",800:"text-sky-800 dark:text-sky-200",900:"text-sky-900"},border:{50:"border-sky-50",100:"border-sky-100",200:"border-sky-200 dark:border-sky-800",300:"border-sky-300 dark:border-sky-700",400:"border-sky-400 dark:border-sky-600",500:"border-sky-500",600:"border-sky-600",700:"border-sky-700",800:"border-sky-800",900:"border-sky-900"}},"light-blue":{bg:{50:"bg-sky-50",100:"bg-sky-100",200:"bg-sky-200",300:"bg-sky-300",400:"bg-sky-400",500:"bg-sky-500",600:"bg-sky-600",700:"bg-sky-700",800:"bg-sky-800",900:"bg-sky-900"},text:{50:"text-sky-50",100:"text-sky-100",200:"text-sky-200",300:"text-sky-300",400:"text-sky-400",500:"text-sky-500",600:"text-sky-600",700:"text-sky-700",800:"text-sky-800",900:"text-sky-900"},border:{50:"border-sky-50",100:"border-sky-100",200:"border-sky-200",300:"border-sky-300",400:"border-sky-400",500:"border-sky-500",600:"border-sky-600",700:"border-sky-700",800:"border-sky-800",900:"border-sky-900"}},indigo:{bg:{50:"bg-indigo-50",100:"bg-indigo-100",200:"bg-indigo-200",300:"bg-indigo-300",400:"bg-indigo-400",500:"bg-indigo-500",600:"bg-indigo-600",700:"bg-indigo-700",800:"bg-indigo-800",900:"bg-indigo-900"},text:{50:"text-indigo-50",100:"text-indigo-100",200:"text-indigo-200",300:"text-indigo-300",400:"text-indigo-400",500:"text-indigo-500",600:"text-indigo-600",700:"text-indigo-700",800:"text-indigo-800",900:"text-indigo-900"},border:{50:"border-indigo-50",100:"border-indigo-100",200:"border-indigo-200",300:"border-indigo-300",400:"border-indigo-400",500:"border-indigo-500",600:"border-indigo-600",700:"border-indigo-700",800:"border-indigo-800",900:"border-indigo-900"}},cyan:{bg:{50:"bg-cyan-50 dark:bg-cyan-900/20",100:"bg-cyan-100 dark:bg-cyan-900/30",200:"bg-cyan-200",300:"bg-cyan-300",400:"bg-cyan-400",500:"bg-cyan-500",600:"bg-cyan-600",700:"bg-cyan-700",800:"bg-cyan-800",900:"bg-cyan-900"},text:{50:"text-cyan-50",100:"text-cyan-100",200:"text-cyan-200",300:"text-cyan-300",400:"text-cyan-400 dark:text-cyan-300",500:"text-cyan-500",600:"text-cyan-600 dark:text-cyan-400",700:"text-cyan-700 dark:text-cyan-300",800:"text-cyan-800 dark:text-cyan-200",900:"text-cyan-900"},border:{50:"border-cyan-50",100:"border-cyan-100",200:"border-cyan-200 dark:border-cyan-800",300:"border-cyan-300 dark:border-cyan-700",400:"border-cyan-400 dark:border-cyan-600",500:"border-cyan-500",600:"border-cyan-600",700:"border-cyan-700",800:"border-cyan-800",900:"border-cyan-900"}},teal:{bg:{50:"bg-teal-50 dark:bg-teal-900/20",100:"bg-teal-100 dark:bg-teal-900/30",200:"bg-teal-200",300:"bg-teal-300",400:"bg-teal-400",500:"bg-teal-500",600:"bg-teal-600",700:"bg-teal-700",800:"bg-teal-800",900:"bg-teal-900"},text:{50:"text-teal-50",100:"text-teal-100",200:"text-teal-200",300:"text-teal-300",400:"text-teal-400 dark:text-teal-300",500:"text-teal-500",600:"text-teal-600 dark:text-teal-400",700:"text-teal-700 dark:text-teal-300",800:"text-teal-800 dark:text-teal-200",900:"text-teal-900"},border:{50:"border-teal-50",100:"border-teal-100",200:"border-teal-200 dark:border-teal-800",300:"border-teal-300 dark:border-teal-700",400:"border-teal-400 dark:border-teal-600",500:"border-teal-500",600:"border-teal-600",700:"border-teal-700",800:"border-teal-800",900:"border-teal-900"}},green:{bg:{50:"bg-emerald-50 dark:bg-emerald-900/20",100:"bg-emerald-50 dark:bg-emerald-900/30",200:"bg-emerald-200",300:"bg-emerald-300",400:"bg-emerald-400",500:"bg-emerald-500",600:"bg-emerald-600",700:"bg-emerald-700",800:"bg-emerald-800",900:"bg-emerald-900"},text:{50:"text-emerald-50",100:"text-emerald-100",200:"text-emerald-200",300:"text-emerald-300",400:"text-emerald-400",500:"text-emerald-500",600:"text-emerald-600 dark:text-emerald-400",700:"text-emerald-700 dark:text-emerald-300",800:"text-emerald-700 dark:text-emerald-300",900:"text-emerald-900"},border:{50:"border-emerald-50",100:"border-emerald-100",200:"border-emerald-200 dark:border-emerald-800",300:"border-emerald-300 dark:border-emerald-700",400:"border-emerald-200 dark:border-emerald-800",500:"border-emerald-500",600:"border-emerald-600",700:"border-emerald-700",800:"border-emerald-800",900:"border-emerald-900"}},"light-green":{bg:{50:"bg-light-green-50",100:"bg-light-green-100",200:"bg-light-green-200",300:"bg-light-green-300",400:"bg-light-green-400",500:"bg-light-green-500",600:"bg-light-green-600",700:"bg-light-green-700",800:"bg-light-green-800",900:"bg-light-green-900"},text:{50:"text-light-green-50",100:"text-light-green-100",200:"text-light-green-200",300:"text-light-green-300",400:"text-light-green-400",500:"text-light-green-500",600:"text-light-green-600",700:"text-light-green-700",800:"text-light-green-800",900:"text-light-green-900"},border:{50:"border-light-green-50",100:"border-light-green-100",200:"border-light-green-200",300:"border-light-green-300",400:"border-light-green-400",500:"border-light-green-500",600:"border-light-green-600",700:"border-light-green-700",800:"border-light-green-800",900:"border-light-green-900"}},lime:{bg:{50:"bg-lime-50 dark:bg-lime-900/20",100:"bg-lime-100 dark:bg-lime-900/30",200:"bg-lime-200",300:"bg-lime-300",400:"bg-lime-400",500:"bg-lime-500",600:"bg-lime-600",700:"bg-lime-700",800:"bg-lime-800",900:"bg-lime-900"},text:{50:"text-lime-50",100:"text-lime-100",200:"text-lime-200",300:"text-lime-300",400:"text-lime-400 dark:text-lime-300",500:"text-lime-500",600:"text-lime-600 dark:text-lime-400",700:"text-lime-700 dark:text-lime-300",800:"text-lime-800 dark:text-lime-200",900:"text-lime-900"},border:{50:"border-lime-50",100:"border-lime-100",200:"border-lime-200 dark:border-lime-800",300:"border-lime-300 dark:border-lime-700",400:"border-lime-400 dark:border-lime-600",500:"border-lime-500",600:"border-lime-600",700:"border-lime-700",800:"border-lime-800",900:"border-lime-900"}},yellow:{bg:{50:"bg-yellow-50 dark:bg-yellow-900/20",100:"bg-amber-100 dark:bg-yellow-900/30",200:"bg-yellow-200",300:"bg-yellow-300",400:"bg-amber-400",500:"bg-amber-500",600:"bg-yellow-600",700:"bg-yellow-700",800:"bg-yellow-800",900:"bg-yellow-900"},text:{50:"text-yellow-50",100:"text-yellow-100",200:"text-yellow-200",300:"text-yellow-300",400:"text-amber-400 dark:text-yellow-300",500:"text-amber-500",600:"text-amber-600 dark:text-yellow-400",700:"text-yellow-700",800:"text-yellow-800 dark:text-yellow-300",900:"text-yellow-900"},border:{50:"border-yellow-50",100:"border-yellow-100",200:"border-yellow-200 dark:border-yellow-800",300:"border-yellow-300 dark:border-yellow-700",400:"border-amber-400 dark:border-yellow-800",500:"border-yellow-500",600:"border-yellow-600",700:"border-yellow-700",800:"border-yellow-800",900:"border-yellow-900"}},amber:{bg:{50:"bg-amber-50 dark:bg-amber-900/20",100:"bg-amber-100 dark:bg-amber-900/30",200:"bg-amber-200",300:"bg-amber-300",400:"bg-amber-400",500:"bg-amber-500",600:"bg-amber-600",700:"bg-amber-700",800:"bg-amber-800",900:"bg-amber-900"},text:{50:"text-amber-50",100:"text-amber-100",200:"text-amber-200",300:"text-amber-300",400:"text-amber-400 dark:text-amber-300",500:"text-amber-500",600:"text-amber-600 dark:text-amber-400",700:"text-amber-700 dark:text-amber-300",800:"text-amber-800 dark:text-amber-200",900:"text-amber-900"},border:{50:"border-amber-50",100:"border-amber-100",200:"border-amber-200 dark:border-amber-800",300:"border-amber-300 dark:border-amber-700",400:"border-amber-400 dark:border-amber-600",500:"border-amber-500",600:"border-amber-600",700:"border-amber-700",800:"border-amber-800",900:"border-amber-900"}},orange:{bg:{50:"bg-orange-50 dark:bg-orange-900/20",100:"bg-orange-100 dark:bg-orange-900/30",200:"bg-orange-200",300:"bg-orange-300",400:"bg-orange-400",500:"bg-orange-500",600:"bg-orange-600",700:"bg-orange-700",800:"bg-orange-800",900:"bg-orange-900"},text:{50:"text-orange-50",100:"text-orange-100",200:"text-orange-200",300:"text-orange-300",400:"text-orange-400 dark:text-orange-300",500:"text-orange-500",600:"text-orange-600 dark:text-orange-400",700:"text-orange-700 dark:text-orange-300",800:"text-orange-800 dark:text-orange-200",900:"text-orange-900"},border:{50:"border-orange-50",100:"border-orange-100",200:"border-orange-200 dark:border-orange-800",300:"border-orange-300 dark:border-orange-700",400:"border-orange-400 dark:border-orange-600",500:"border-orange-500",600:"border-orange-600",700:"border-orange-700",800:"border-orange-800",900:"border-orange-900"}},"deep-orange":{bg:{50:"bg-deep-orange-50",100:"bg-deep-orange-100",200:"bg-deep-orange-200",300:"bg-deep-orange-300",400:"bg-deep-orange-400",500:"bg-deep-orange-500",600:"bg-deep-orange-600",700:"bg-deep-orange-700",800:"bg-deep-orange-800",900:"bg-deep-orange-900"},text:{50:"text-deep-orange-50",100:"text-deep-orange-100",200:"text-deep-orange-200",300:"text-deep-orange-300",400:"text-deep-orange-400",500:"text-deep-orange-500",600:"text-deep-orange-600",700:"text-deep-orange-700",800:"text-deep-orange-800",900:"text-deep-orange-900"},border:{50:"border-deep-orange-50",100:"border-deep-orange-100",200:"border-deep-orange-200",300:"border-deep-orange-300",400:"border-deep-orange-400",500:"border-deep-orange-500",600:"border-deep-orange-600",700:"border-deep-orange-700",800:"border-deep-orange-800",900:"border-deep-orange-900"}},stone:{bg:{50:"bg-stone-50",100:"bg-stone-100",200:"bg-stone-200",300:"bg-stone-300",400:"bg-stone-400",500:"bg-stone-500",600:"bg-stone-600",700:"bg-stone-700",800:"bg-stone-800",900:"bg-stone-900"},text:{50:"text-stone-50",100:"text-stone-100",200:"text-stone-200",300:"text-stone-300",400:"text-stone-400",500:"text-stone-500",600:"text-stone-600",700:"text-stone-700",800:"text-stone-800",900:"text-stone-900"},border:{50:"border-stone-50",100:"border-stone-100",200:"border-stone-200",300:"border-stone-300",400:"border-stone-400",500:"border-stone-500",600:"border-stone-600",700:"border-stone-700",800:"border-stone-800",900:"border-stone-900"}},slate:{bg:{50:"bg-slate-50",100:"bg-slate-50 dark:bg-slate-800/50",200:"bg-slate-200",300:"bg-slate-300",400:"bg-slate-400",500:"bg-slate-500",600:"bg-slate-600",700:"bg-slate-700",800:"bg-slate-800",900:"bg-slate-900"},text:{50:"text-slate-50",100:"text-slate-100",200:"text-slate-200",300:"text-slate-300",400:"text-slate-400",500:"text-slate-500",600:"text-slate-600 dark:text-slate-400",700:"text-slate-700",800:"text-slate-600 dark:text-slate-400",900:"text-slate-900"},border:{50:"border-slate-50",100:"border-slate-100",200:"border-slate-300 dark:border-slate-700",300:"border-slate-300",400:"border-slate-300 dark:border-slate-700",500:"border-slate-500",600:"border-slate-600",700:"border-slate-700",800:"border-slate-800",900:"border-slate-900"}},rose:{bg:{50:"bg-rose-50 dark:bg-rose-900/20",100:"bg-rose-100 dark:bg-rose-900/30",200:"bg-rose-200",300:"bg-rose-300 dark:bg-rose-900/30",400:"bg-rose-400",500:"bg-rose-500",600:"bg-rose-600",700:"bg-rose-700",800:"bg-rose-800",900:"bg-rose-900"},text:{50:"text-rose-50",100:"text-rose-100",200:"text-rose-200",300:"text-rose-300",400:"text-rose-400 dark:text-rose-300",500:"text-rose-500",600:"text-rose-600 dark:text-rose-400",700:"text-rose-700 dark:text-rose-300",800:"text-rose-800 dark:text-rose-200",900:"text-rose-900"},border:{50:"border-rose-50",100:"border-rose-100",200:"border-rose-200 dark:border-rose-800",300:"border-rose-300 dark:border-rose-700",400:"border-rose-400 dark:border-rose-600",500:"border-rose-500",600:"border-rose-600",700:"border-rose-700",800:"border-rose-800",900:"border-rose-900"}},sky:{bg:{50:"bg-sky-50 dark:bg-sky-900/20",100:"bg-sky-100 dark:bg-sky-900/30",200:"bg-sky-200",300:"bg-sky-300",400:"bg-sky-400",500:"bg-sky-500",600:"bg-sky-600",700:"bg-sky-700",800:"bg-sky-800",900:"bg-sky-900"},text:{50:"text-sky-50",100:"text-sky-100",200:"text-sky-200",300:"text-sky-300",400:"text-sky-400 dark:text-sky-300",500:"text-sky-500",600:"text-sky-600 dark:text-sky-400",700:"text-sky-700 dark:text-sky-300",800:"text-sky-800 dark:text-sky-200",900:"text-sky-900"},border:{50:"border-sky-50",100:"border-sky-100",200:"border-sky-200 dark:border-sky-800",300:"border-sky-300 dark:border-sky-700",400:"border-sky-400 dark:border-sky-600",500:"border-sky-500",600:"border-sky-600",700:"border-sky-700",800:"border-sky-800",900:"border-sky-900"}},emerald:{bg:{50:"bg-emerald-50 dark:bg-emerald-900/20",100:"bg-emerald-100 dark:bg-emerald-900/30",200:"bg-emerald-200",300:"bg-emerald-300",400:"bg-emerald-400",500:"bg-emerald-500",600:"bg-emerald-600",700:"bg-emerald-700",800:"bg-emerald-800",900:"bg-emerald-900"},text:{50:"text-emerald-50",100:"text-emerald-100",200:"text-emerald-200",300:"text-emerald-300",400:"text-emerald-400",500:"text-emerald-500",600:"text-emerald-600 dark:text-emerald-400",700:"text-emerald-700 dark:text-emerald-300",800:"text-emerald-800 dark:text-emerald-200",900:"text-emerald-900"},border:{50:"border-emerald-50",100:"border-emerald-100",200:"border-emerald-200 dark:border-emerald-800",300:"border-emerald-300 dark:border-emerald-700",400:"border-emerald-400 dark:border-emerald-600",500:"border-emerald-500",600:"border-emerald-600",700:"border-emerald-700",800:"border-emerald-800",900:"border-emerald-900"}},"blue-slate":{bg:{50:"bg-slate-50",100:"bg-slate-100",200:"bg-slate-200",300:"bg-slate-300",400:"bg-slate-400",500:"bg-slate-500",600:"bg-slate-600",700:"bg-slate-700",800:"bg-slate-800",900:"bg-slate-900"},text:{50:"text-slate-50",100:"text-slate-100",200:"text-slate-200",300:"text-slate-300",400:"text-slate-400",500:"text-slate-500",600:"text-slate-600",700:"text-slate-700",800:"text-slate-800",900:"text-slate-900"}}},t={NEW:"shadow-[inset_0_0_0_5px_rgb(168_85_247)]",ALLOCATED:"shadow-[inset_0_0_0_5px_rgb(14_165_233)]",SUCCESS:"shadow-[inset_0_0_0_5px_rgb(16_185_129)]",FAILED:"shadow-[inset_0_0_0_5px_rgb(244_63_94)]",DELETED:"shadow-[inset_0_0_0_5px_rgb(251_146_60)]"};e.s(["DELIVERY_STATUSES",0,{DELIVERED:"green",RETURNED:"red",OPEN:"yellow"},"DefaultLimit",0,50,"ORDER_STATUSES",0,{OPEN:"purple",PENDING:"sky",CONFIRMED:"lime",FULFILLED:"emerald",REJECTED:"rose"},"PAYMENT_STATUSES",0,{PAID:"green",REFUNDED:"red",OPEN:"yellow"},"PROVIDER_TYPE_CLASSES",0,{PHYSICAL:"emerald",CARD:"sky",INVOICE:"lime",GENERIC:"purple",PICKUP:"red",SHIPPING:"sky"},"QUOTATION_STATUS",0,{REQUESTED:"orange",PROCESSING:"yellow",PROPOSED:"cyan",REJECTED:"red",FULFILLED:"emerald"},"TOKEN_STATUSES",0,{CENTRALIZED:"sky",EXPORTING:"amber",DECENTRALIZED:"emerald"},"WORK_STATUSES",0,{NEW:"purple",ALLOCATED:"sky",SUCCESS:"emerald",FAILED:"rose",DELETED:"orange"},"bgColor",0,(e,t)=>`${r?.[e].bg[t]}`,"borderColor",0,(e,t)=>`${r[e]?.border[t]}`,"getShadowStyle",0,e=>`${t[e]}`,"textColor",0,(e,t)=>`${r[e].text[t]}`])},72670,e=>{"use strict";var r=e.i(69178),t=e.i(13071),a=e.i(39381);e.s(["default",0,({text:e,className:d="",dotted:o=null,color:l="green",square:s=null,onClick:i=null})=>{let n=l?.trim(),b="rainbow"===n;return(0,r.jsx)("span",{id:"badge",className:(0,t.default)(b?"inline-flex items-center text-sm font-bold text-slate-900 dark:text-white shadow-lg relative p-[2px] bg-gradient-to-r from-rose-500 via-emerald-500 to-sky-500":`inline-flex items-center border ${(0,a.borderColor)(n,400)} px-2.5 py-0.5 text-sm font-medium ${(0,a.bgColor)(n,100)} ${(0,a.textColor)(n,800)}`,d,{"rounded-full":!s,"rounded-md":s}),children:b?(0,r.jsxs)("span",{className:(0,t.default)("inline-flex items-center bg-white dark:bg-slate-700 px-2.5 py-0.5",{"rounded-full":!s,"rounded-md":s}),children:[o&&(0,r.jsx)("svg",{className:"text-slate-900 dark:text-white -ml-1 mr-1.5 h-2 w-2",fill:"currentColor",viewBox:"0 0 8 8",children:(0,r.jsx)("circle",{cx:"4",cy:"4",r:"3"})}),e,i&&(0,r.jsx)("button",{id:"badge-x-button",type:"button",onClick:i,className:"ml-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full text-slate-900 dark:text-white hover:bg-slate-900 hover:bg-opacity-10 dark:hover:bg-white dark:hover:bg-opacity-20 focus:outline-hidden focus:bg-slate-900 focus:bg-opacity-20 dark:focus:bg-white dark:focus:bg-opacity-30",children:(0,r.jsx)("svg",{className:"h-2 w-2",stroke:"currentColor",fill:"none",viewBox:"0 0 8 8",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeWidth:"1.5",d:"M1 1l6 6m0-6L1 7"})})})]}):(0,r.jsxs)(r.Fragment,{children:[o&&(0,r.jsx)("svg",{className:`-ml-1 mr-1.5 h-2 w-2 ${(0,a.textColor)(n,400)}`,fill:"currentColor",viewBox:"0 0 8 8",children:(0,r.jsx)("circle",{cx:"4",cy:"4",r:"3"})}),e,i&&(0,r.jsx)("button",{id:"badge-x-button",type:"button",onClick:i,className:`ml-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full ${(0,a.textColor)(n,400)} hover:${(0,a.bgColor)(n,200)} hover:text-${n}-500 focus:outline-hidden focus:${(0,a.bgColor)(n,500)} focus:text-white`,children:(0,r.jsx)("svg",{className:"h-2 w-2",stroke:"currentColor",fill:"none",viewBox:"0 0 8 8",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeWidth:"1.5",d:"M1 1l6 6m0-6L1 7"})})})]})})}])},17255,e=>{"use strict";var r=e.i(1415),t=e.i(31617),a=e.i(21154),d=e.i(69178);function o(e){let{formatMessage:t,textComponent:o=r.Fragment}=(0,a.default)(),{id:l,description:s,defaultMessage:i,values:n,children:b,tagName:g=o,ignoreTag:u}=e,x=t({id:l,description:s,defaultMessage:i},n,{ignoreTag:u});return"function"==typeof b?b(Array.isArray(x)?x:[x]):g?(0,d.jsx)(g,{children:x}):(0,d.jsx)(d.Fragment,{children:x})}o.displayName="FormattedMessage";let l=r.memo(o,function(e,r){let{values:a,...d}=e,{values:o,...l}=r;return(0,t.shallowEqual)(o,a)&&(0,t.shallowEqual)(d,l)});l.displayName="MemoizedFormattedMessage",e.s(["FormattedMessage",0,l],17255)},17362,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={VALID_LOADERS:function(){return o},imageConfigDefault:function(){return l}};for(var d in a)Object.defineProperty(t,d,{enumerable:!0,get:a[d]});let o=["default","imgix","cloudinary","akamai","custom"],l={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumRedirects:3,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1}},76648,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return o}});let a=e.r(23726)._(e.r(1415)),d=e.r(17362),o=a.default.createContext(d.imageConfigDefault)},6356,e=>{"use strict";e.s(["default",0,(e={})=>{let{_id:r,texts:t}=e||{};return t||r?`${t?.slug?.split("/").join("")||""}_id_${r}`:null},"parseSlug",0,e=>{if(!e)return null;let[r]=e?.split("_id_")||[];return r},"parseUniqueId",0,e=>{if(!e)return null;let r=e?.split("_id_");return r?.pop()}])},88611,e=>{"use strict";var r=e.i(69178),t=e.i(13071),a=e.i(38524),d=e.i(4142),o=e.i(19892),l=e.i(88500);e.s(["default",0,({buttonText:e="",validators:s=[],selectOptions:i=[],...n})=>{let b=(0,d.default)({validators:[...s,(0,o.validateRequiredTag)(n?.required)],label:"Tags",...n});return(0,r.jsx)(l.default,{...b,children:(0,r.jsx)(a.default,{disabled:b.disabled,id:b.id,name:b.name,className:(0,t.default)({"border-rose-300":!!b.error}),onChange:e=>b.setValue(e),placeholder:b.placeholder,tagList:b.value,buttonText:e,selectOptions:i})})}])},88246,e=>{"use strict";var r=e.i(69178),t=e.i(1415);let a=t.forwardRef(function({title:e,titleId:r,...a},d){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:d,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"}))});var d=e.i(98183);e.s(["default",0,({messageKey:e,defaultMessage:t,values:o,className:l="",showIcon:s=!0})=>{let{formatMessage:i}=(0,d.useIntl)(),n=i({id:e,defaultMessage:t},o);return n?(0,r.jsxs)("div",{className:`flex items-start space-x-1 text-sm text-slate-600 dark:text-slate-400 ${l}`,children:[s&&(0,r.jsx)(a,{className:"h-4 w-4 mt-0.5 flex-shrink-0"}),(0,r.jsx)("span",{children:n})]}):null}],88246)},60474,21205,e=>{"use strict";var r=e.i(71983);let t=r.gql`
|
|
100
100
|
fragment ProductDetailFragment on Product {
|
|
101
101
|
_id
|
|
102
102
|
sequence
|
|
@@ -190,4 +190,4 @@
|
|
|
190
190
|
}
|
|
191
191
|
${a.default}
|
|
192
192
|
${d.default}
|
|
193
|
-
`;e.s(["default",0,()=>{let[e,{data:r,error:a,loading:d}]=(0,t.useMutation)(o);return{createProduct:async({product:{type:r,tags:t},texts:a})=>e({variables:{product:{type:r,tags:t},texts:a},refetchQueries:["Products","ShopStatus","ShopInfo"]}),newProduct:r?.createProduct,error:a,loading:d}}])},98405,e=>{"use strict";var r=e.i(69178),t=e.i(49061),a=e.i(17255),d=e.i(98183),o=e.i(23529),l=e.i(12442),s=e.i(71588),i=e.i(6356),n=e.i(5858),b=e.i(19372),g=e.i(62010),u=e.i(82028),x=e.i(23518),p=e.i(88611),c=e.i(68686),m=e.i(5641),k=e.i(88246),y=e.i(81312);let f=({onSubmit:e,onSubmitSuccess:t})=>{let{formatMessage:a}=(0,d.useIntl)(),{hasRole:o}=(0,b.default)(),{selectedLocale:l,shopInfo:s}=(0,y.default)(),i=a({id:"product_added",defaultMessage:"Product added successfully!"}),f=(0,m.default)({submit:async r=>{let{title:t,subtitle:a,type:d,tags:o}=r;if(!t||!d)return{success:!1};let s=[{title:t,subtitle:a||"",slug:t.toLowerCase().replace(/\s+/g,"-"),locale:l}];return await e({texts:s,type:d,tags:o||[]})},onSubmitSuccess:t,successMessage:i,initialValues:{title:"",subtitle:"",type:n.IProductType.SimpleProduct,tags:[]}});return(0,r.jsxs)(g.default,{form:f,children:[(0,r.jsxs)("div",{className:"p-5 pb-7 sm:max-w-full flex flex-col gap-3",children:[(0,r.jsx)(c.default,{name:"title",id:"title",label:a({id:"name",defaultMessage:"Name"}),required:!0,className:"block w-full max-w-full rounded-md border-slate-300 dark:border-slate-800 text-sm focus:ring-slate-800 sm:text-sm"}),(0,r.jsx)(c.default,{name:"subtitle",id:"subtitle",label:a({id:"subtitle",defaultMessage:"Subtitle"}),className:"block w-full max-w-full rounded-md border-slate-300 dark:border-slate-800 text-sm focus:ring-slate-800 sm:text-sm"}),(0,r.jsx)(u.default,{className:"mt-1 w-full",label:a({id:"type",defaultMessage:"Type"}),placeholder:a({id:"type",defaultMessage:"Type"}),required:!0,name:"type",options:Object.fromEntries(Object.entries(n.IProductType).map(([e,r])=>[r,e]))}),(0,r.jsx)(p.default,{name:"tags",label:a({id:"tags",defaultMessage:"Tags"}),placeholder:a({id:"enter_tag",defaultMessage:"Enter tag..."}),selectOptions:(s?.adminUiConfig.productTags||[]).map(e=>({value:e,label:e}))}),(0,r.jsx)(k.default,{messageKey:"product_tags_help",defaultMessage:"Add keywords to organize and filter products (e.g., 'electronics', 'outdoor', 'premium'). These work across all languages and help customers find products through search and filters.",className:"mt-1"})]}),o(n.IRoleAction.ManageProducts)&&(0,r.jsx)("div",{className:"border-t border-t-slate-100 dark:border-t-slate-700 bg-slate-50 dark:bg-slate-900 p-5 text-right",children:(0,r.jsx)(x.default,{label:a({id:"add_product",defaultMessage:"Add Product"})})})]})};var h=e.i(32980),v=e.i(47024);e.s(["default",0,()=>{let{createProduct:e}=(0,h.default)(),n=(0,t.useRouter)(),{formatMessage:b}=(0,d.useIntl)(),g=async({texts:r,type:t,tags:a})=>{let{data:d,error:o}=await e({product:{type:t,tags:a},texts:r});return o?{success:!1}:{success:!0,data:d?.createProduct}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.default,{}),(0,r.jsx)(s.default,{headerText:b({id:"new_product_header",defaultMessage:"New product"})}),(0,r.jsxs)("div",{className:"mt-6 lg:grid lg:grid-cols-3 gap-10",children:[(0,r.jsx)("div",{className:"lg:col-span-2",children:(0,r.jsx)(l.default,{children:(0,r.jsx)(v.default,{children:(0,r.jsx)(f,{onSubmit:g,onSubmitSuccess:(e,{...r})=>(n.replace(`/products?slug=${(0,i.default)(r)}`),!0)})})})}),(0,r.jsxs)("div",{className:"mt-10 lg:mt-0 lg:col-span-1 space-y-2",children:[(0,r.jsx)("h3",{className:"text-lg text-slate-900 dark:text-slate-200",children:b({id:"product_type",defaultMessage:"Product type"})}),(0,r.jsxs)("div",{className:"text-sm divide-y divide-slate-200 dark:divide-slate-800 dark:text-slate-400 lg:mr-10",children:[(0,r.jsx)("div",{className:"my-2 py-2",children:(0,r.jsx)(a.FormattedMessage,{id:"simple_product_definition",defaultMessage:" <h3>Simple</h3> <p>Simple product is the most commonly used type of product type. It accepts configuration values for price, dimension and warehousing. Most e-commerce product needs are satisfied by this type </p>",values:{h3:e=>(0,r.jsx)("h3",{className:"font-semibold ",children:e}),p:e=>(0,r.jsx)("p",{children:e})}})}),(0,r.jsx)("div",{className:"my-2 py-2",children:(0,r.jsx)(a.FormattedMessage,{id:"plan_product_definition",defaultMessage:" <h3>Plan</h3> <p>Plan product is use when you have a product that is offered per subscription base. Since for this type of product the payment is usually recurring, you can adjust the interval of payment calculation. </p>",values:{h3:e=>(0,r.jsx)("h3",{className:"font-semibold ",children:e}),p:e=>(0,r.jsx)("p",{children:e})}})}),(0,r.jsx)("div",{className:"my-2 py-2",children:(0,r.jsx)(a.FormattedMessage,{id:"bundle_product_definition",defaultMessage:" <h3>Bundle</h3> <p>As the name suggest this product type enables you to create a collection/bundle of products as one and set the price accordingly. This type of product is useful if you have christmas package for example. </p>",values:{h3:e=>(0,r.jsx)("h3",{className:"font-semibold ",children:e}),p:e=>(0,r.jsx)("p",{children:e})}})}),(0,r.jsx)("div",{className:"my-2 py-2",children:(0,r.jsx)(a.FormattedMessage,{id:"configurable_product_definition",defaultMessage:" <h3>Configurable</h3> <p>Configurable Product is used to organize varieties of a product. A product might have a variation in color, size or other distinct property in that case you can use a configurable product type to organize all the variation under one category and outline-solid there difference. </p>",values:{h3:e=>(0,r.jsx)("h3",{className:"font-semibold ",children:e}),p:e=>(0,r.jsx)("p",{children:e})}})})]})]})]})]})}],98405)},432,(e,r,t)=>{let a="/products/new";(window.__NEXT_P=window.__NEXT_P||[]).push([a,()=>e.r(98405)]),r.hot&&r.hot.dispose(function(){window.__NEXT_P.push([a])})},8233,e=>{e.v(r=>Promise.all(["static/chunks/
|
|
193
|
+
`;e.s(["default",0,()=>{let[e,{data:r,error:a,loading:d}]=(0,t.useMutation)(o);return{createProduct:async({product:{type:r,tags:t},texts:a})=>e({variables:{product:{type:r,tags:t},texts:a},refetchQueries:["Products","ShopStatus","ShopInfo"]}),newProduct:r?.createProduct,error:a,loading:d}}])},98405,e=>{"use strict";var r=e.i(69178),t=e.i(49061),a=e.i(17255),d=e.i(98183),o=e.i(23529),l=e.i(12442),s=e.i(71588),i=e.i(6356),n=e.i(5858),b=e.i(19372),g=e.i(62010),u=e.i(82028),x=e.i(23518),p=e.i(88611),c=e.i(68686),m=e.i(5641),k=e.i(88246),y=e.i(81312);let f=({onSubmit:e,onSubmitSuccess:t})=>{let{formatMessage:a}=(0,d.useIntl)(),{hasRole:o}=(0,b.default)(),{selectedLocale:l,shopInfo:s}=(0,y.default)(),i=a({id:"product_added",defaultMessage:"Product added successfully!"}),f=(0,m.default)({submit:async r=>{let{title:t,subtitle:a,type:d,tags:o}=r;if(!t||!d)return{success:!1};let s=[{title:t,subtitle:a||"",slug:t.toLowerCase().replace(/\s+/g,"-"),locale:l}];return await e({texts:s,type:d,tags:o||[]})},onSubmitSuccess:t,successMessage:i,initialValues:{title:"",subtitle:"",type:n.IProductType.SimpleProduct,tags:[]}});return(0,r.jsxs)(g.default,{form:f,children:[(0,r.jsxs)("div",{className:"p-5 pb-7 sm:max-w-full flex flex-col gap-3",children:[(0,r.jsx)(c.default,{name:"title",id:"title",label:a({id:"name",defaultMessage:"Name"}),required:!0,className:"block w-full max-w-full rounded-md border-slate-300 dark:border-slate-800 text-sm focus:ring-slate-800 sm:text-sm"}),(0,r.jsx)(c.default,{name:"subtitle",id:"subtitle",label:a({id:"subtitle",defaultMessage:"Subtitle"}),className:"block w-full max-w-full rounded-md border-slate-300 dark:border-slate-800 text-sm focus:ring-slate-800 sm:text-sm"}),(0,r.jsx)(u.default,{className:"mt-1 w-full",label:a({id:"type",defaultMessage:"Type"}),placeholder:a({id:"type",defaultMessage:"Type"}),required:!0,name:"type",options:Object.fromEntries(Object.entries(n.IProductType).map(([e,r])=>[r,e]))}),(0,r.jsx)(p.default,{name:"tags",label:a({id:"tags",defaultMessage:"Tags"}),placeholder:a({id:"enter_tag",defaultMessage:"Enter tag..."}),selectOptions:(s?.adminUiConfig.productTags||[]).map(e=>({value:e,label:e}))}),(0,r.jsx)(k.default,{messageKey:"product_tags_help",defaultMessage:"Add keywords to organize and filter products (e.g., 'electronics', 'outdoor', 'premium'). These work across all languages and help customers find products through search and filters.",className:"mt-1"})]}),o(n.IRoleAction.ManageProducts)&&(0,r.jsx)("div",{className:"border-t border-t-slate-100 dark:border-t-slate-700 bg-slate-50 dark:bg-slate-900 p-5 text-right",children:(0,r.jsx)(x.default,{label:a({id:"add_product",defaultMessage:"Add Product"})})})]})};var h=e.i(32980),v=e.i(47024);e.s(["default",0,()=>{let{createProduct:e}=(0,h.default)(),n=(0,t.useRouter)(),{formatMessage:b}=(0,d.useIntl)(),g=async({texts:r,type:t,tags:a})=>{let{data:d,error:o}=await e({product:{type:t,tags:a},texts:r});return o?{success:!1}:{success:!0,data:d?.createProduct}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.default,{}),(0,r.jsx)(s.default,{headerText:b({id:"new_product_header",defaultMessage:"New product"})}),(0,r.jsxs)("div",{className:"mt-6 lg:grid lg:grid-cols-3 gap-10",children:[(0,r.jsx)("div",{className:"lg:col-span-2",children:(0,r.jsx)(l.default,{children:(0,r.jsx)(v.default,{children:(0,r.jsx)(f,{onSubmit:g,onSubmitSuccess:(e,{...r})=>(n.replace(`/products?slug=${(0,i.default)(r)}`),!0)})})})}),(0,r.jsxs)("div",{className:"mt-10 lg:mt-0 lg:col-span-1 space-y-2",children:[(0,r.jsx)("h3",{className:"text-lg text-slate-900 dark:text-slate-200",children:b({id:"product_type",defaultMessage:"Product type"})}),(0,r.jsxs)("div",{className:"text-sm divide-y divide-slate-200 dark:divide-slate-800 dark:text-slate-400 lg:mr-10",children:[(0,r.jsx)("div",{className:"my-2 py-2",children:(0,r.jsx)(a.FormattedMessage,{id:"simple_product_definition",defaultMessage:" <h3>Simple</h3> <p>Simple product is the most commonly used type of product type. It accepts configuration values for price, dimension and warehousing. Most e-commerce product needs are satisfied by this type </p>",values:{h3:e=>(0,r.jsx)("h3",{className:"font-semibold ",children:e}),p:e=>(0,r.jsx)("p",{children:e})}})}),(0,r.jsx)("div",{className:"my-2 py-2",children:(0,r.jsx)(a.FormattedMessage,{id:"plan_product_definition",defaultMessage:" <h3>Plan</h3> <p>Plan product is use when you have a product that is offered per subscription base. Since for this type of product the payment is usually recurring, you can adjust the interval of payment calculation. </p>",values:{h3:e=>(0,r.jsx)("h3",{className:"font-semibold ",children:e}),p:e=>(0,r.jsx)("p",{children:e})}})}),(0,r.jsx)("div",{className:"my-2 py-2",children:(0,r.jsx)(a.FormattedMessage,{id:"bundle_product_definition",defaultMessage:" <h3>Bundle</h3> <p>As the name suggest this product type enables you to create a collection/bundle of products as one and set the price accordingly. This type of product is useful if you have christmas package for example. </p>",values:{h3:e=>(0,r.jsx)("h3",{className:"font-semibold ",children:e}),p:e=>(0,r.jsx)("p",{children:e})}})}),(0,r.jsx)("div",{className:"my-2 py-2",children:(0,r.jsx)(a.FormattedMessage,{id:"configurable_product_definition",defaultMessage:" <h3>Configurable</h3> <p>Configurable Product is used to organize varieties of a product. A product might have a variation in color, size or other distinct property in that case you can use a configurable product type to organize all the variation under one category and outline-solid there difference. </p>",values:{h3:e=>(0,r.jsx)("h3",{className:"font-semibold ",children:e}),p:e=>(0,r.jsx)("p",{children:e})}})})]})]})]})]})}],98405)},432,(e,r,t)=>{let a="/products/new";(window.__NEXT_P=window.__NEXT_P||[]).push([a,()=>e.r(98405)]),r.hot&&r.hot.dispose(function(){window.__NEXT_P.push([a])})},8233,e=>{e.v(r=>Promise.all(["static/chunks/c88c6cd9171a39a6.js"].map(r=>e.l(r))).then(()=>r(64324)))},69209,e=>{e.v(r=>Promise.all(["static/chunks/aac8a0823d648ca4.js"].map(r=>e.l(r))).then(()=>r(3506)))}]);
|