@mapxus/mapxus-map-jp 10.2.0 → 10.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/utils.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("d3-dispatch"),n=require("@mapxus/mapxus-auth-jp"),T="10.2.0",p={version:T},S=p.version,N="https://map-api.mapxus.co.jp/bms",l=10,I=1;class e{static instance;_globalDispatcher;_httpSession;_theme=null;_isSDKInitialized=!1;constructor(){}static getInstance(){return e.instance||(e.instance=new e),e.instance}setGlobalDispatcher(i){this._globalDispatcher=i}getGlobalDispatcher(){return this._globalDispatcher}async getHttpSession(){return this._httpSession||(this.registerSDK(),this._httpSession=await n.HTTPSession.create(n.SDKName.MapSDK,n.base64Encode(`version-${S}`)),this._httpSession.setBaseURL(N),this._httpSession.setRetryConfig(3)),this._httpSession}registerSDK(){this._isSDKInitialized||(this._isSDKInitialized=!0,n.reportLog(`${n.SDKName.MapSDK} initialized`))}get theme(){return this._theme}setTheme(i){this._theme=i}clear(){this._httpSession.destroy(),this._globalDispatcher=null,e.instance=null}}const c=["unauthorized","initError"],r=globalThis,o=f.dispatch(...c);e.getInstance().setGlobalDispatcher(o);r.MapxusMapEvents=r.MapxusMapEvents||{};r.MapxusMapEvents.on=function(t,i){return o.on(t,i),{off:()=>o.on(t,null)}};var s=(t=>(t.ENGLISH="en",t.CHINESE_SIMPLIFIED="zh-Hans",t.CHINESE_TRADITIONAL="zh-Hant",t.CHINESE_TRADITIONAL_TW="zh-Hant-TW",t.JAPANESE="ja",t.KOREAN="ko",t.FILIPINO="fil",t.INDONESIAN="id",t.PORTUGUESE="pt",t.THAI="th",t.VIETNAMESE="vi",t.ARABIC="ar",t.FRENCH="fr",t.ITALIAN="it",t))(s||{});function E(t){let i=null;return a(t)?i=s.ENGLISH:u(t)?i=s.CHINESE_SIMPLIFIED:R(t)?i=s.CHINESE_TRADITIONAL:_(t)?i=s.CHINESE_TRADITIONAL_TW:O(t)?i=s.JAPANESE:D(t)?i=s.KOREAN:H(t)?i=s.FILIPINO:d(t)?i=s.INDONESIAN:M(t)?i=s.PORTUGUESE:m(t)?i=s.THAI:v(t)?i=s.VIETNAMESE:F(t)?i=s.ARABIC:K(t)?i=s.FRENCH:L(t)&&(i=s.ITALIAN),i}function a(t){return/^en(-(US|GB|AU))?$/.test(t)}function u(t){return/^zh(-(Hans|CN))?$/.test(t)}function R(t){return/^zh-(Hant|HK|MO)$/.test(t)}function _(t){return t==="zh-TW"}function O(t){return/^ja(-JP)?$/.test(t)}function D(t){return/^ko(-KR)?$/.test(t)}function H(t){return/^(fil|tl)(-PH)?$/.test(t)}function d(t){return/^id(-ID)?$/.test(t)}function M(t){return/^pt(-(BR|PT))?$/.test(t)}function m(t){return/^th(-TH)?$/.test(t)}function v(t){return/^vi(-VN)?$/.test(t)}function F(t){return/^ar(-(DZ|BH|EG|IQ|JO|KW|LB|LY|MA|OM|QA|SA|SY|TN|AE|YE))?$/.test(t)}function K(t){return/^fr(-(FR|CA|CH))?$/.test(t)}function L(t){return/^it(-(IT|CH))?$/.test(t)}const h="reserve_mapxus-level-fill",A="reserve_mapxus-shared-level-fill",b={convertBrowserLangToPresetLang:E,VERSION:S,OFFSET:l,PAGE:I,ERRORS:c,ASSISTANT_LAYER_INDOOR_FLOORS:h,ASSISTANT_LAYER_SHARED_FLOORS:A};exports.ASSISTANT_LAYER_INDOOR_FLOORS=h;exports.ASSISTANT_LAYER_SHARED_FLOORS=A;exports.ERRORS=c;exports.OFFSET=l;exports.PAGE=I;exports.VERSION=S;exports.convertBrowserLangToPresetLang=E;exports.default=b;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("d3-dispatch"),n=require("@mapxus/mapxus-auth-jp"),T="10.2.1",p={version:T},S=p.version,N="https://map-api.mapxus.co.jp/bms",l=10,I=1;class e{static instance;_globalDispatcher;_httpSession;_theme=null;_isSDKInitialized=!1;constructor(){}static getInstance(){return e.instance||(e.instance=new e),e.instance}setGlobalDispatcher(i){this._globalDispatcher=i}getGlobalDispatcher(){return this._globalDispatcher}async getHttpSession(){return this._httpSession||(this.registerSDK(),this._httpSession=await n.HTTPSession.create(n.SDKName.MapSDK,n.base64Encode(`version-${S}`)),this._httpSession.setBaseURL(N),this._httpSession.setRetryConfig(3)),this._httpSession}registerSDK(){this._isSDKInitialized||(this._isSDKInitialized=!0,n.reportLog(`${n.SDKName.MapSDK} initialized`))}get theme(){return this._theme}setTheme(i){this._theme=i}clear(){this._httpSession.destroy(),this._globalDispatcher=null,e.instance=null}}const c=["unauthorized","initError"],r=globalThis,o=f.dispatch(...c);e.getInstance().setGlobalDispatcher(o);r.MapxusMapEvents=r.MapxusMapEvents||{};r.MapxusMapEvents.on=function(t,i){return o.on(t,i),{off:()=>o.on(t,null)}};var s=(t=>(t.ENGLISH="en",t.CHINESE_SIMPLIFIED="zh-Hans",t.CHINESE_TRADITIONAL="zh-Hant",t.CHINESE_TRADITIONAL_TW="zh-Hant-TW",t.JAPANESE="ja",t.KOREAN="ko",t.FILIPINO="fil",t.INDONESIAN="id",t.PORTUGUESE="pt",t.THAI="th",t.VIETNAMESE="vi",t.ARABIC="ar",t.FRENCH="fr",t.ITALIAN="it",t))(s||{});function E(t){let i=null;return a(t)?i=s.ENGLISH:u(t)?i=s.CHINESE_SIMPLIFIED:R(t)?i=s.CHINESE_TRADITIONAL:_(t)?i=s.CHINESE_TRADITIONAL_TW:O(t)?i=s.JAPANESE:D(t)?i=s.KOREAN:H(t)?i=s.FILIPINO:d(t)?i=s.INDONESIAN:M(t)?i=s.PORTUGUESE:m(t)?i=s.THAI:v(t)?i=s.VIETNAMESE:F(t)?i=s.ARABIC:K(t)?i=s.FRENCH:L(t)&&(i=s.ITALIAN),i}function a(t){return/^en(-(US|GB|AU))?$/.test(t)}function u(t){return/^zh(-(Hans|CN))?$/.test(t)}function R(t){return/^zh-(Hant|HK|MO)$/.test(t)}function _(t){return t==="zh-TW"}function O(t){return/^ja(-JP)?$/.test(t)}function D(t){return/^ko(-KR)?$/.test(t)}function H(t){return/^(fil|tl)(-PH)?$/.test(t)}function d(t){return/^id(-ID)?$/.test(t)}function M(t){return/^pt(-(BR|PT))?$/.test(t)}function m(t){return/^th(-TH)?$/.test(t)}function v(t){return/^vi(-VN)?$/.test(t)}function F(t){return/^ar(-(DZ|BH|EG|IQ|JO|KW|LB|LY|MA|OM|QA|SA|SY|TN|AE|YE))?$/.test(t)}function K(t){return/^fr(-(FR|CA|CH))?$/.test(t)}function L(t){return/^it(-(IT|CH))?$/.test(t)}const h="reserve_mapxus-level-fill",A="reserve_mapxus-shared-level-fill",b={convertBrowserLangToPresetLang:E,VERSION:S,OFFSET:l,PAGE:I,ERRORS:c,ASSISTANT_LAYER_INDOOR_FLOORS:h,ASSISTANT_LAYER_SHARED_FLOORS:A};exports.ASSISTANT_LAYER_INDOOR_FLOORS=h;exports.ASSISTANT_LAYER_SHARED_FLOORS=A;exports.ERRORS=c;exports.OFFSET=l;exports.PAGE=I;exports.VERSION=S;exports.convertBrowserLangToPresetLang=E;exports.default=b;