@social-mail/social-mail-client 1.2.598 → 1.2.600

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.
Files changed (45) hide show
  1. package/dist/admin/AdminAppIndex.pack.js +9 -9
  2. package/dist/admin/AdminAppIndex.pack.js.map +1 -1
  3. package/dist/admin/AdminAppIndex.pack.min.js +2 -2
  4. package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
  5. package/dist/admin/pages/stores/AdminStoreDetailPage.d.ts.map +1 -1
  6. package/dist/admin/pages/stores/AdminStoreDetailPage.js +8 -8
  7. package/dist/admin/pages/stores/AdminStoreDetailPage.js.map +1 -1
  8. package/dist/common/Slugger.js +1 -1
  9. package/dist/common/Slugger.js.map +1 -1
  10. package/dist/public/channel/ChannelView.pack.js +3 -2
  11. package/dist/public/channel/ChannelView.pack.js.map +1 -1
  12. package/dist/public/channel/ChannelView.pack.min.js +3 -3
  13. package/dist/public/channel/ChannelView.pack.min.js.map +1 -1
  14. package/dist/public/channel/controls/MediaCarousel.d.ts.map +1 -1
  15. package/dist/public/channel/controls/MediaCarousel.js +1 -0
  16. package/dist/public/channel/controls/MediaCarousel.js.map +1 -1
  17. package/dist/public/store/Store.d.ts.map +1 -1
  18. package/dist/public/store/Store.js +2 -2
  19. package/dist/public/store/Store.js.map +1 -1
  20. package/dist/public/store/Store.pack.js +88 -26
  21. package/dist/public/store/Store.pack.js.map +1 -1
  22. package/dist/public/store/Store.pack.min.js +5 -5
  23. package/dist/public/store/Store.pack.min.js.map +1 -1
  24. package/dist/public/store/StoreItemDetailView.js +8 -8
  25. package/dist/public/store/StoreItemDetailView.js.map +1 -1
  26. package/dist/public/store/StoreItemListView.d.ts.map +1 -1
  27. package/dist/public/store/StoreItemListView.js +9 -6
  28. package/dist/public/store/StoreItemListView.js.map +1 -1
  29. package/dist/public/store/StoreUrlService.d.ts +23 -0
  30. package/dist/public/store/StoreUrlService.d.ts.map +1 -0
  31. package/dist/public/store/StoreUrlService.js +61 -0
  32. package/dist/public/store/StoreUrlService.js.map +1 -0
  33. package/dist/site-editor/editor/webComponentsPath.js +1 -1
  34. package/dist/tsconfig.tsbuildinfo +1 -1
  35. package/dist/web/AppIndex.pack.js +1 -1
  36. package/dist/web/AppIndex.pack.min.js +1 -1
  37. package/package.json +1 -1
  38. package/src/admin/pages/stores/AdminStoreDetailPage.tsx +5 -4
  39. package/src/common/Slugger.ts +1 -1
  40. package/src/public/channel/controls/MediaCarousel.tsx +3 -1
  41. package/src/public/store/Store.tsx +2 -3
  42. package/src/public/store/StoreItemDetailView.tsx +2 -2
  43. package/src/public/store/StoreItemListView.tsx +6 -2
  44. package/src/public/store/StoreUrlService.ts +76 -0
  45. package/src/site-editor/editor/webComponentsPath.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"MediaCarousel.d.ts","sourceRoot":"","sources":["../../../../src/public/channel/controls/MediaCarousel.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,KAAwB,EAAC;;CAAA,OAYhE"}
