@subiz/widget-v4 4.1.9 → 4.1.10

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.
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="2500" height="2500" viewBox="0 0 192.756 192.756"><g fill-rule="evenodd" clip-rule="evenodd"><path fill="#fff" fill-opacity="0" d="M0 0h192.756v192.756H0V0z"/><path d="M67.813 59.343c2.447-1.596 6.277 2.128 8.192.532 2.021-1.595.106-5.212 1.276-7.127.426-.852 1.915-.319 2.766 0 .745.213 1.383.532 1.915.744.638.32 1.277.532 1.809.532s.851-.425.958-.638c.958-1.809 1.064-3.831 1.596-5.64.106-.425.639-.531.958-.318 1.596.744 3.617 3.724 4.363 2.447.851-1.383 1.383-2.979 1.701-4.575.319-2.234.319-4.468.213-6.703 0-.106-.106-.319-.213-.425-1.489-1.17-9.042 2.234-9.788 2.66-.532.318-1.064.531-1.596.851-5 2.873-9.788 5.958-14.15 9.469-.851.744-5.852 5.213-8.192 8.191-1.063 1.383-1.595 2.34-1.17 2.766.426.32.746.639 1.17.852 1.17.851 2.34 1.702 3.511 2.34 10.32 5.107.745-3.298 4.681-5.958z"/><path d="M101.219 92.217c-2.234-4.575-5.212-8.617-7.873-12.979-2.979-4.788-5.745-9.788-7.021-15.853-.426-2.234.958-11.595-3.404-5-.319.425-.639.957-.958 1.383-.852 1.596-1.596 3.085-2.234 4.575-2.766 6.702-2.873 15-.319 21.916a42.403 42.403 0 0 0 2.553 5.426c3.192 5.533 7.447 10.426 11.383 15.744 3.085 4.256 5.958 8.938 7.66 14.469.107.213.213.533.213.746.533 2.234.426 4.256 1.064 6.17.107.426.852-.318.957-.639 2.021-6.914 2.34-15.426 1.916-22.553-.426-5.106-1.916-9.362-3.937-13.405z"/><path d="M93.346 122.432c-3.617-3.936-7.66-7.873-11.383-12.021a62.872 62.872 0 0 1-6.596-8.512c-4.894-7.873-4.468-14.681-3.723-23.831 0-.532 2.446-12.661 1.17-12.235-4.788 1.703-9.575 14.256-10.639 18.512-4.042 17.023.957 31.597 12.873 43.513 2.766 2.766 5 5.213 6.916 7.447 5.638 6.594 8.192 12.02 11.383 21.383.639 2.021 1.276 4.148 2.022 6.596.212.426.638.531.638.531a10.655 10.655 0 0 0 2.234-2.764c1.277-2.342 2.234-4.469 2.979-6.598 2.979-7.979 2.447-14.467 0-20.213-1.81-4.256-4.681-8.086-7.874-11.808zM56.536 64.663c-.639-.318-1.17-.425-1.809-.213-.958.32-1.808 1.49-2.554 2.341-1.276 1.809-4.361 4.042-3.084 5.319.638.745 3.191 1.596 5.638 2.233 1.809.533 3.618.852 4.894.852.426-.105.746-.105 1.064-.213.319-.212-.212-2.659-1.064-5.106-.957-2.341-2.127-4.788-3.085-5.213zM107.283 92.749c1.064-2.234 1.703-4.893 2.021-7.554.213-1.808.32-3.724 0-5.532 0-.319-.105-.638-.105-.958-1.385-7.021-4.15-13.724-5.639-20.319-1.277-5.426 2.871-10.319 1.275-15.64-.957-2.979-2.66-5.212-3.191-7.872-.105-.958.107-1.915.639-2.234.639-.213 1.064.425 1.277.637 1.383 1.809 2.127 3.725 3.404 5.001 1.275 1.276.744-7.766.637-8.086-.318-1.915-.637-3.936-1.596-5.638-1.062-2.021-2.871-3.085-4.787-3.405-3.51-.425-7.234 1.916-7.66 6.171a12.17 12.17 0 0 0 .319 4.787c.531 2.234 1.809 4.043 2.447 5.958.745 2.127.958 5.213.319 7.447-.852 2.979-2.447 5.532-3.085 8.191-.106.319-.213.639-.213.958-.425 2.127-.425 4.362-.106 6.17 0 .212 0 .426.106.532.532 3.084 1.276 6.064 2.341 8.936 1.489 3.937 3.831 7.554 5.532 11.383.32.532.533 1.17.744 1.703 1.49 3.723 2.023 7.234 3.193 10.639.533 1.598 1.915-.637 2.128-1.275zM126.113 55.194c-2.447-1.595-3.936 1.383-3.191 5.001.32 1.383 1.172 2.553 1.596 3.51.32.532.959.745 1.596.745 1.277 0 2.66-.531 3.086-1.383.957-1.808-.107-4.468-1.277-5.958-.64-.851-1.171-1.489-1.81-1.915z"/><path d="M132.816 16.15c-2.129-1.063-4.363-1.915-6.703-2.766-5.318-1.915-10.957-3.298-16.809-4.148-2.66-.426-5.318-.746-8.086-.852-1.596-.107-3.191-.107-4.787-.107h-3.085c-3.829.107-7.66.532-11.383 1.17a83.955 83.955 0 0 0-22.342 6.915c-1.702.745-3.297 1.489-4.894 2.341C27.067 33.598 8.13 62.961 8.13 96.473c0 33.619 18.937 62.875 46.597 77.77 1.596.852 3.192 1.703 4.894 2.447a92.49 92.49 0 0 0 22.342 6.914c2.447.318 4.788.639 7.234.852 2.66.213 3.724-.959 4.149-2.66.319-1.596.106-3.617 0-5.426v-.424c-.531-7.129-5.532-15.746-11.383-23.832-7.234-9.893-15.852-19.148-19.15-23.938a182.023 182.023 0 0 1-3.192-5.105 52.215 52.215 0 0 1-4.894-10.639c-1.808-6.064-2.234-12.342-1.915-20.214.213-5.426 2.234-7.766 0-12.234-.957-2.021-1.702-3.83-3.085-5.001-.958-.851-2.235-.531-3.192-.318-1.596.426-3.511 4.468-4.042 5.957-.638 1.49-2.127 3.937-.958 4.362 1.063.319 11.809-1.383 10.32 1.277-17.448 31.916-7.553 48.406 2.872 61.172 1.703 2.021 3.298 3.83 4.894 5.746 4.681 5.639 8.724 10.957 9.043 17.127.213 3.299.213 5.107-4.043 3.299-1.702-.744-3.404-1.488-5-2.34-1.702-.744-3.297-1.596-4.894-2.555-24.894-14.469-41.704-41.383-41.704-72.236 0-30.746 16.81-57.768 41.704-72.237 1.596-.958 3.192-1.809 4.894-2.553 6.916-3.511 14.469-5.958 22.342-7.341a100.837 100.837 0 0 1 11.383-1.276h3.085c1.596 0 3.191 0 4.787.106 2.768.213 5.426.426 8.086.851 5.852.958 11.49 2.447 16.809 4.469 2.34.957 4.574 1.915 6.703 2.979 27.873 13.511 47.023 42.13 47.023 75.003 0 11.277-1.703 21.277-5.959 30.959-8.51 19.576-23.512 30.107-41.064 37.127-2.129.852-4.363 1.703-6.703 2.447-5.426 1.918-11.064 3.514-16.809 5.109-.105 0-.213.105-.318.105-1.172.318-1.809.531-2.66 6.064-.852 5.426-.533 6.062 2.979 5.533.213 0 .32-.107.426-.107 5.639-.852 11.17-2.234 16.383-4.15 2.34-.852 4.574-1.703 6.703-2.66 30.533-13.938 51.809-44.787 51.809-80.428-.001-35.641-21.276-66.387-51.81-80.324z"/><path d="M143.348 84.664c-2.553 1.383-6.49.213-9.148 2.233-.957.745-.744 4.043-.32 5 .852 1.596 2.555 2.128 3.512 3.085 1.277 1.49 1.703 3.511 3.086 4.681.957.852 5.213 2.766 6.277.957 3.51-5.851 4.893-3.615 9.041-7.872 2.234-2.128-1.062-15.106-4.359-17.128-2.555-1.702-5.961-1.702-7.768-3.83-1.809-1.916-1.383-5-2.234-7.128-1.064-2.659-1.916-5.212-3.191-7.553-1.385-2.873-3.299-4.894-5.426-6.596-2.234-1.915-4.682-3.404-6.703-5.319-.957-.958-1.809-1.916-2.553-3.086-2.342-4.042.213-12.447-3.086-15-2.34-1.915-5.957 1.17-6.596 3.405-1.277 4.787-3.83 11.064-4.574 16.916a21.339 21.339 0 0 0 0 5.213c.213 1.383.533 2.66 1.17 3.83 1.383 3.192 3.297 6.17 4.682 9.043.531 1.17.531 2.554.318 3.83-1.062 4.362-2.66 4.362-4.467 7.766-.426.958-.639 2.021-.213 2.873 3.084 6.17 9.041 7.766 15.318 7.659 1.277 0 2.447 0 3.723-.212.426 0 .959-.213.959-.533 0-3.936-.32-2.553-2.553-4.787-.746-.745-1.383-1.49-1.49-2.128-.318-.852-.426-1.703-.639-2.553-.318-1.809-.531-3.618-.957-5.32a38.823 38.823 0 0 0-2.234-5.958c-1.383-2.872-3.191-5.425-4.043-8.404-1.596-6.17.426-8.724 6.598-7.554.213.107.424.107.637.213 1.064.319 1.809.958 2.447 1.384 1.488 1.063 2.66 2.021 3.51 3.084.32.532.533.958.746 1.383.426.639.639 1.17.744 1.809.744 2.128 1.277 4.042 1.596 5.958.318 1.808.426 3.405.318 5-.211 2.446-.957 4.681-.957 6.915 0 4.681 5.215-.106 6.598-.319 2.34-.426 3.936 4.468 3.723 5.958-.11 1.382-.641 2.552-1.492 3.085z"/></g></svg>
@@ -0,0 +1,13 @@
1
+ let hash = 'XXXXXXXX' // do not change, will be replaced to real hash
2
+
3
+ window._subiz_init_2094850928430 = true
4
+ window._subiz_init_2094850928430_keep_loading = true
5
+ var tag = document.createElement('script')
6
+ tag.async = 1
7
+ tag.src = 'https://public-gcs.subiz-cdn.com/widget-v4/public/' + hash + '.app.js'
8
+ document.body.appendChild(tag)
9
+
10
+ // record which domain still use old code
11
+ var xhttp = new XMLHttpRequest()
12
+ xhttp.open('GET', 'https://api.sbz.vn/4.0/old', true)
13
+ xhttp.send()
@@ -4,4 +4,4 @@
4
4
  }
