This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export const clickOutside = (node, config = {}) => { | |
| const options = { | |
| include: [], | |
| onClickOutside: () => {}, | |
| ...config | |
| }; | |
| const detect = ({ target }) => { | |
| if (!node.contains(target) || options.include.some((i) => target.isSameNode(i))) { | |
| options.onClickOutside(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 8.0K /tmp/snap-private-tmp/snap.chromium/tmp/puppeteer_dev_chrome_profile-XXXXXXAzg42A/Default/Cache | |
| 8.0K /tmp/snap-private-tmp/snap.chromium/tmp/puppeteer_dev_chrome_profile-XXXXXXAzg42A/Default/Code Cache/wasm/index-dir | |
| 16K /tmp/snap-private-tmp/snap.chromium/tmp/puppeteer_dev_chrome_profile-XXXXXXAzg42A/Default/Code Cache/wasm | |
| 8.0K /tmp/snap-private-tmp/snap.chromium/tmp/puppeteer_dev_chrome_profile-XXXXXXAzg42A/Default/Code Cache/js/index-dir | |
| 16K /tmp/snap-private-tmp/snap.chromium/tmp/puppeteer_dev_chrome_profile-XXXXXXAzg42A/Default/Code Cache/js | |
| 36K /tmp/snap-private-tmp/snap.chromium/tmp/puppeteer_dev_chrome_profile-XXXXXXAzg42A/Default/Code Cache | |
| 204K /tmp/snap-private-tmp/snap.chromium/tmp/puppeteer_dev_chrome_profile-XXXXXXAzg42A/Default | |
| 212K /tmp/snap-private-tmp/snap.chromium/tmp/puppeteer_dev_chrome_profile-XXXXXXAzg42A | |
| 8.0K /tmp/snap-private-tmp/snap.chromium/tmp/puppeteer_dev_chrome_profile-XXXXXX2opNZn/Default/Shared Dictionary/cache/index-dir | |
| 16K /tmp/snap-p |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const whatsapp_payload = { | |
| recipient_number: data.recipient_number, | |
| template: { // template in meta dashboard | |
| name: "order", | |
| language: { | |
| code: "en" | |
| }, | |
| components: [ | |
| { | |
| type: "header", |