1
+ {"version":3,"file":"MediaCarousel.d.ts","sourceRoot":"","sources":["../../../../src/public/channel/controls/MediaCarousel.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,KAAwB,EAAC;;CAAA,OAchE"}
@@ -12,6 +12,7 @@ System.register(["@web-atoms/core/dist/core/XNode"], function (_export, _context
12
12
  return XNode.create("carousel-slider", null, ...email.attachments.map(x => /image/i.test(x.contentType) ? XNode.create("img", {
13
13
  src: x.downloadUrl
14
14
  }) : /video/i.test(x.contentType) && XNode.create("video", {
15
+ controls: "true",
15
16
  src: x.downloadUrl
16
17
  })));
17
18
  }
@@ -1 +1 @@
1
- {"version":3,"names":["MediaCarousel","email","_a","attachments","length","XNode","create","map","x","test","contentType","src","downloadUrl","_export","setters","_webAtomsCoreDistCoreXNode","default","execute"],"sources":["../../../../src/public/channel/controls/MediaCarousel.tsx"],"sourcesContent":[null],"mappings":";;;;EAGc,SAAUA,aAAaA,CAAC;IAAEC,KAAK,GAAG,KAAK;EAAW,CAAC;;IAC7D,IAAI,EAAC,CAAAC,EAAA,GAAAD,KAAK,CAACE,WAAW,cAAAD,EAAA,uBAAAA,EAAA,CAAEE,MAAM,GAAE;MAC5B,OAAOC,KAAA,CAAAC,MAAA,aAAM;;IAEjB,OAAOD,KAAA,CAAAC,MAAA,6BACGL,KAAK,CAACE,WAAW,CAACI,GAAG,CAAEC,CAAC,IAAK,QAAQ,CAACC,IAAI,CAACD,CAAC,CAACE,WAAW,CAAC,GAC7DL,KAAA,CAAAC,MAAA;MAAKK,GAAG,EAAEH,CAAC,CAACI;IAAW,EAAI,GAC1B,QAAQ,CAACH,IAAI,CAACD,CAAC,CAACE,WAAW,CAAC,IACxBL,KAAA,CAAAC,MAAA;MAAOK,GAAG,EAAEH,CAAC,CAACI;IAAW,EAC/B,CACJ,CACiB;EACtB;EAACC,OAAA,YAZuBb,aAAa;EAAA;IAAAc,OAAA,aAAAC,0BAAA;MAH9BV,KAAK,GAAAU,0BAAA,CAAAC,OAAA;IAAA;IAAAC,OAAA,WAAAA,CAAA;EAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["MediaCarousel","email","_a","attachments","length","XNode","create","map","x","test","contentType","src","downloadUrl","controls","_export","setters","_webAtomsCoreDistCoreXNode","default","execute"],"sources":["../../../../src/public/channel/controls/MediaCarousel.tsx"],"sourcesContent":[null],"mappings":";;;;EAGc,SAAUA,aAAaA,CAAC;IAAEC,KAAK,GAAG,KAAK;EAAW,CAAC;;IAC7D,IAAI,EAAC,CAAAC,EAAA,GAAAD,KAAK,CAACE,WAAW,cAAAD,EAAA,uBAAAA,EAAA,CAAEE,MAAM,GAAE;MAC5B,OAAOC,KAAA,CAAAC,MAAA,aAAM;;IAEjB,OAAOD,KAAA,CAAAC,MAAA,6BACGL,KAAK,CAACE,WAAW,CAACI,GAAG,CAAEC,CAAC,IAAK,QAAQ,CAACC,IAAI,CAACD,CAAC,CAACE,WAAW,CAAC,GAC7DL,KAAA,CAAAC,MAAA;MAAKK,GAAG,EAAEH,CAAC,CAACI;IAAW,EAAI,GAC1B,QAAQ,CAACH,IAAI,CAACD,CAAC,CAACE,WAAW,CAAC,IACxBL,KAAA,CAAAC,MAAA;MACCO,QAAQ,EAAC,MAAM;MACfF,GAAG,EAAEH,CAAC,CAACI;IAAW,EACzB,CACJ,CACiB;EACtB;EAACE,OAAA,YAduBd,aAAa;EAAA;IAAAe,OAAA,aAAAC,0BAAA;MAH9BX,KAAK,GAAAW,0BAAA,CAAAC,OAAA;IAAA;IAAAC,OAAA,WAAAA,CAAA;EAAA;AAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"Store.d.ts","sourceRoot":"","sources":["../../../src/public/store/Store.tsx"],"names":[],"mappings":"AACA,OAAO,yBAAyB,CAAC;AAajC,QAAA,MAAiB,IAAI,KAEsB,CAAC;AAG5C,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,IAAI;CAEtC"}
1
+ {"version":3,"file":"Store.d.ts","sourceRoot":"","sources":["../../../src/public/store/Store.tsx"],"names":[],"mappings":"AACA,OAAO,yBAAyB,CAAC;AAYjC,QAAA,MAAiB,IAAI,KAEsB,CAAC;AAG5C,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,IAAI;CAEtC"}
@@ -12,8 +12,8 @@ System.register(["tslib", "@web-atoms/core/dist/web/WebApp", "../../style/Global
12
12
  }],
13
13
  execute: async function () {
14
14
  if (/\d+\.\d+\.\d+\.\d+/i.test(location.hostname)) {
15
- WebApp.installStyleSheet("//d2qk6ju4y4xfge.cloudfront.net/api/site/snapshot/download/266280/453429/styler.css");
16
- WebApp.installStyleSheet("//d2qk6ju4y4xfge.cloudfront.net/api/site/snapshot/download/266280/453941/vars.css");
15
+ WebApp.installStyleSheet("/styles/styler.css");
16
+ WebApp.installStyleSheet("/styles/vars.css");
17
17
  }
18
18
  url = new URL(location.href);
19
19
  window.pageUrl = url;
@@ -1 +1 @@
1
- {"version":3,"names":["WebApp","_webAtomsCoreDistWebWebApp","default","_styleGlobalStyle","_webAtomsCoreDistPack","Pack","execute","test","location","hostname","installStyleSheet","url","URL","href","window","pageUrl","view","pathname","searchParams","has","_context","import","Empty","__decorate","_export"],"sources":["../../../src/public/store/Store.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;MAAOA,MAAM,GAAAC,0BAAA,CAAAC,OAAA;IAAA,aAAAC,iBAAA,gBAAAC,qBAAA;MAENC,IAAI,GAAAD,qBAAA,CAAAF,OAAA;IAAA;IAAAI,OAAA,iBAAAA,CAAA;MAEX,IAAG,qBAAqB,CAACC,IAAI,CAACC,QAAQ,CAACC,QAAQ,CAAC,EAAE;QAE9CT,MAAM,CAACU,iBAAiB,CAAC,qFAAqF,CAAC;QAC/GV,MAAM,CAACU,iBAAiB,CAAC,mFAAmF,CAAC;;MAK3GC,GAAG,GAAG,IAAIC,GAAG,CAACJ,QAAQ,CAACK,IAAI,CAAC;MACjCC,MAAc,CAACC,OAAO,GAAGJ,GAAG;MAAC,CACxB;QAAET,OAAO,EAAEc;MAAI,CAAE,GAAG,OAAO,cAAc,CAACT,IAAI,CAACI,GAAG,CAACM,QAAQ,CAAC,IAAIN,GAAG,CAACO,YAAY,CAACC,GAAG,CAAC,QAAQ,CAAC,GAAAC,QAAA,CAAAC,MAAA,CACvF,uBAAuB,IAAAD,QAAA,CAAAC,MAAA,CACvB,qBAAqB,CAAC,CAAQ;MAGtBC,KAAK,GAAX,MAAMA,KAAM,SAAQN,IAAI,GAEtC;MAFoBM,KAAK,GAAAC,UAAA,EADzBlB,IAAI,C,EACgBiB,KAAK,CAEzB;MAAAE,OAAA,YAFoBF,KAAK;IAAA;EAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["WebApp","_webAtomsCoreDistWebWebApp","default","_styleGlobalStyle","_webAtomsCoreDistPack","Pack","execute","test","location","hostname","installStyleSheet","url","URL","href","window","pageUrl","view","pathname","searchParams","has","_context","import","Empty","__decorate","_export"],"sources":["../../../src/public/store/Store.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;MAAOA,MAAM,GAAAC,0BAAA,CAAAC,OAAA;IAAA,aAAAC,iBAAA,gBAAAC,qBAAA;MAENC,IAAI,GAAAD,qBAAA,CAAAF,OAAA;IAAA;IAAAI,OAAA,iBAAAA,CAAA;MAEX,IAAG,qBAAqB,CAACC,IAAI,CAACC,QAAQ,CAACC,QAAQ,CAAC,EAAE;QAE9CT,MAAM,CAACU,iBAAiB,CAAC,oBAAoB,CAAC;QAC9CV,MAAM,CAACU,iBAAiB,CAAC,kBAAkB,CAAC;;MAI1CC,GAAG,GAAG,IAAIC,GAAG,CAACJ,QAAQ,CAACK,IAAI,CAAC;MACjCC,MAAc,CAACC,OAAO,GAAGJ,GAAG;MAAC,CACxB;QAAET,OAAO,EAAEc;MAAI,CAAE,GAAG,OAAO,cAAc,CAACT,IAAI,CAACI,GAAG,CAACM,QAAQ,CAAC,IAAIN,GAAG,CAACO,YAAY,CAACC,GAAG,CAAC,QAAQ,CAAC,GAAAC,QAAA,CAAAC,MAAA,CACvF,uBAAuB,IAAAD,QAAA,CAAAC,MAAA,CACvB,qBAAqB,CAAC,CAAQ;MAGtBC,KAAK,GAAX,MAAMA,KAAM,SAAQN,IAAI,GAEtC;MAFoBM,KAAK,GAAAC,UAAA,EADzBlB,IAAI,C,EACgBiB,KAAK,CAEzB;MAAAE,OAAA,YAFoBF,KAAK;IAAA;EAAA;AAAA","ignoreList":[]}
@@ -1976,7 +1976,7 @@ const UMD = new UMDClass();
1976
1976
 
1977
1977
  AmdLoader.instance.register(
1978
1978
  ["@social-mail/social-mail-client","@web-atoms/core","reflect-metadata","@web-atoms/date-time","@web-atoms/entity","@web-atoms/web-controls","@web-atoms/data-styles"],
1979
- ["@social-mail/social-mail-client/dist/public/store/Store","@social-mail/social-mail-client/dist/public/store/StoreItemDetailView","@web-atoms/core/dist/core/InjectProperty","@web-atoms/core/dist/web/controls/AtomControl","@web-atoms/core/dist/core/AtomBinder","@web-atoms/core/dist/core/types","reflect-metadata","@web-atoms/core/dist/core/AtomMap","@web-atoms/core/dist/core/AtomComponent","@web-atoms/core/dist/App","@web-atoms/core/dist/core/AtomDispatcher","@web-atoms/core/dist/di/RegisterSingleton","@web-atoms/core/dist/di/Register","@web-atoms/core/dist/di/ServiceCollection","@web-atoms/core/dist/di/TypeKey","@web-atoms/core/dist/di/ServiceProvider","@web-atoms/core/dist/core/TransientDisposable","@web-atoms/core/dist/di/Inject","@web-atoms/core/dist/services/BusyIndicatorService","@web-atoms/core/dist/core/AtomDisposableList","@web-atoms/core/dist/core/AtomWatcher","@web-atoms/core/dist/core/ExpressionParser","@web-atoms/core/dist/core/Bind","@web-atoms/core/dist/core/Hacks","@web-atoms/core/dist/web/core/AtomUI","@web-atoms/core/dist/core/InheritedProperty","@web-atoms/core/dist/core/PropertyMap","@web-atoms/core/dist/core/XNode","@web-atoms/core/dist/core/BindableProperty","@web-atoms/core/dist/core/Command","@web-atoms/core/dist/core/EventScope","@web-atoms/date-time/dist/DateTime","@web-atoms/date-time/dist/TimeSpan","@web-atoms/core/dist/core/Route","@web-atoms/core/dist/core/StringHelper","@web-atoms/core/dist/core/FormattedString","@web-atoms/core/dist/core/WebImage","@web-atoms/core/dist/web/styles/AtomStyle","@web-atoms/core/dist/web/styles/AtomStyleSheet","@social-mail/social-mail-client/dist/services/EntityService","@web-atoms/core/dist/di/DISingleton","@web-atoms/entity/dist/services/BaseEntityService","@web-atoms/entity/dist/models/Cloner","@web-atoms/entity/dist/models/cloneSource","@web-atoms/entity/dist/models/IEntityModel","@web-atoms/entity/dist/services/HttpSession","@web-atoms/core/dist/services/http/JsonError","@web-atoms/entity/dist/models/TaskManager","@web-atoms/entity/dist/models/Queue","@web-atoms/entity/dist/services/mergeProperties","@web-atoms/entity/dist/services/Query","@web-atoms/entity/dist/services/StringHelper","@web-atoms/entity/dist/services/resolve","@social-mail/social-mail-client/dist/services/BusyProgress","@web-atoms/core/dist/style/styled","@social-mail/social-mail-client/dist/common/apiPath","@social-mail/social-mail-client/dist/model/model","@web-atoms/web-controls/dist/basic/AtomRepeater","@web-atoms/core/dist/core/Colors","@web-atoms/core/dist/core/WatchProperty","@web-atoms/core/dist/web/services/PopupService","@web-atoms/core/dist/web/services/PopupWindow","@web-atoms/core/dist/core/sleep","@web-atoms/web-controls/dist/basic/InlinePopup","@web-atoms/web-controls/dist/basic/styles/inline-popup-style","@web-atoms/web-controls/dist/basic/MergeNode","@web-atoms/web-controls/dist/basic/ItemPath","@web-atoms/web-controls/dist/basic/styles/ui-display-none-style","@web-atoms/web-controls/dist/basic/styles/popup-style","@web-atoms/web-controls/dist/basic/styles/suggestion-popup","@web-atoms/web-controls/dist/basic/styles/repeater-style","@web-atoms/web-controls/dist/DataAttributes","@web-atoms/web-controls/dist/basic/ZoomView","@web-atoms/web-controls/dist/basic/styles/zoom-view-style","@social-mail/social-mail-client/dist/common/fileUrl","@web-atoms/core/dist/view-model/Action","@web-atoms/core/dist/services/NavigationService","@web-atoms/core/dist/core/AtomUri","@web-atoms/core/dist/services/ReferenceService","@web-atoms/core/dist/services/FetchBuilder","@social-mail/social-mail-client/dist/common/currency","@web-atoms/web-controls/dist/basic/ToggleButtonBar","@web-atoms/web-controls/dist/basic/styles/toggle-button-bar-style","@social-mail/social-mail-client/dist/public/store/StoreItemListView","@social-mail/social-mail-client/dist/common/controls/repeater/InfiniteRepeater","@social-mail/social-mail-client/dist/common/Sql","@social-mail/social-mail-client/dist/public/store/storeItemLink","@social-mail/social-mail-client/dist/common/toBase36","@web-atoms/core/dist/web/WebApp","@web-atoms/core/dist/core/AtomOnce","@web-atoms/core/dist/web/services/WebBusyIndicatorService","@web-atoms/core/dist/web/styles/StyleBuilder","@web-atoms/core/dist/web/services/WindowService","@web-atoms/core/dist/Atom","@web-atoms/core/dist/core/AtomLoader","@web-atoms/core/dist/services/JsonService","@web-atoms/core/dist/core/FormattedError","@web-atoms/core/dist/view-model/AtomWindowViewModel","@web-atoms/core/dist/view-model/AtomViewModel","@web-atoms/core/dist/view-model/baseTypes","@web-atoms/core/dist/web/controls/AtomAlertWindow","@web-atoms/core/dist/web/styles/AtomAlertWindowStyle","@web-atoms/core/dist/web/styles/AtomWindowStyle","@web-atoms/core/src/web/images/close-button-hover.svg","@web-atoms/core/dist/web/controls/AtomWindow","@web-atoms/core/dist/web/controls/AtomTemplate","@web-atoms/core/dist/web/controls/AtomNotification","@web-atoms/core/dist/web/styles/AtomNotificationStyle","@web-atoms/core/dist/web/styles/AtomPopupStyle","@web-atoms/core/dist/web/services/NotificationPopup","@web-atoms/core/dist/web/styles/AtomTheme","@social-mail/social-mail-client/dist/style/GlobalStyle","@web-atoms/core/dist/core/AtomList","@social-mail/social-mail-client/dist/style/OverrideAppStyle","@web-atoms/data-styles/data-styles","@web-atoms/core/dist/Pack"]);
1979
+ ["@social-mail/social-mail-client/dist/public/store/Store","@social-mail/social-mail-client/dist/public/store/StoreItemDetailView","@web-atoms/core/dist/core/InjectProperty","@web-atoms/core/dist/web/controls/AtomControl","@web-atoms/core/dist/core/AtomBinder","@web-atoms/core/dist/core/types","reflect-metadata","@web-atoms/core/dist/core/AtomMap","@web-atoms/core/dist/core/AtomComponent","@web-atoms/core/dist/App","@web-atoms/core/dist/core/AtomDispatcher","@web-atoms/core/dist/di/RegisterSingleton","@web-atoms/core/dist/di/Register","@web-atoms/core/dist/di/ServiceCollection","@web-atoms/core/dist/di/TypeKey","@web-atoms/core/dist/di/ServiceProvider","@web-atoms/core/dist/core/TransientDisposable","@web-atoms/core/dist/di/Inject","@web-atoms/core/dist/services/BusyIndicatorService","@web-atoms/core/dist/core/AtomDisposableList","@web-atoms/core/dist/core/AtomWatcher","@web-atoms/core/dist/core/ExpressionParser","@web-atoms/core/dist/core/Bind","@web-atoms/core/dist/core/Hacks","@web-atoms/core/dist/web/core/AtomUI","@web-atoms/core/dist/core/InheritedProperty","@web-atoms/core/dist/core/PropertyMap","@web-atoms/core/dist/core/XNode","@web-atoms/core/dist/core/BindableProperty","@web-atoms/core/dist/core/Command","@web-atoms/core/dist/core/EventScope","@web-atoms/date-time/dist/DateTime","@web-atoms/date-time/dist/TimeSpan","@web-atoms/core/dist/core/Route","@web-atoms/core/dist/core/StringHelper","@web-atoms/core/dist/core/FormattedString","@web-atoms/core/dist/core/WebImage","@web-atoms/core/dist/web/styles/AtomStyle","@web-atoms/core/dist/web/styles/AtomStyleSheet","@social-mail/social-mail-client/dist/services/EntityService","@web-atoms/core/dist/di/DISingleton","@web-atoms/entity/dist/services/BaseEntityService","@web-atoms/entity/dist/models/Cloner","@web-atoms/entity/dist/models/cloneSource","@web-atoms/entity/dist/models/IEntityModel","@web-atoms/entity/dist/services/HttpSession","@web-atoms/core/dist/services/http/JsonError","@web-atoms/entity/dist/models/TaskManager","@web-atoms/entity/dist/models/Queue","@web-atoms/entity/dist/services/mergeProperties","@web-atoms/entity/dist/services/Query","@web-atoms/entity/dist/services/StringHelper","@web-atoms/entity/dist/services/resolve","@social-mail/social-mail-client/dist/services/BusyProgress","@web-atoms/core/dist/style/styled","@social-mail/social-mail-client/dist/common/apiPath","@social-mail/social-mail-client/dist/model/model","@web-atoms/web-controls/dist/basic/AtomRepeater","@web-atoms/core/dist/core/Colors","@web-atoms/core/dist/core/WatchProperty","@web-atoms/core/dist/web/services/PopupService","@web-atoms/core/dist/web/services/PopupWindow","@web-atoms/core/dist/core/sleep","@web-atoms/web-controls/dist/basic/InlinePopup","@web-atoms/web-controls/dist/basic/styles/inline-popup-style","@web-atoms/web-controls/dist/basic/MergeNode","@web-atoms/web-controls/dist/basic/ItemPath","@web-atoms/web-controls/dist/basic/styles/ui-display-none-style","@web-atoms/web-controls/dist/basic/styles/popup-style","@web-atoms/web-controls/dist/basic/styles/suggestion-popup","@web-atoms/web-controls/dist/basic/styles/repeater-style","@web-atoms/web-controls/dist/DataAttributes","@web-atoms/web-controls/dist/basic/ZoomView","@web-atoms/web-controls/dist/basic/styles/zoom-view-style","@social-mail/social-mail-client/dist/common/fileUrl","@web-atoms/core/dist/view-model/Action","@web-atoms/core/dist/services/NavigationService","@web-atoms/core/dist/core/AtomUri","@web-atoms/core/dist/services/ReferenceService","@web-atoms/core/dist/services/FetchBuilder","@social-mail/social-mail-client/dist/common/currency","@web-atoms/web-controls/dist/basic/ToggleButtonBar","@web-atoms/web-controls/dist/basic/styles/toggle-button-bar-style","@social-mail/social-mail-client/dist/public/store/StoreItemListView","@social-mail/social-mail-client/dist/common/controls/repeater/InfiniteRepeater","@social-mail/social-mail-client/dist/common/Sql","@social-mail/social-mail-client/dist/public/store/StoreUrlService","@social-mail/social-mail-client/dist/common/TestMode","@social-mail/social-mail-client/dist/common/toBase36","@web-atoms/core/dist/web/WebApp","@web-atoms/core/dist/core/AtomOnce","@web-atoms/core/dist/web/services/WebBusyIndicatorService","@web-atoms/core/dist/web/styles/StyleBuilder","@web-atoms/core/dist/web/services/WindowService","@web-atoms/core/dist/Atom","@web-atoms/core/dist/core/AtomLoader","@web-atoms/core/dist/services/JsonService","@web-atoms/core/dist/core/FormattedError","@web-atoms/core/dist/view-model/AtomWindowViewModel","@web-atoms/core/dist/view-model/AtomViewModel","@web-atoms/core/dist/view-model/baseTypes","@web-atoms/core/dist/web/controls/AtomAlertWindow","@web-atoms/core/dist/web/styles/AtomAlertWindowStyle","@web-atoms/core/dist/web/styles/AtomWindowStyle","@web-atoms/core/src/web/images/close-button-hover.svg","@web-atoms/core/dist/web/controls/AtomWindow","@web-atoms/core/dist/web/controls/AtomTemplate","@web-atoms/core/dist/web/controls/AtomNotification","@web-atoms/core/dist/web/styles/AtomNotificationStyle","@web-atoms/core/dist/web/styles/AtomPopupStyle","@web-atoms/core/dist/web/services/NotificationPopup","@web-atoms/core/dist/web/styles/AtomTheme","@social-mail/social-mail-client/dist/style/GlobalStyle","@web-atoms/core/dist/core/AtomList","@social-mail/social-mail-client/dist/style/OverrideAppStyle","@web-atoms/data-styles/data-styles","@web-atoms/core/dist/Pack"]);
1980
1980
 
1981
1981
  System.register([], function (_export, _context) {
1982
1982
  "use strict";
@@ -20819,18 +20819,18 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
20819
20819
  return files;
20820
20820
  }
20821
20821
  init() {
20822
- var _a, _b, _c, _d, _e, _f, _g;
20822
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
20823
20823
  return __awaiter(this, void 0, void 0, function* () {
20824
20824
  this.renderer = XNode.create("div", null, XNode.create("label", {
20825
20825
  text: "..."
20826
20826
  }));
20827
20827
  this.model = yield this.getItem();
20828
- const offer = this.model.mediaFiles.find(x => x.title === "offer.html");
20829
- const specifications = this.model.mediaFiles.find(x => x.title === "specs.html");
20830
- const price = (_a = this.model.storeItemPrices) === null || _a === void 0 ? void 0 : _a[0];
20828
+ const offer = (_a = this.model.mediaFiles) === null || _a === void 0 ? void 0 : _a.find(x => x.title === "offer.html");
20829
+ const specifications = (_b = this.model.mediaFiles) === null || _b === void 0 ? void 0 : _b.find(x => x.title === "specs.html");
20830
+ const price = (_c = this.model.storeItemPrices) === null || _c === void 0 ? void 0 : _c[0];
20831
20831
  const [offerHtml, specHtml] = yield Promise.all([offer ? FetchBuilder.get(signedUrl(offer)).responseAsText() : Promise.resolve(""), specifications ? FetchBuilder.get(signedUrl(specifications)).responseAsText() : Promise.resolve("")]);
20832
- this.selectedSize = (_c = (_b = this.model.sizes) === null || _b === void 0 ? void 0 : _b[0]) !== null && _c !== void 0 ? _c : null;
20833
- this.selectedVariant = (_e = (_d = this.model.variants) === null || _d === void 0 ? void 0 : _d[0]) !== null && _e !== void 0 ? _e : null;
20832
+ this.selectedSize = (_e = (_d = this.model.sizes) === null || _d === void 0 ? void 0 : _d[0]) !== null && _e !== void 0 ? _e : null;
20833
+ this.selectedVariant = (_g = (_f = this.model.variants) === null || _f === void 0 ? void 0 : _f[0]) !== null && _g !== void 0 ? _g : null;
20834
20834
  this.renderer = XNode.create("div", {
20835
20835
  class: css,
20836
20836
  images: Bind.oneWay(() => this.getFiles(this.model, this.selectedVariant, this.selectedSize))
@@ -20865,7 +20865,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
20865
20865
  text: formatPrice(price)
20866
20866
  })), XNode.create("button", {
20867
20867
  class: "buy"
20868
- }, "Buy"), ((_f = this.model.sizes) === null || _f === void 0 ? void 0 : _f.length) && XNode.create(ToggleButtonBar, {
20868
+ }, "Buy"), ((_h = this.model.sizes) === null || _h === void 0 ? void 0 : _h.length) && XNode.create(ToggleButtonBar, {
20869
20869
  items: this.model.sizes,
20870
20870
  selectedItem: Bind.twoWaysImmediate(() => this.selectedSize),
20871
20871
  itemRenderer: x => XNode.create("div", {
@@ -20873,7 +20873,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
20873
20873
  }, XNode.create("span", {
20874
20874
  text: x.name
20875
20875
  }))
20876
- }), ((_g = this.model.variants) === null || _g === void 0 ? void 0 : _g.length) && XNode.create(ToggleButtonBar, {
20876
+ }), ((_j = this.model.variants) === null || _j === void 0 ? void 0 : _j.length) && XNode.create(ToggleButtonBar, {
20877
20877
  items: this.model.variants,
20878
20878
  selectedItem: Bind.twoWaysImmediate(() => this.selectedVariant),
20879
20879
  itemRenderer: x => XNode.create("div", {
@@ -21060,6 +21060,23 @@ System.register([], function (_export, _context) {
21060
21060
 
21061
21061
  AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/Sql");
21062
21062
 
21063
+ System.register([], function (_export, _context) {
21064
+ "use strict";
21065
+
21066
+ var AppLocation;
21067
+ return {
21068
+ setters: [],
21069
+ execute: function () {
21070
+ _export("AppLocation", AppLocation = {
21071
+ isLocalTesting: /\d+\.\d+\.\d+\.\d+/.test(location.hostname)
21072
+ });
21073
+ }
21074
+ };
21075
+ });
21076
+ //# sourceMappingURL=TestMode.js.map
21077
+
21078
+ AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/TestMode");
21079
+
21063
21080
  System.register([], function (_export, _context) {
21064
21081
  "use strict";
21065
21082
 
@@ -21107,32 +21124,74 @@ System.register([], function (_export, _context) {
21107
21124
 
21108
21125
  AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/toBase36");
21109
21126
 
21110
- System.register(["../../common/apiPath", "../../common/toBase36"], function (_export, _context) {
21127
+ System.register(["../../common/TestMode", "../../common/toBase36"], function (_export, _context) {
21111
21128
  "use strict";
21112
21129
 
21113
- var apiPath, toBase36, storeItemLink;
21130
+ var AppLocation, toBase36, StoreUrlService, old, cache;
21114
21131
  return {
21115
- setters: [function (_commonApiPath) {
21116
- apiPath = _commonApiPath.apiPath;
21132
+ setters: [function (_commonTestMode) {
21133
+ AppLocation = _commonTestMode.AppLocation;
21117
21134
  }, function (_commonToBase) {
21118
21135
  toBase36 = _commonToBase.toBase36;
21119
21136
  }],
21120
21137
  execute: function () {
21121
- _export("storeItemLink", storeItemLink = item => {
21122
- var _a;
21123
- return apiPath(`/store/${toBase36(item.storeID)}/${toBase36((_a = item.variantForID) !== null && _a !== void 0 ? _a : item.storeItemID)}/${encodeURIComponent(item.name)}`);
21138
+ _export("StoreUrlService", StoreUrlService = {
21139
+ productUrl(p) {
21140
+ var _a;
21141
+ const storeID = toBase36(p.storeID);
21142
+ const productID = toBase36((_a = p.variantForID) !== null && _a !== void 0 ? _a : p.storeItemID);
21143
+ if (AppLocation.isLocalTesting) {
21144
+ return `?detail=${storeID}/${productID}`;
21145
+ }
21146
+ return `/store/${storeID}/${productID}/${encodeURIComponent(p.name)}`;
21147
+ },
21148
+ getParameters() {
21149
+ var _a, _b;
21150
+ const url = (_a = window.pageUrl) !== null && _a !== void 0 ? _a : new URL(location.href);
21151
+ let pathname = url === null || url === void 0 ? void 0 : url.pathname;
21152
+ const detail = url.searchParams.get("detail");
21153
+ if (detail) {
21154
+ pathname = "/" + detail;
21155
+ }
21156
+ const {
21157
+ 1: route,
21158
+ 2: p1,
21159
+ 3: p2
21160
+ } = (_b = /^\/([^\/]+)\/([^\/]+)\/?([^\/]+)?\/?/.exec(pathname)) !== null && _b !== void 0 ? _b : [];
21161
+ switch (route) {
21162
+ case "buy":
21163
+ return {
21164
+ page: "buy",
21165
+ productID: p1,
21166
+ currency: p2 || "INR"
21167
+ };
21168
+ case "checkout":
21169
+ return {
21170
+ page: "checkout",
21171
+ orderID: p1
21172
+ };
21173
+ }
21174
+ return {
21175
+ page: "detail",
21176
+ productID: p1,
21177
+ currency: p2 || "INR"
21178
+ };
21179
+ }
21124
21180
  });
21181
+ old = StoreUrlService.getParameters;
21182
+ cache = void 0;
21183
+ StoreUrlService.getParameters = (...a) => cache !== null && cache !== void 0 ? cache : cache = old.apply(StoreUrlService, a);
21125
21184
  }
21126
21185
  };
21127
21186
  });
21128
- //# sourceMappingURL=storeItemLink.js.map
21187
+ //# sourceMappingURL=StoreUrlService.js.map
21129
21188
 
21130
- AmdLoader.instance.setup("@social-mail/social-mail-client/dist/public/store/storeItemLink");
21189
+ AmdLoader.instance.setup("@social-mail/social-mail-client/dist/public/store/StoreUrlService");
21131
21190
 
21132
- System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/style/styled", "@web-atoms/core/dist/web/controls/AtomControl", "@web-atoms/web-controls/dist/basic/AtomRepeater", "../../common/controls/repeater/InfiniteRepeater", "@web-atoms/core/dist/core/InjectProperty", "../../services/EntityService", "../../model/model", "../../common/Sql", "../../common/apiPath", "../../common/currency", "./storeItemLink", "@web-atoms/core/dist/view-model/Action"], function (_export, _context) {
21191
+ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/style/styled", "@web-atoms/core/dist/web/controls/AtomControl", "@web-atoms/web-controls/dist/basic/AtomRepeater", "../../common/controls/repeater/InfiniteRepeater", "@web-atoms/core/dist/core/InjectProperty", "../../services/EntityService", "../../model/model", "../../common/Sql", "../../common/apiPath", "../../common/currency", "@web-atoms/core/dist/view-model/Action", "./StoreUrlService"], function (_export, _context) {
21133
21192
  "use strict";
21134
21193
 
21135
- var __awaiter, __decorate, __metadata, Bind, XNode, styled, AtomControl, AtomRepeater, InfiniteRepeater, InjectProperty, EntityService, StoreItem, StoreMediaFile, StoreTag, Sql, apiPath, formatPrice, storeItemLink, Action, StoreItemListView;
21194
+ var __awaiter, __decorate, __metadata, Bind, XNode, styled, AtomControl, AtomRepeater, InfiniteRepeater, InjectProperty, EntityService, StoreItem, StoreMediaFile, StoreTag, Sql, apiPath, formatPrice, Action, StoreUrlService, StoreItemListView;
21136
21195
  _export("default", void 0);
21137
21196
  return {
21138
21197
  setters: [function (_tslib) {
@@ -21165,10 +21224,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
21165
21224
  apiPath = _commonApiPath.apiPath;
21166
21225
  }, function (_commonCurrency) {
21167
21226
  formatPrice = _commonCurrency.formatPrice;
21168
- }, function (_storeItemLink) {
21169
- storeItemLink = _storeItemLink.storeItemLink;
21170
21227
  }, function (_webAtomsCoreDistViewModelAction) {
21171
21228
  Action = _webAtomsCoreDistViewModelAction.default;
21229
+ }, function (_StoreUrlService) {
21230
+ StoreUrlService = _StoreUrlService.StoreUrlService;
21172
21231
  }],
21173
21232
  execute: function () {
21174
21233
  styled.css`
@@ -21376,7 +21435,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
21376
21435
  class: "name",
21377
21436
  title: item.name || ((_a = item.variantFor) === null || _a === void 0 ? void 0 : _a.name) || item.name,
21378
21437
  text: item.name || ((_b = item.variantFor) === null || _b === void 0 ? void 0 : _b.name) || item.name,
21379
- href: storeItemLink(item)
21438
+ href: StoreUrlService.productUrl(item)
21380
21439
  }), XNode.create("label", {
21381
21440
  class: "description",
21382
21441
  title: item.description || ((_c = item.variantFor) === null || _c === void 0 ? void 0 : _c.description) || item.description,
@@ -21431,6 +21490,9 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
21431
21490
  downloadImage(item) {
21432
21491
  return __awaiter(this, void 0, void 0, function* () {
21433
21492
  const file = yield this.entityService.query(StoreMediaFile, "storeQuery", item.storeItemID, item.signed).where(x => x.isPreview === true).orderBy(x => x.sortOrder).firstOrDefault();
21493
+ if (!file) {
21494
+ return;
21495
+ }
21434
21496
  return apiPath(`/api/signed/webp(700)/${file.appFileID}/${file.fileContentID}/${file.signed}/file.webp`);
21435
21497
  });
21436
21498
  }
@@ -21443,7 +21505,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
21443
21505
  }) {
21444
21506
  var _a;
21445
21507
  return __awaiter(this, void 0, void 0, function* () {
21446
- let q = this.entityService.query(StoreItem, "storeQuery").where(x => x.itemType in ["product", "service", "resource", "variant"] && x.sizeForID === null);
21508
+ let q = this.entityService.query(StoreItem, "storeQuery").where(x => x.itemType in ["product", "service", "resource", "variant", "e-product"] && x.sizeForID === null);
21447
21509
  if (search) {
21448
21510
  search = search + "%";
21449
21511
  const lowerSearch = search.trim().toLocaleLowerCase();
@@ -24354,8 +24416,8 @@ System.register(["tslib", "@web-atoms/core/dist/web/WebApp", "../../style/Global
24354
24416
  }],
24355
24417
  execute: async function () {
24356
24418
  if (/\d+\.\d+\.\d+\.\d+/i.test(location.hostname)) {
24357
- WebApp.installStyleSheet("//d2qk6ju4y4xfge.cloudfront.net/api/site/snapshot/download/266280/453429/styler.css");
24358
- WebApp.installStyleSheet("//d2qk6ju4y4xfge.cloudfront.net/api/site/snapshot/download/266280/453941/vars.css");
24419
+ WebApp.installStyleSheet("/styles/styler.css");
24420
+ WebApp.installStyleSheet("/styles/vars.css");
24359
24421
  }
24360
24422
  url = new URL(location.href);
24361
24423
  window.pageUrl = url;