5
5
  body {
6
6
  background: #ddd;
7
- }</style></head><body><script defer="defer" src="./screenshoot.js"></script></body></html>
7
+ }</style></head><body><script defer="defer" src="https://vcdn.subiz-cdn.com/widget-v4/public/18575d3fa38.screenshoot.js"></script></body></html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@subiz/widget-v4",
3
- "version": "4.1.9",
3
+ "version": "4.1.10",
4
4
  "main": "./compiled_src/lib.js",
5
5
  "scripts": {
6
6
  "dev": "npx webpack serve --config webpack.dev.js",
@@ -10,7 +10,7 @@ export default class PoweredBy extends Com {
10
10
  render() {
11
11
  // dont render onmobile
12
12
  if (this.props.store.isMobile()) return null
13
- let user = this.props.store.matchUser()
13
+ let user = this.props.store.matchUser() || {}
14
14
  var link = `https://subiz.com.vn/?utm_source=id-${user.account_id}&utm_medium=widget&utm_campaign=widget_referral`
15
15
 
16
16
  return (
@@ -262,7 +262,7 @@ export default class Notif extends Com {
262
262
 
263
263
  let $title = this.renderTextFromQuillDelta(this.state.title, user)
264
264
  let $message = this.renderTextFromQuillDelta(this.state.message, user)
265
- if (!lo.size($title) && !lo.size($message)) $time = null
265
+ if (!sb.size($title) && !sb.size($message)) $time = null
266
266
 
267
267
  return (
268
268
  <div