jamespot-user-api 1.0.148 → 1.0.150
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/documentation/assets/search.js +1 -1
- package/documentation/classes/AdminLicenseApi.html +11 -11
- package/documentation/classes/AdminStoreApi.html +1 -1
- package/documentation/classes/AdminUtilsApi.html +1 -1
- package/documentation/classes/JApplicationApi.html +8 -8
- package/documentation/classes/JArticleApi.html +1 -1
- package/documentation/classes/JAssetReservation.html +1 -1
- package/documentation/classes/JAudienceApi.html +1 -1
- package/documentation/classes/JBaseApi.html +1 -1
- package/documentation/classes/JBookmarkApi.html +1 -1
- package/documentation/classes/JBusinessNetworkingApi.html +1 -1
- package/documentation/classes/JCommunityApi.html +1 -1
- package/documentation/classes/JDiapazoneApi.html +1 -1
- package/documentation/classes/JFaqApi.html +1 -1
- package/documentation/classes/JFileApi.html +5 -5
- package/documentation/classes/JFilebankApi.html +1 -1
- package/documentation/classes/JGlobalApi.html +1 -1
- package/documentation/classes/JGroupApi.html +9 -9
- package/documentation/classes/JIAApi.html +1 -1
- package/documentation/classes/JLandApi.html +1 -1
- package/documentation/classes/JMessengerApi.html +1 -1
- package/documentation/classes/JObjectApi.html +1 -1
- package/documentation/classes/JSearchApi.html +6 -6
- package/documentation/classes/JShareApi.html +1 -1
- package/documentation/classes/JSocialActionApi.html +1 -1
- package/documentation/classes/JTaxonomyApi.html +3 -3
- package/documentation/classes/JUserApi.html +7 -7
- package/documentation/classes/JWedocApi.html +1 -1
- package/documentation/classes/JWidgetApi.html +1 -1
- package/documentation/classes/JamespotUserApi.html +1 -1
- package/documentation/classes/Network.html +1 -1
- package/documentation/classes/TVDisplayApi.html +1 -1
- package/documentation/classes/WindowBrowser.html +1 -1
- package/documentation/enums/StudioApplicationStatus.html +1 -1
- package/documentation/index.html +1 -1
- package/documentation/interfaces/AccessRightObject.html +1 -1
- package/documentation/interfaces/AdminLicenseUser.html +1 -1
- package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
- package/documentation/interfaces/ApiWrapper.html +1 -1
- package/documentation/interfaces/BaseAutocomplete.html +1 -1
- package/documentation/interfaces/BaseMessage.html +1 -1
- package/documentation/interfaces/Category.html +1 -1
- package/documentation/interfaces/FileBankProps.html +1 -1
- package/documentation/interfaces/FolderProps.html +1 -1
- package/documentation/interfaces/ListFilterSpec.html +1 -1
- package/documentation/interfaces/OF.html +1 -1
- package/documentation/interfaces/ObjectListProps.html +1 -1
- package/documentation/interfaces/PagingResults.html +1 -1
- package/documentation/interfaces/RootFolderProps.html +1 -1
- package/documentation/interfaces/SearchCategoryModel.html +1 -1
- package/documentation/interfaces/SearchCategoryValue.html +1 -1
- package/documentation/interfaces/SearchConfig.html +1 -1
- package/documentation/interfaces/SearchFacetModel.html +1 -1
- package/documentation/interfaces/SearchFacetValueModel.html +1 -1
- package/documentation/interfaces/SearchQuery.html +1 -1
- package/documentation/interfaces/SearchQueryFilterModel.html +1 -1
- package/documentation/interfaces/SearchQueryOption.html +1 -1
- package/documentation/interfaces/SearchQueryResult.html +1 -1
- package/documentation/interfaces/SearchQuerySortModel.html +1 -1
- package/documentation/interfaces/SearchResultCatProps.html +1 -1
- package/documentation/interfaces/SearchResultPropsApp.html +1 -1
- package/documentation/interfaces/SearchResultPropsObject.html +1 -1
- package/documentation/interfaces/SpotProps.html +1 -1
- package/documentation/interfaces/TaxonomyCreate.html +1 -1
- package/documentation/interfaces/WindowInterface.html +1 -1
- package/documentation/modules.html +12 -12
- package/lib/jamespot-user-api.js +1 -1
- package/lib/jamespot-user-api.js.map +1 -1
- package/lib/src/apis/taxonomy/taxonomy.d.ts +7 -7
- package/lib/src/apis/taxonomy/taxonomy.mock.d.ts +7 -7
- package/lib/src/apis/taxonomy/types.d.ts +3 -81
- package/lib/src/types/faq.d.ts +6 -5
- package/lib/src/types/meeting.d.ts +1 -0
- package/lib/src/types/model.d.ts +4 -1
- package/lib/src/types/search.d.ts +8 -2
- package/lib/src/types/socialEvent.d.ts +1 -0
- package/lib/src/types/utils.d.ts +4 -2
- package/package.json +1 -1
- package/phpunitMock/articleCreate-faq-category.json +1 -0
- package/phpunitMock/articleCreate-faq-item.json +1 -0
- package/phpunitMock/articleGet-faq-category.json +1 -0
- package/phpunitMock/articleGet-meeting-view.json +13 -11
- package/phpunitMock/articleGet-pollSurvey-view.json +2 -1
- package/phpunitMock/articleGet-quizz-view.json +2 -1
- package/phpunitMock/articleGet-socialEvent-view.json +11 -9
- package/phpunitMock/articleGet-support-view.json +2 -1
- package/phpunitMock/articleGet-surveyDate-view.json +2 -1
- package/phpunitMock/articleUpdate-faq-category.json +1 -0
- package/phpunitMock/articleUpdate-faq-item.json +1 -0
- package/phpunitMock/articleUpdate-mpArticleView.json +2 -1
- package/phpunitMock/aseiSetStatus-default.json +2 -1
- package/phpunitMock/autocompleteTaxonomy-default.json +2 -2
- package/phpunitMock/faqAddEntry-success.json +1 -0
- package/phpunitMock/faqAddTheme-success.json +1 -0
- package/phpunitMock/faqDeleteTheme-success.json +1 -0
- package/phpunitMock/faqGetEntry-success.json +1 -0
- package/phpunitMock/faqMoveEntry-success.json +1 -0
- package/phpunitMock/faqMoveTheme-success.json +2 -0
- package/phpunitMock/objectListJamespotArticleQueryList-aseiClearanceTicket-view.json +2 -1
- package/phpunitMock/objectListTaxonomyConcept-default.json +20 -59
- package/phpunitMock/objectListTaxonomyHierarchyConcept-default.json +4 -3
- package/phpunitMock/taxonomyCreate-default.json +6 -35
- package/phpunitMock/taxonomyList-default.json +24 -247
- package/documentation/interfaces/Taxonomy.html +0 -1
package/lib/jamespot-user-api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{"use strict";var t,e={d:(t,i)=>{for(var s in i)e.o(i,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:i[s]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},i={};e.r(i),e.d(i,{ACCESS_REQUEST_ACCEPT:()=>z,ACCESS_REQUEST_DENY:()=>Q,AdminLicenseApi:()=>n,AdminStoreApi:()=>r,AdminUtilsApi:()=>o,JApplicationApi:()=>a,JArticleApi:()=>c,JAssetReservation:()=>p,JAudienceApi:()=>l,JBaseApi:()=>s,JBookmarkApi:()=>f,JBusinessNetworkingApi:()=>d,JCommunityApi:()=>m,JDiapazoneApi:()=>h,JFaqApi:()=>k,JFileApi:()=>w,JFilebankApi:()=>y,JGlobalApi:()=>b,JGroupApi:()=>v,JIAApi:()=>B,JLandApi:()=>S,JMessengerApi:()=>C,JObjectApi:()=>E,JSearchApi:()=>x,JShareApi:()=>T,JSocialActionApi:()=>q,JTaxonomyApi:()=>F,JUserApi:()=>L,JWedocApi:()=>R,JWidgetApi:()=>D,JamespotUserApi:()=>I,JamespotUserApiInstance:()=>Pt,Network:()=>J,StudioApplicationStatus:()=>t,TVDisplayApi:()=>_,UserLevel:()=>W,WindowBrowser:()=>N,api:()=>Mt,deepEqual:()=>St,default:()=>Et,extensions:()=>ct,extractTaxonomiesFromObject:()=>Ft,extractTaxonomiesFromObjectAndMapProperty:()=>Lt,extractTaxonomiesFromObjectAndMapUri:()=>Rt,formatImgUrl:()=>ot,getArgs:()=>it,getExtensionFromName:()=>ft,getFileExtensionFromMimetype:()=>lt,getFileFamily:()=>kt,getFileFamilyFromName:()=>gt,getFormat:()=>nt,getFrom:()=>tt,getMimetypeFromExtension:()=>pt,getMimetypeFromName:()=>dt,getSize:()=>st,getTimestamp:()=>et,getUri:()=>Z,getUrl:()=>rt,jEnsure:()=>V,mimetypeToExt:()=>ut,mimetypes:()=>at,network:()=>Ut,objectTimestamp:()=>mt,padStartTwoDigits:()=>K,prepareGroupForUpdate:()=>_t,removeIfStartsWith:()=>Y,replacePropertiesWithTypes:()=>Ct,resolveFileFamily:()=>vt,resolveFileMimetype:()=>bt,resolveFilePath:()=>ht,resolveFileUrl:()=>yt,suffixIfDoesNotExist:()=>X});class s{constructor(t){this.jApi=t,this.network=t.network}}class n extends s{getLicenseUserStatistics(){return this.network.post({o:"licenseManager",f:"userStatistics"})}assignLicense(t){return this.network.postCSRF({o:"licenseManager",f:"assignLicense",uri:t})}unAssignLicense(t){return this.network.postCSRF({o:"licenseManager",f:"unassignLicense",uri:t})}getAssignmentMode(t){return this.network.post({o:"licenseManager",f:"getAssignmentMode",type:t})}setAssignmentMode(t,e){return this.network.postCSRF({o:"licenseManager",f:"setAssignmentMode",value:e,type:t})}assignPossiblesLicenses(t){return this.network.postCSRF({o:"licenseManager",f:"assignPossiblesLicenses",type:t})}unAssignUnusedLicenses(t){return this.network.postCSRF({o:"licenseManager",f:"unassignUnusedLicenses",type:t})}optimizeLicenses(t){return this.network.postCSRF({o:"licenseManager",f:"optimizeLicenses",type:t})}getObjectsWithoutLicense(t,e){return this.network.post({o:"licenseManager",f:"countObjectsWithoutLicense",type:t,filter:e})}getLicensesNotAssigned(t){return this.network.post({o:"licenseManager",f:"countLicensesNotAssigned",type:t})}getLicensesAssigned(t){return this.network.post({o:"licenseManager",f:"getLicensesAssigned",type:t})}}class r extends s{getItem(t){return this.network.post({o:"adminStore",f:"getItem",uri:t})}checkoutBilling(t){return this.network.postCSRF({o:"adminStore",f:"checkoutBilling",uri:t})}checkoutFinalize(t){return this.network.postCSRF({o:"adminStore",f:"checkoutFinalize",uri:t})}}class o extends s{getApps(){return this.network.post({o:"admin",f:"apps"})}}!function(t){t.local="local",t.installed="installed",t.autosaved="autosaved",t.saved="saved"}(t||(t={}));class a extends s{list(){return this.network.post({o:"studio",f:"list"})}get(t,e){return this.network.post({o:"studio",f:"get",idApp:t,status:e})}install(t){return this.network.postCSRF({o:"studio",f:"install",value:t})}suspend(t){return this.network.postCSRF({o:"studio",f:"suspend",idApp:t})}restart(t){return this.network.postCSRF({o:"studio",f:"restart",idApp:t})}save(e,i,s){if(s===t.saved||s===t.autosaved)return this.network.postCSRF({o:"studio",f:"save",idApp:e,value:i,status:s});throw"Invalid status value"}delete(t,e){return i=this,s=void 0,r=function*(){return this.network.postCSRF({o:"studio",f:"delete",idApp:t,status:e}).then((t=>{if(0===t.error)return t.messages;throw t.messages}))},new((n=void 0)||(n=Promise))((function(t,e){function o(t){try{c(r.next(t))}catch(t){e(t)}}function a(t){try{c(r.throw(t))}catch(t){e(t)}}function c(e){var i;e.done?t(e.value):(i=e.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,a)}c((r=r.apply(i,s||[])).next())}));var i,s,n,r}cssClassList(){return this.network.post({o:"studio",f:"icons"})}}class c extends s{list(t){return this.network.post(Object.assign({o:"objectList",f:"jamespotArticleQueryList"},t))}get(t){return this.network.post(Object.assign({o:"article",f:"get"},t))}create(t,e){return this.network.maybePostToken(Object.assign({o:"article",f:"create",format:null!=e?e:"raw-list"},t))}update(t){return this.network.post(Object.assign(Object.assign({format:"raw-list"},t),{o:"article",f:"update"}))}delete(t){return this.network.postCSRF({o:"article",f:"delete",idArticle:t})}count(t){return this.network.post({o:"article",f:"count",type:t})}getAttachments(t,e,i){return this.network.post({o:"article",f:"getAttachment",idArticle:t,type:e,format:i})}permalink(t){return this.network.post({o:"article",f:"permalink",permalinkId:t})}saveAsDraft(t,e,i){return this.network.post({o:"article",f:"saveAsDraft",form:t,contentType:e,idDraft:i})}getComments(t,e){var i,s;return this.network.post(Object.assign(Object.assign({o:"article",f:"getComments"},t),{attachments:null!==(i=t.attachment)&&void 0!==i&&i,limits:null!==(s=t.limits)&&void 0!==s?s:{start:0,max:1e4},format:null!=e?e:"raw-little"}))}addComment(t,e){return this.network.post(Object.assign(Object.assign({o:"article",f:"addComment"},t),{alertAuthor:Number(t.alertAuthor),sendAlert:Number(t.sendAlert),type:"comment",format:null!=e?e:"raw-little"}))}updateComment(t,e){return this.network.post(Object.assign(Object.assign({o:"article",f:"updateComment"},t),{format:null!=e?e:"raw-little"}))}deleteComment(t){return this.network.postCSRF({o:"comment",f:"delete",idComment:t})}getRead(t){return this.network.post({o:"article",f:"getRead",uri:t})}}var u=function(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(t);n<s.length;n++)e.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(t,s[n])&&(i[s[n]]=t[s[n]])}return i};class p extends s{configuration(){return this.network.post({o:"assetReservation",f:"configuration"})}createReservation(t){return this.network.postCSRF(Object.assign({o:"assetReservation",f:"createReservation",format:"raw-list"},t))}getReservations(t){var{format:e="raw-list"}=t,i=u(t,["format"]);return this.network.post(Object.assign({o:"assetReservation",f:"getReservations",format:e},i))}cancelReservation(t){return this.network.post({o:"assetReservation",f:"cancelReservation",format:"raw-list",idArticle:t})}bookByDate(t){var{format:e="raw-list"}=t,i=u(t,["format"]);return this.network.post(Object.assign({o:"assetReservation",f:"BookByDate",format:e},i))}getList(t){var{format:e="raw-list"}=t,i=u(t,["format"]);return this.network.post(Object.assign({o:"objectList",f:"assetReservationList",format:e},i))}}class l extends s{autocomplete(t){return this.network.post({o:"autocomplete",f:"audience",q:t}).then((t=>{if(Array.isArray(t.result))return t.result;throw"Bad response from backend"}))}}class f extends s{getFormattedList(t,e){return this.network.post(Object.assign({o:"objectList",f:"bookmarksList",format:e},t))}addFormattedLink(t,e,i){const s=null!=i?i:"list";return this.network.post({o:"custom",f:"actionAdd",type:"bookmarkLink",targetId:t,targetType:e,format:s})}addBookmark(t,e){return this.network.postCSRF(Object.assign({o:"bookmarks",f:"add"},t))}delete(t){return this.network.postCSRF({o:"bookmarks",f:"delete",bookmarkID:t})}rename(t,e,i){return this.network.postCSRF({o:"bookmarks",f:"rename",bookmarkID:t,bookmarkLabel:e,bookmarkUrl:i})}move(t,e,i){return this.network.postCSRF({o:"bookmarks",f:"move",bookmarkID:t,bookmarkReference:e,bookmarkPosition:i})}}class d extends s{getInfos(t,e){return this.network.post({o:"BusinessNetworking",f:"MarkerInfo",id:t,format:null!=e?e:"raw-little"})}}class m extends s{get(t,e){return this.network.post({o:"community",f:"getCommunity",idCommunity:t,format:e||"raw-little"})}sendRequest(t,e){return this.network.post({o:"community",f:"sendRequest",message:t,idUserTo:e})}autocomplete(t){return this.network.post({o:"autocomplete",f:"community",q:t}).then((t=>t.result))}}class h extends s{create(t,e,i,s,n){return this.network.post({o:"article",f:"create",type:t,token:e,title:i,dateStart:s,publishTo:n})}getList(t="",e=[],i=[],s=1,n="raw-list"){return this.network.post({o:"objectList",f:"diapazoneQueryList",query:t,filters:e,orders:i,page:s,format:n})}}var g=function(t,e,i,s){return new(i||(i=Promise))((function(n,r){function o(t){try{c(s.next(t))}catch(t){r(t)}}function a(t){try{c(s.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?n(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(o,a)}c((s=s.apply(t,e||[])).next())}))};class w extends s{upload(t){const e=new FormData;return e.append("attrName",t.attrName),t.file?e.append(t.attrName,t.file):t.url&&e.append("url",t.url),e.append("token",t.token),this.network.postFile(e)}uploadMany(t){return g(this,void 0,void 0,(function*(){return Promise.all(t.map((t=>this.upload(t))))}))}get(t,e){return g(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"get",idFile:t,format:e})}))}getParent(t,e){return g(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"getParent",idFile:t,format:e})}))}getWithHash(t,e,i){return g(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"getWithHash",idFile:t,hash:e,format:i})}))}duplicate(t,e,i){return g(this,void 0,void 0,(function*(){return this.network.postCSRF({o:"file",f:"duplicateFile",idFile:t,title:e,publishTo:i})}))}updateFile(t,e){return g(this,void 0,void 0,(function*(){return this.network.postCSRF({o:"file",f:"updateFile",idFile:t,title:e})}))}update(t,e,i){return g(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"update",idFile:t,type:e,cropDatas:Object.assign(Object.assign({},i),{rotateBeforeCrop:!0}),killSize:i.killSize,format:"raw-little"})}))}deleteFile(t,e,i,s){return g(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"delete",idFile:t,attrName:e,token:i},s)}))}deleteImage(t,e){return g(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"deleteImage",id:t,type:e})}))}}class k extends s{getCategoriesList(t,e){return this.network.post({o:"objectList",f:"faqQueryList",format:null!=t?t:"raw-list",orders:null!=e?e:[{name:"dateCreation",sort:"ASC"}]})}createCategory(t,e){return this.jApi.article.create(Object.assign(Object.assign({},t),{type:"faq"}),null!=e?e:"raw-view")}updateCategory(t,e){return this.jApi.article.update(Object.assign(Object.assign({},t),{type:"faq",format:null!=e?e:"raw-view"}))}getCategory(t,e){return this.jApi.article.get({idArticle:t,format:null!=e?e:"raw-view"})}deleteCategory(t){return this.jApi.article.delete(t)}checkItem(t,e,i){return this.network.post({o:"faq",f:"checkItem",query:t,page:null!=e?e:1,format:null!=i?i:"raw-list"})}getTaxonomy(){return this.network.post({o:"faq",f:"getFaqTaxonomy"})}getHookProperties(t){return this.network.post({o:"faq",f:"getHookProperties",properties:null!=t?t:["_web"]})}getAccess(){return this.network.post({o:"faq",f:"access"})}createTheme(t,e){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"add-theme"},t),{format:null!=e?e:"raw-view"}))}deleteTheme(t,e){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"delete-theme"},t),{format:null!=e?e:"raw-view"}))}updateTheme(t,e){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"set-theme"},t),{format:null!=e?e:"raw-view"}))}getEntry(t,e){return this.network.post({o:"faq",f:"get-entry",uri:t,format:null!=e?e:"raw-view"})}deleteEntry(t){return this.jApi.article.delete(t)}createEntry(t,e){return this.jApi.article.create(Object.assign(Object.assign({},t),{idSpot:["content"],type:"faqItem"}),null!=e?e:"raw-view")}addEntry(t,e){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"add-entry"},t),{format:null!=e?e:"raw-view"}))}updateEntry(t,e){return this.jApi.article.update(Object.assign(Object.assign({},t),{type:"faqItem",format:null!=e?e:"raw-view"}))}moveEntry(t,e){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"move-entry"},t),{format:null!=e?e:"raw-view"}))}moveTheme(t,e){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"move-theme"},t),{format:null!=e?e:"raw-view"}))}}class y extends s{getBanks(t="list"){return this.network.post({o:"fileBank",f:"getBanks",format:t}).then((t=>t.result))}getFolders(t){return this.network.post({o:"fileBank",f:"getFolders",parentURI:t})}getDocuments(t){return this.network.post({o:"fileBank",f:"getDocuments",parentURI:t})}}class b extends s{countAction(t,e){return this.network.post({o:"activityLog",f:"log",count:!0,verb:t,uri:e})}}class v extends s{autocomplete(t){return this.network.post({o:"autocomplete",f:"spot",q:t,idToUri:!1}).then((t=>t.result))}create(t,e){return this.network.post(Object.assign(Object.assign({o:"spot",f:"create"},t),{format:e}))}update(t,e){const{spotBanner:i}=t,s=function(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(t);n<s.length;n++)e.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(t,s[n])&&(i[s[n]]=t[s[n]])}return i}(t,["spotBanner"]);return this.network.postCSRF(Object.assign(Object.assign({o:"spot",f:"update"},s),{format:e}))}getSpot(t,e){return this.network.post({o:"spot",f:"getSpot",idSpot:t,format:e})}getProperties(t){return this.network.post({o:"spot",f:"getProperties",idSpot:t})}getApplications(){return this.network.post({o:"spot",f:"get-available-widget"})}getCategories(){return this.network.post({o:"spot",f:"get-categories"})}getObjectListJamespotSpotMembers(t,e,i,s=1){return this.network.post({o:"objectListJamespot",f:"SpotMembers",idSpot:t,limit:i,page:s,format:"raw-little",query:e})}list(t){return this.network.post(Object.assign({o:"objectList",f:"jamespotSpotQueryList"},t))}resetNotifications(t){return this.network.post(Object.assign({o:"spot",f:"resetNotifications"},t))}}class j extends s{list(t,e,i,s=[{name:"dateCreation",sort:"DESC"}]){return this.jApi.article.list({type:"aseiClearanceTicket",format:"raw-view",limit:e,page:t,orders:s,filters:i})}requestStatus(t,e,i){return this.network.post({o:"asei",f:"setStatus",uri:t,requestedStatus:e,audience:i})}getDedicatedGroups(){return this.network.post({o:"asei",f:"getDedicatedGroups"})}getConfiguration(){return this.network.post({o:"asei",f:"configuration"})}}class O extends s{tenants(){return this.network.post({o:"drive",f:"getTenants"})}groups(t,e){return this.network.post({o:"drive",f:"getGroups",query:t,filter:e})}sites(){return this.network.post({o:"drive",f:"getSites"})}listAccount(t){return this.network.post({o:"drive",f:"listAccount",service:t})}isAccountLogged(t,e){return this.network.post({o:"drive",f:"isAccountLogged",service:t,id:e})}checkAccountToken(t){return this.network.post({o:"drive",f:"checkAccountToken",service:t})}documents(t,e){return this.network.post({o:"drive",f:"getDocuments",service:t,documentParams:e})}}class A extends s{GetUnclassifiedFiles(t){var e;return this.network.post({o:"objectListMediaLibrary",f:"GetUnclassifiedFiles",format:t.format,page:null!==(e=t.page)&&void 0!==e?e:1,limit:t.limit,nolimit:t.nolimit})}}class S extends s{getLogs({dateEnd:t,idLogMax:e}){return this.network.post({o:"jLand",f:"adminLogs",dateEnd:t,idLogMax:e})}getStats({map:t,dateStart:e,dateEnd:i}){return this.network.post({o:"jLand",f:"adminStats",map:t,dateStart:e,dateEnd:i})}getAllMapsAsAdmin(t="raw-list,licenses"){return this.network.post({o:"objectListJLand",f:"jLandList",format:t})}createMap(t,e="raw-list"){return this.network.maybePostToken(Object.assign(Object.assign({},t),{o:"article",f:"create",format:e,type:"jlandmap"}))}}class C extends s{sendMessage(t,e){return this.network.post({o:"messenger",f:"newMessage",idDiscussion:e,msg:{description:t}})}getOrCreateDiscussion(t,e){const i=t<e?`${t}.${e}`:`${e}.${t}`;return this.network.post({o:"messenger",f:"getDiscussion",idDiscussion:i,type:"messengerUser",idUserTo:e})}}class x extends s{getConfig(){return this.network.post({o:"search",f:"getConfig"})}proposition({query:t,format:e},i){return this.network.post({o:"search",f:"proposition",query:t,format:e||"little"},i)}searchQuery(t,e){const{keywords:i,category:s,facetCategories:n,filters:r,page:o,limit:a,sort:c,options:u}=t;return this.network.post({o:"search",f:"query",keywords:i,category:s,facetCategories:n,filters:r,page:o,limit:a,sort:c,options:u},e)}getLastQueries(){return this.network.post({o:"search",f:"getLastQueries"})}getAdminConfig(){return this.network.post({o:"search",f:"getAdminConfig"})}setAdminConfig(t){return this.network.post({o:"search",f:"setAdminConfig",config:t})}}class F extends s{list(){return this.network.post({o:"taxonomy",f:"list"}).then((t=>{if(Array.isArray(t.result))return t.result;throw"Bad response from backend"}))}create(t){return this.network.post(Object.assign({o:"taxonomy",f:"create"},t))}autocomplete(t,e){return this.network.post({o:"autocomplete",f:"taxonomy",q:e,idTaxonomy:t,idToUri:!1})}autocompleteList(t){return this.network.post(Object.assign({o:"objectListTaxonomy",f:"concept"},t))}autocompleteHierarchy(t){return this.network.post(Object.assign({o:"objectListTaxonomyHierarchy",f:"concept"},t))}}class L extends s{autocomplete(t){return this.network.post({o:"autocomplete",f:"user",q:t,idToUri:!1}).then((t=>t.result))}get(t,e="little",i){return this.network.post({o:"user",f:"get",uri:t,format:e},i)}updateImage(t,e="raw-little"){return this.network.postCSRF({o:"user",f:"updateImage",idFile:t,format:e})}updateBanner(t,e="raw-little"){return this.network.postCSRF({o:"user",f:"updateBanner",idFile:t,format:e})}updateMail(t,e){return this.network.postCSRF({o:"user",f:"editMail",mail:t,password:e})}userUpdateProfile(t){return this.network.postCSRF(Object.assign({o:"user",f:"updateProfile"},t))}configuration(){return this.network.post({o:"userDirectory",f:"configuration"})}fieldsConfiguration(){return this.network.post({o:"user",f:"fieldsConfiguration"})}userList(t,e){return this.network.post(Object.assign({o:"objectList",f:"JamespotUserList"},t),e)}userQueryList(t){return this.network.post(Object.assign({o:"objectList",f:"JamespotUserQueryList"},t))}userMap(t){return this.network.post(Object.assign({o:"objectListJamespot",f:"userMap"},t))}userBusinessContactQueryList(t){return this.network.post(Object.assign({o:"businessContact",f:"queryList"},t))}userCreateBusinessContact(t){const e=Object.assign(Object.assign({},t),{pseudo:t.title,firstName:t.firstname,lastName:t.lastname,champ1:t.field1,champ2:t.field2,champ3:t.field3,champ4:t.field4,champ5:t.field5}),i=Object.assign(Object.assign({},e),{type:"businessContactCard",publishTo:"networkPublic/1"});return this.jApi.article.create(i)}userUpdateBusinessContact(t){const e=Object.assign(Object.assign({},t),{pseudo:t.title,firstName:t.firstname,lastName:t.lastname,champ1:t.field1,champ2:t.field2,champ3:t.field3,champ4:t.field4,champ5:t.field5}),i=Object.assign(Object.assign({},e),{uri:t.uri,publishTo:"networkPublic/1"});return this.jApi.article.update(i)}userDeleteBusinessContact(t){return this.jApi.article.delete(t)}userAddContact(t){return this.network.post({o:"user",f:"addContact",idUser:t})}userRemoveContact(t){return this.network.post({o:"user",f:"removeContact",idUser:t})}signIn(t,e){return this.network.post({o:"user",f:"signIn",mail:t,password:e})}getFields(t,e){return this.network.post({o:"user",f:"getFields",idUser:t,fieldsType:e})}}class R extends s{getFiles(t){return this.network.post(Object.assign({o:"onlyOffice",f:"getFiles"},t))}getFile(t,e){return this.network.post({o:"onlyOffice",f:"getFile",idFile:t,hash:e})}getTemplates(t){return this.network.post({o:"onlyOffice",f:"getTemplates"},t)}deleteFile(t,e){return this.network.postCSRF({o:"onlyOffice",f:"deleteFile",idFile:t,withParent:e})}createFile(t,e,i){return this.network.postCSRF({o:"onlyOffice",f:"createFile",title:t,type:e,publishTo:i})}updateFile(t,e){return this.network.postCSRF({o:"onlyOffice",f:"updateFile",idFile:t,title:e})}createVersion(t){return this.network.post({o:"onlyOffice",f:"createVersion",idFile:t})}setAccessRequest(t,e,i,s){return this.network.postCSRF({o:"onlyOffice",f:"setAccessRequest",uri:t,idUser:e,requestAccessValue:i,requestResponseMessage:s})}getAccessRequest(t,e){return this.network.post({o:"onlyOffice",f:"getAccessRequest",format:"raw-little",uri:t,idUser:e})}askAccess(t,e,i){return this.network.postCSRF({o:"onlyOffice",f:"askAccess",uri:t,askAccess:e,askMessage:i})}}class _ extends s{createChannel(t,e="raw-list"){return this.network.maybePostToken(Object.assign(Object.assign({},t),{o:"article",f:"create",format:e,type:"tvDisplayChannel"}))}getChannel(t){return this.network.post(Object.assign(Object.assign({},t),{o:"tvDisplay",f:"getChannel"}))}getConfigureChannel(t){return this.network.post(Object.assign(Object.assign({},t),{o:"tvDisplay",f:"getConfigureChannel"}))}}class T extends s{contentObjectLinks(t){return this.network.post({o:"shared",f:"contentObjectLinks",format:"raw-little",uri:t})}contentSetObjectAccessRule(t,e,i){return this.network.postCSRF({o:"shared",f:"contentSetObjectAccessRule",format:"raw-little",uri:t,rule:e,hash:i})}}var U=function(t,e,i,s){return new(i||(i=Promise))((function(n,r){function o(t){try{c(s.next(t))}catch(t){r(t)}}function a(t){try{c(s.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?n(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(o,a)}c((s=s.apply(t,e||[])).next())}))};class P extends s{SaveAnimationConfiguration(t){return U(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"saveConfiguration",animation:t})}))}DeleteAnimation(){return U(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"deleteAnimation"})}))}GetCurrentAnimation(){return U(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getConfiguration"})}))}GetCurrentAnimationApp(){return U(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getConfigurationApp"})}))}ToggleAnimationActive(){return U(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"toggleAnimationActive"})}))}GetAnimationActive(){return U(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getAnimationActive"})}))}}class E extends s{getObject(t){return this.network.post({o:"object",f:"getObject",uri:t})}setAccess(t,e,i,s){return this.network.post({o:"object",f:"setAccess",uri:t,access:e,message:i,generalAccessRule:s})}getAccess(t){return this.network.post({o:"object",f:"getAccess",uri:t})}getAccessHash(t){return this.network.post({o:"object",f:"getAccessHash",uri:t})}}class M extends s{getFileBanks(t){return this.network.post({o:"file-sync",f:"getFileBanks"},t)}saveFileBanks(t){return this.network.post({o:"file-sync",f:"saveFileBanks",fileBanks:t})}getUserQuota(t){return this.network.post({o:"file-sync",f:"getUserQuota"},t)}getAdminSpots(t,e){return this.network.post(Object.assign({o:"objectList",f:"fileSyncAdminSpots"},t),e)}}class q extends s{getUsers(t,e){return this.network.post(Object.assign(Object.assign({o:"customAction",f:"getUsers"},t),{format:null!=e?e:"raw-list"}))}add(t,e){return this.network.post(Object.assign(Object.assign({o:"customAction",f:"add"},t),{format:null!=e?e:"raw-little"}))}remove(t,e){return this.network.post(Object.assign(Object.assign({o:"customAction",f:"remove"},t),{format:null!=e?e:"raw-little"}))}}class B extends s{textEnhancement({text:t,capacity:e}){return this.network.post({o:"jia",f:"textEnhancement",text:t,capacity:e})}}class D extends s{responseUserList(t,e,i){return this.network.post({o:"widget",f:"responseUserList",uri:t,uniqid:e,page:i})}}class I{constructor(t){this.version="1.0",this.network=t,this.admin={license:new n(this),store:new r(this),utils:new o(this)},this.application=new a(this),this.article=new c(this),this.asei=new j(this),this.assetReservation=new p(this),this.audience=new l(this),this.bookmark=new f(this),this.businessNetworking=new d(this),this.community=new m(this),this.diapazone=new h(this),this.drive=new O(this),this.faq=new k(this),this.file=new w(this),this.filebank=new y(this),this.fileSync=new M(this),this.global=new b(this),this.group=new v(this),this.jia=new B(this),this.jland=new S(this),this.mediaLibrary=new A(this),this.messenger=new C(this),this.object=new E(this),this.search=new x(this),this.share=new T(this),this.socialAction=new q(this),this.taxonomy=new F(this),this.tvDisplay=new _(this),this.user=new L(this),this.wedoc=new R(this),this.widget=new D(this),this.animations=new P(this)}}var $=function(t,e,i,s){return new(i||(i=Promise))((function(n,r){function o(t){try{c(s.next(t))}catch(t){r(t)}}function a(t){try{c(s.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?n(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(o,a)}c((s=s.apply(t,e||[])).next())}))};class J{constructor(t,e="api-front"){this.window=t,this.action=e}static _formatPostOptions(t){const e=t?{body:JSON.stringify(t)}:void 0;return Object.assign({method:"POST",credentials:"same-origin"},e)}getUrl(t,e){return $(this,void 0,void 0,(function*(){const i=yield this.window.getBackendUrl();let s;try{s=new URL(`/${this.action}/${t}/${e}`,i).href}catch(n){s=`${i}/${this.action}/${t}/${e}`}return s}))}getHostname(){return $(this,void 0,void 0,(function*(){const t=(yield this.window.getBackendUrl()).split("//");return t.length>1?t[1]:t[0]}))}fetch(t,e){var{o:i,f:s}=t,n=function(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(t);n<s.length;n++)e.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(t,s[n])&&(i[s[n]]=t[s[n]])}return i}(t,["o","f"]);return $(this,void 0,void 0,(function*(){void 0===e&&(e=null);const t=yield this.getUrl(i,s);return this.window.fetch(t,Object.assign(Object.assign({},J._formatPostOptions(n)),{signal:e}))}))}post(t,e){return this.fetch(t,e).then((t=>t.json())).then((t=>{if(0===t.error)return t;throw{error:t.error,errorMsg:t.errorMsg,messages:t.messages}})).catch((t=>{if(e&&e.aborted)throw{error:-1,aborted:!0};throw t}))}postFile(t){return $(this,void 0,void 0,(function*(){const e=yield this.getUrl("file","create");if(t.append("format","raw-little"),!t.has("token")){const{result:e}=yield this.token();t.append("token",e)}const i=t.get("token");return i&&"string"==typeof i?this.window.fetch(e,{method:"POST",credentials:"same-origin",body:t}).then((t=>t.json())).then((t=>({response:t,token:i}))):Promise.reject("Missing token")}))}postCSRF(t){return this.tokenCSRF().then((e=>this.post(Object.assign(t,{tokenCSRF:e.result}))))}postToken(t){return this.token().then((e=>this.post(Object.assign(t,{token:e.result}))))}maybePostToken(t){return"token"in t&&t.token?this.post(t):this.postToken(t)}token(){return this.post({o:"misc",f:"token"})}tokenCSRF(){return this.post({o:"misc",f:"tokenCSRF"})}}class N{getBackendUrl(){return t=this,e=void 0,s=function*(){const t=window.location;return`${t.protocol}//${t.host}`},new((i=void 0)||(i=Promise))((function(n,r){function o(t){try{c(s.next(t))}catch(t){r(t)}}function a(t){try{c(s.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?n(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(o,a)}c((s=s.apply(t,e||[])).next())}));var t,e,i,s}fetch(t,e){return window.fetch(t,e)}}const W={ADMIN:9,USER:5,EXTERNAL:3,GUEST:0},z="accept",Q="deny";function G(t){const e=t;return e&&"number"==typeof e.id&&"number"==typeof e.targetId}const H={bookmarkLink:G},V={isBookmarkLink:function(t){return"targetId"in t&&!!t.targetId},isBookmarkCustom:function(t){const e=t;return void 0!==e.bookmarkLabel||void 0!==e.bookmarkMeta||void 0!==e.bookmarkUrl},isBookmarkRawList:G,isTVChannelType:function(t,e){return"tvChannelType"in t&&t.tvChannelType===e},objectIsType:function(t,e){return null!=e&&H[t](e)},isStandardApiError:t=>"object"==typeof t&&null!==t&&"error"in t&&"errorMsg"in t&&"messages"in t&&"number"==typeof t.error&&"string"==typeof t.errorMsg&&Array.isArray(t.messages),isAbortApiError:t=>null!==t&&"object"==typeof t&&"error"in t&&"aborted"in t&&-1===t.error&&!0===t.aborted};function X(t,e){return t&&!t.endsWith(e)?`${t}${e}`:t}function Y(t,e){return t&&t.startsWith(e)?t.split("").slice(e.length).join(""):t}function K(t){return t.toString().padStart(2,"0")}function Z(t){return"uri"in t&&t.uri?t.uri:`${t.type}/${t.recordId}`}function tt(t){return Y(X(t.from,"/"),"/")||""}function et(t){return t.timestamp?`?_=${t.timestamp}`:""}function it(t){const e=[];return"timestamp"in t&&t.timestamp&&e.push(`_=${t.timestamp}`),"iconColor"in t&&t.iconColor&&e.push(`color=${t.iconColor}`),e.length?"?"+e.join("&"):""}function st(t,e=2){return"size"in t&&t.size?t.size:"width"in t&&t.width&&"height"in t&&t.height?`${t.width*e}x${t.height*e}`:""}function nt(t){return t.format||"png"}function rt(t){try{return new URL(t)}catch(t){}try{return new URL(window.location.origin+"/"+Y(t,"/"))}catch(t){}}function ot(t,e=2){if("url"in t&&t.url){const e=rt(t.url);if(e)return"timestamp"in t&&t.timestamp&&!e.searchParams.has("_")&&e.searchParams.append("_",t.timestamp.toString()),e.toString()}return`/${tt(t)}${st(t,e)}/${Z(t)}.${nt(t)}${it(t)}`}const at=["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pdf","application/zip","application/illustrator","application/postscript","application/vnd.ms-opentype","application/x-font-ttf","application/octet-stream","audio/mp3","audio/mpeg","font/ttf","font/otf","image/jpeg","image/jpg","image/png","image/gif","image/vnd.adobe.photoshop","image/svg+xml","text/plain","text/csv","video/mp4","video/webm"],ct=["docx","xlsx","csv","pptx","pdf","zip","ai","mp3","mpeg","ttf","otf","jpg","jpeg","png","gif","psd","svg","txt","mp4","odt","webm"],ut={"application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","application/vnd.oasis.opendocument.text":"odt","application/pdf":"pdf","application/zip":"zip","application/x-zip-compressed":"zip","application/illustrator":"ai","application/postscript":"ai","audio/mp3":"mp3","audio/mpeg":"mpeg","font/ttf":"ttf","font/otf":"otf","image/jpeg":"jpeg","image/jpg":"jpg","image/png":"png","image/gif":"gif","application/x-font-ttf":"ttf","application/vnd.ms-opentype":"otf","image/vnd.adobe.photoshop":"psd","image/svg+xml":"svg","text/plain":"txt","text/csv":"xlsx","video/mp4":"mp4","video/webm":"mp4"},pt=t=>Object.keys(ut).find((e=>ut[e]===t)),lt=t=>{var e;return null!==(e=ut[t])&&void 0!==e?e:void 0};function ft(t){const e=String(t).split(".").pop();return ct.find((t=>t===e))}const dt=t=>{var e;const i=ft(t);return null!==(e=pt(i))&&void 0!==e?e:"application/octet-stream"},mt=t=>t?(new Date(t).getTime()/1e3).toFixed(0):void 0,ht=(t,e="fitx80")=>{const i=vt(t),s=mt(t.dateModified);switch(i){default:return;case"video":return`/media/${t.id}.mp4?stream=true`+(s?`&_=${s}`:"");case"audio":return`/media/${t.id}.mp3`+(s?`?_=${s}`:"");case"gif":return ot({timestamp:s,size:e,from:"imagecache",uri:t.uri,format:"gif"});case"image":return ot({timestamp:s,size:e,from:"imagecache",uri:t.uri})}},gt=t=>{const e=ft(t);return void 0!==e?kt(pt(e)):"application"},wt=t=>-1!==["image/vnd","image/svg","image/heic"].findIndex((e=>t.startsWith(e)));function kt(t){return t&&t.startsWith("folder/")?"folder":null==t||wt(t)?"application":t.startsWith("image/gif")?"gif":t.startsWith("image/")?"image":t.startsWith("video/")?"video":t.startsWith("audio/")?"audio":t.startsWith("font/")||t.startsWith("application/x-font-ttf")||t.startsWith("application/vnd.ms-opentype")?"font":t.startsWith("text/")?"text":"application"}const yt=(t,e,i="rr")=>"ng"===i?`/ng/file/${t}/${e}`:`/ng/rr/file/${t}/${e}`,bt=t=>void 0===t.mimetype||"application/octet-stream"===t.mimetype?dt(t.title):t.mimetype,vt=t=>void 0===t.mimetype||"application/octet-stream"===t.mimetype?gt(t.title):kt(t.mimetype),jt=Array.isArray,Ot=Object.keys,At=Object.prototype.hasOwnProperty;function St(t,e,i){const s=null==i?void 0:i.map((t=>t.split(".")));if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){const n=jt(t),r=jt(e);let o,a,c;if(n&&r){if(a=t.length,a!==e.length)return!1;for(o=a;0!=o--;)if(!St(t[o],e[o],i))return!1;return!0}if(n!==r)return!1;const u=t instanceof Date,p=e instanceof Date;if(u!==p)return!1;if(u&&p)return t.getTime()===e.getTime();const l=t instanceof RegExp,f=e instanceof RegExp;if(l!==f)return!1;if(l&&f)return t.toString()===e.toString();const d=Ot(t).filter((t=>!(null==s?void 0:s.some((e=>1===e.length&&e[0]===t)))));if(a=d.length,a!==Ot(e).filter((t=>!(null==s?void 0:s.some((e=>1===e.length&&e[0]===t))))).length)return!1;for(o=a;0!=o--;)if(!At.call(e,d[o]))return!1;for(o=a;0!=o--;)if(c=d[o],!("_owner"===c&&t.$$typeof||St(t[c],e[c],null==s?void 0:s.filter((t=>t.length>1&&t[0]===c)).map((t=>t.splice(1).join("."))))))return!1;return!0}return t!=t&&e!=e}function Ct(t,e){if(Array.isArray(t))return t.map((t=>Ct(t,e)));if("object"==typeof t&&null!==t){let i={};return Object.keys(t).forEach((s=>{i=Object.assign(Object.assign({},i),{[s]:s&&e.includes(s)?typeof t[s]:Ct(t[s],e)})})),i}return t}function xt(t){return t.startsWith("tag_")||"tags"===t}function Ft(t){return Object.fromEntries(Object.entries(t).filter((([t])=>xt(t))))}function Lt(t,e,i){return Object.fromEntries(Object.entries(t).filter((([t])=>xt(t))).map((([t,s])=>{const n=Array.isArray(s)?s.map((t=>"object"==typeof t&&t&&e in t?t[e]:t)):s;return[t,i?i(n):n]})))}function Rt(t){return Lt(t,"uri")}const _t=t=>{var e;let i={};"_errors"in t&&(i._errors=t._errors),"_options"in t&&(i._options=t._options),"title"in t&&(i.title=t.title),"description"in t&&(i.description=t.description),"activity"in t&&(i.activity=t.activity),"image"in t&&(i.image=t.image),"uri"in t&&(i.uri=t.uri),"type"in t&&(i.type=t.type),"edito"in t&&(i.edito=t.edito),"category"in t&&(i.category=t.category.toString()),"commentLevel"in t&&(i.commentLevel=t.commentLevel),"_options"in t&&(null===(e=t._options)||void 0===e?void 0:e.custom_widgets)&&(i.custom_widgets=Array.isArray(t._options.custom_widgets)?{}:t._options.custom_widgets),"displayType"in t&&(i.displayType=t.displayType),"language"in t&&(i.language=t.language),"edit_access"in t&&(i.edit_access=t.edit_access),"lock_mail"in t&&(i.lock_mail=t.lock_mail),"fileSyncEnabled"in t&&(i.fileSyncEnabled=t.fileSyncEnabled),"fileSyncVersioningType"in t&&(i.fileSyncVersioningType=t.fileSyncVersioningType),"fileBankQuota"in t&&(i.fileBankQuota=t.fileBankQuota),"idCommunity"in t&&(i.idCommunity=t.idCommunity),"lastRssExecution"in t&&(i.lastRssExecution=t.lastRssExecution),"mail_comment"in t&&(i.mail_comment=t.mail_comment),"mail_frequency"in t&&(i.mail_frequency=t.mail_frequency),"mail_spotit"in t&&(i.mail_spotit=t.mail_spotit),"mail_subscriber"in t&&(i.mail_subscriber=t.mail_subscriber),"notifyFolder"in t&&(i.notifyFolder=t.notifyFolder),"nounsubscribe"in t&&(i.nounsubscribe=t.nounsubscribe),"privacy"in t&&(i.privacy=t.privacy),"publishFolder"in t&&(i.publishFolder=t.publishFolder),"rss_access"in t&&(i.rss_access=t.rss_access),"rss_feed"in t&&(i.rss_feed=t.rss_feed&&Array.isArray(t.rss_feed)?JSON.stringify(t.rss_feed.map((t=>{var{_user:e}=t,i=function(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(t);n<s.length;n++)e.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(t,s[n])&&(i[s[n]]=t[s[n]])}return i}(t,["_user"]);return Object.assign(Object.assign({},i),{idUser:null==e?void 0:e.id})}))):"[]"),"rss_key"in t&&(i.rss_key=t.rss_key),"spot_right_user"in t&&(i.spot_right_user=t.spot_right_user),"spotBanner"in t&&(i.spotBanner=t.spotBanner),"spotDefaultPublishType"in t&&(i.spotDefaultPublishType=t.spotDefaultPublishType),"user_level_signup"in t&&(i.user_level_signup=t.user_level_signup),"useTeaser"in t&&(i.useTeaser=t.useTeaser),"widgets"in t&&(i.widgets=t.widgets);const s=Ft(t);if(i=Object.assign(Object.assign({},i),s),Tt(t,i))return i;throw new Error},Tt=(t,e)=>{const i=["id","mainType","dateCreation","dateModified","_url"],s=["custom_widgets"],n=Object.keys(t),r=Object.keys(e),o=n.filter((t=>!r.includes(t)&&!i.includes(t))),a=r.filter((t=>!n.includes(t)&&!s.includes(t))),c=[...o.map((t=>"- "+t)),...a.map((t=>"+ "+t))];if(o.length>0||a.length>0)throw new Error(`prepareGroupForUpdate :: Wrong group mapping | Diff : ${JSON.stringify(c)}`);return!0},Ut=new J(new N),Pt=new I(Ut);window.JamespotUserApi=Pt;const Et=Pt,Mt=I;module.exports=i})();
|
|
1
|
+
(()=>{"use strict";var t,e={d:(t,i)=>{for(var s in i)e.o(i,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:i[s]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},i={};e.r(i),e.d(i,{ACCESS_REQUEST_ACCEPT:()=>Q,ACCESS_REQUEST_DENY:()=>G,AdminLicenseApi:()=>r,AdminStoreApi:()=>n,AdminUtilsApi:()=>o,JApplicationApi:()=>a,JArticleApi:()=>c,JAssetReservation:()=>p,JAudienceApi:()=>l,JBaseApi:()=>s,JBookmarkApi:()=>f,JBusinessNetworkingApi:()=>d,JCommunityApi:()=>m,JDiapazoneApi:()=>h,JFaqApi:()=>k,JFileApi:()=>w,JFilebankApi:()=>y,JGlobalApi:()=>b,JGroupApi:()=>v,JIAApi:()=>D,JLandApi:()=>S,JMessengerApi:()=>x,JObjectApi:()=>M,JSearchApi:()=>C,JShareApi:()=>P,JSocialActionApi:()=>B,JTaxonomyApi:()=>L,JUserApi:()=>R,JWedocApi:()=>_,JWidgetApi:()=>I,JamespotUserApi:()=>$,JamespotUserApiInstance:()=>Et,Network:()=>N,StudioApplicationStatus:()=>t,TVDisplayApi:()=>T,UserLevel:()=>z,WindowBrowser:()=>W,api:()=>qt,deepEqual:()=>xt,default:()=>Mt,extensions:()=>ut,extractTaxonomiesFromObject:()=>Lt,extractTaxonomiesFromObjectAndMapProperty:()=>Rt,extractTaxonomiesFromObjectAndMapUri:()=>_t,formatImgUrl:()=>at,getArgs:()=>st,getExtensionFromName:()=>dt,getFileExtensionFromMimetype:()=>ft,getFileFamily:()=>yt,getFileFamilyFromName:()=>wt,getFormat:()=>nt,getFrom:()=>et,getMimetypeFromExtension:()=>lt,getMimetypeFromName:()=>mt,getSize:()=>rt,getTimestamp:()=>it,getUri:()=>tt,getUrl:()=>ot,jEnsure:()=>X,mimetypeToExt:()=>pt,mimetypes:()=>ct,network:()=>Ut,objectTimestamp:()=>ht,padStartTwoDigits:()=>Z,prepareGroupForUpdate:()=>Tt,removeIfStartsWith:()=>K,replacePropertiesWithTypes:()=>Ct,resolveFileFamily:()=>jt,resolveFileMimetype:()=>vt,resolveFilePath:()=>gt,resolveFileUrl:()=>bt,suffixIfDoesNotExist:()=>Y});class s{constructor(t){this.jApi=t,this.network=t.network}}class r extends s{getLicenseUserStatistics(){return this.network.post({o:"licenseManager",f:"userStatistics"})}assignLicense(t){return this.network.postCSRF({o:"licenseManager",f:"assignLicense",uri:t})}unAssignLicense(t){return this.network.postCSRF({o:"licenseManager",f:"unassignLicense",uri:t})}getAssignmentMode(t){return this.network.post({o:"licenseManager",f:"getAssignmentMode",type:t})}setAssignmentMode(t,e){return this.network.postCSRF({o:"licenseManager",f:"setAssignmentMode",value:e,type:t})}assignPossiblesLicenses(t){return this.network.postCSRF({o:"licenseManager",f:"assignPossiblesLicenses",type:t})}unAssignUnusedLicenses(t){return this.network.postCSRF({o:"licenseManager",f:"unassignUnusedLicenses",type:t})}optimizeLicenses(t){return this.network.postCSRF({o:"licenseManager",f:"optimizeLicenses",type:t})}getObjectsWithoutLicense(t,e){return this.network.post({o:"licenseManager",f:"countObjectsWithoutLicense",type:t,filter:e})}getLicensesNotAssigned(t){return this.network.post({o:"licenseManager",f:"countLicensesNotAssigned",type:t})}getLicensesAssigned(t){return this.network.post({o:"licenseManager",f:"getLicensesAssigned",type:t})}}class n extends s{getItem(t){return this.network.post({o:"adminStore",f:"getItem",uri:t})}checkoutBilling(t){return this.network.postCSRF({o:"adminStore",f:"checkoutBilling",uri:t})}checkoutFinalize(t){return this.network.postCSRF({o:"adminStore",f:"checkoutFinalize",uri:t})}}class o extends s{getApps(){return this.network.post({o:"admin",f:"apps"})}}!function(t){t.local="local",t.installed="installed",t.autosaved="autosaved",t.saved="saved"}(t||(t={}));class a extends s{list(){return this.network.post({o:"studio",f:"list"})}get(t,e){return this.network.post({o:"studio",f:"get",idApp:t,status:e})}install(t){return this.network.postCSRF({o:"studio",f:"install",value:t})}suspend(t){return this.network.postCSRF({o:"studio",f:"suspend",idApp:t})}restart(t){return this.network.postCSRF({o:"studio",f:"restart",idApp:t})}save(e,i,s){if(s===t.saved||s===t.autosaved)return this.network.postCSRF({o:"studio",f:"save",idApp:e,value:i,status:s});throw"Invalid status value"}delete(t,e){return i=this,s=void 0,n=function*(){return this.network.postCSRF({o:"studio",f:"delete",idApp:t,status:e}).then((t=>{if(0===t.error)return t.messages;throw t.messages}))},new((r=void 0)||(r=Promise))((function(t,e){function o(t){try{c(n.next(t))}catch(t){e(t)}}function a(t){try{c(n.throw(t))}catch(t){e(t)}}function c(e){var i;e.done?t(e.value):(i=e.value,i instanceof r?i:new r((function(t){t(i)}))).then(o,a)}c((n=n.apply(i,s||[])).next())}));var i,s,r,n}cssClassList(){return this.network.post({o:"studio",f:"icons"})}}class c extends s{list(t){return this.network.post(Object.assign({o:"objectList",f:"jamespotArticleQueryList"},t))}get(t){return this.network.post(Object.assign({o:"article",f:"get"},t))}create(t,e){return this.network.maybePostToken(Object.assign({o:"article",f:"create",format:null!=e?e:"raw-list"},t))}update(t){return this.network.post(Object.assign(Object.assign({format:"raw-list"},t),{o:"article",f:"update"}))}delete(t){return this.network.postCSRF({o:"article",f:"delete",idArticle:t})}count(t){return this.network.post({o:"article",f:"count",type:t})}getAttachments(t,e,i){return this.network.post({o:"article",f:"getAttachment",idArticle:t,type:e,format:i})}permalink(t){return this.network.post({o:"article",f:"permalink",permalinkId:t})}saveAsDraft(t,e,i){return this.network.post({o:"article",f:"saveAsDraft",form:t,contentType:e,idDraft:i})}getComments(t,e){var i,s;return this.network.post(Object.assign(Object.assign({o:"article",f:"getComments"},t),{attachments:null!==(i=t.attachment)&&void 0!==i&&i,limits:null!==(s=t.limits)&&void 0!==s?s:{start:0,max:1e4},format:null!=e?e:"raw-little"}))}addComment(t,e){return this.network.post(Object.assign(Object.assign({o:"article",f:"addComment"},t),{alertAuthor:Number(t.alertAuthor),sendAlert:Number(t.sendAlert),type:"comment",format:null!=e?e:"raw-little"}))}updateComment(t,e){return this.network.post(Object.assign(Object.assign({o:"article",f:"updateComment"},t),{format:null!=e?e:"raw-little"}))}deleteComment(t){return this.network.postCSRF({o:"comment",f:"delete",idComment:t})}getRead(t){return this.network.post({o:"article",f:"getRead",uri:t})}}var u=function(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(s=Object.getOwnPropertySymbols(t);r<s.length;r++)e.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(t,s[r])&&(i[s[r]]=t[s[r]])}return i};class p extends s{configuration(){return this.network.post({o:"assetReservation",f:"configuration"})}createReservation(t){return this.network.postCSRF(Object.assign({o:"assetReservation",f:"createReservation",format:"raw-list"},t))}getReservations(t){var{format:e="raw-list"}=t,i=u(t,["format"]);return this.network.post(Object.assign({o:"assetReservation",f:"getReservations",format:e},i))}cancelReservation(t){return this.network.post({o:"assetReservation",f:"cancelReservation",format:"raw-list",idArticle:t})}bookByDate(t){var{format:e="raw-list"}=t,i=u(t,["format"]);return this.network.post(Object.assign({o:"assetReservation",f:"BookByDate",format:e},i))}getList(t){var{format:e="raw-list"}=t,i=u(t,["format"]);return this.network.post(Object.assign({o:"objectList",f:"assetReservationList",format:e},i))}}class l extends s{autocomplete(t){return this.network.post({o:"autocomplete",f:"audience",q:t}).then((t=>{if(Array.isArray(t.result))return t.result;throw"Bad response from backend"}))}}class f extends s{getFormattedList(t,e){return this.network.post(Object.assign({o:"objectList",f:"bookmarksList",format:e},t))}addFormattedLink(t,e,i){const s=null!=i?i:"list";return this.network.post({o:"custom",f:"actionAdd",type:"bookmarkLink",targetId:t,targetType:e,format:s})}addBookmark(t,e){return this.network.postCSRF(Object.assign({o:"bookmarks",f:"add"},t))}delete(t){return this.network.postCSRF({o:"bookmarks",f:"delete",bookmarkID:t})}rename(t,e,i){return this.network.postCSRF({o:"bookmarks",f:"rename",bookmarkID:t,bookmarkLabel:e,bookmarkUrl:i})}move(t,e,i){return this.network.postCSRF({o:"bookmarks",f:"move",bookmarkID:t,bookmarkReference:e,bookmarkPosition:i})}}class d extends s{getInfos(t,e){return this.network.post({o:"BusinessNetworking",f:"MarkerInfo",id:t,format:null!=e?e:"raw-little"})}}class m extends s{get(t,e){return this.network.post({o:"community",f:"getCommunity",idCommunity:t,format:e||"raw-little"})}sendRequest(t,e){return this.network.post({o:"community",f:"sendRequest",message:t,idUserTo:e})}autocomplete(t){return this.network.post({o:"autocomplete",f:"community",q:t}).then((t=>t.result))}}class h extends s{create(t,e,i,s,r){return this.network.post({o:"article",f:"create",type:t,token:e,title:i,dateStart:s,publishTo:r})}getList(t="",e=[],i=[],s=1,r="raw-list"){return this.network.post({o:"objectList",f:"diapazoneQueryList",query:t,filters:e,orders:i,page:s,format:r})}}var g=function(t,e,i,s){return new(i||(i=Promise))((function(r,n){function o(t){try{c(s.next(t))}catch(t){n(t)}}function a(t){try{c(s.throw(t))}catch(t){n(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(o,a)}c((s=s.apply(t,e||[])).next())}))};class w extends s{upload(t){const e=new FormData;return e.append("attrName",t.attrName),t.file?e.append(t.attrName,t.file):t.url&&e.append("url",t.url),e.append("token",t.token),this.network.postFile(e)}uploadMany(t){return g(this,void 0,void 0,(function*(){return Promise.all(t.map((t=>this.upload(t))))}))}get(t,e){return g(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"get",idFile:t,format:e})}))}getParent(t,e){return g(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"getParent",idFile:t,format:e})}))}getWithHash(t,e,i){return g(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"getWithHash",idFile:t,hash:e,format:i})}))}duplicate(t,e,i){return g(this,void 0,void 0,(function*(){return this.network.postCSRF({o:"file",f:"duplicateFile",idFile:t,title:e,publishTo:i})}))}updateFile(t,e){return g(this,void 0,void 0,(function*(){return this.network.postCSRF({o:"file",f:"updateFile",idFile:t,title:e})}))}update(t,e,i){return g(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"update",idFile:t,type:e,cropDatas:Object.assign(Object.assign({},i),{rotateBeforeCrop:!0}),killSize:i.killSize,format:"raw-little"})}))}deleteFile(t,e,i,s){return g(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"delete",idFile:t,attrName:e,token:i},s)}))}deleteImage(t,e){return g(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"deleteImage",id:t,type:e})}))}}class k extends s{getCategoriesList(t,e){return this.network.post({o:"objectList",f:"faqQueryList",format:null!=t?t:"raw-list",orders:null!=e?e:[{name:"dateCreation",sort:"ASC"}]})}createCategory(t,e){return this.jApi.article.create(Object.assign(Object.assign({},t),{type:"faq"}),null!=e?e:"raw-view")}updateCategory(t,e){return this.jApi.article.update(Object.assign(Object.assign({},t),{type:"faq",format:null!=e?e:"raw-view"}))}getCategory(t,e){return this.jApi.article.get({idArticle:t,format:null!=e?e:"raw-view"})}deleteCategory(t){return this.jApi.article.delete(t)}checkItem(t,e,i){return this.network.post({o:"faq",f:"checkItem",query:t,page:null!=e?e:1,format:null!=i?i:"raw-list"})}getTaxonomy(){return this.network.post({o:"faq",f:"getFaqTaxonomy"})}getHookProperties(t){return this.network.post({o:"faq",f:"getHookProperties",properties:null!=t?t:["_web"]})}getAccess(){return this.network.post({o:"faq",f:"access"})}createTheme(t,e){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"add-theme"},t),{format:null!=e?e:"raw-view"}))}deleteTheme(t,e){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"delete-theme"},t),{format:null!=e?e:"raw-view"}))}updateTheme(t,e){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"set-theme"},t),{format:null!=e?e:"raw-view"}))}getEntry(t,e){return this.network.post({o:"faq",f:"get-entry",uri:t,format:null!=e?e:"raw-view"})}deleteEntry(t){return this.jApi.article.delete(t)}createEntry(t,e){return this.jApi.article.create(Object.assign(Object.assign({},t),{idSpot:["content"],type:"faqItem"}),null!=e?e:"raw-view")}addEntry(t,e){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"add-entry"},t),{format:null!=e?e:"raw-view"}))}updateEntry(t,e){return this.jApi.article.update(Object.assign(Object.assign({},t),{type:"faqItem",format:null!=e?e:"raw-view"}))}moveEntry(t,e){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"move-entry"},t),{format:null!=e?e:"raw-view"}))}moveTheme(t,e){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"move-theme"},t),{format:null!=e?e:"raw-view"}))}}class y extends s{getBanks(t="list"){return this.network.post({o:"fileBank",f:"getBanks",format:t}).then((t=>t.result))}getFolders(t){return this.network.post({o:"fileBank",f:"getFolders",parentURI:t})}getDocuments(t){return this.network.post({o:"fileBank",f:"getDocuments",parentURI:t})}}class b extends s{countAction(t,e){return this.network.post({o:"activityLog",f:"log",count:!0,verb:t,uri:e})}}class v extends s{autocomplete(t){return this.network.post({o:"autocomplete",f:"spot",q:t,idToUri:!1}).then((t=>t.result))}create(t,e){return this.network.post(Object.assign(Object.assign({o:"spot",f:"create"},t),{format:e}))}update(t,e){const{spotBanner:i}=t,s=function(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(s=Object.getOwnPropertySymbols(t);r<s.length;r++)e.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(t,s[r])&&(i[s[r]]=t[s[r]])}return i}(t,["spotBanner"]);return this.network.postCSRF(Object.assign(Object.assign({o:"spot",f:"update"},s),{format:e}))}getSpot(t,e){return this.network.post({o:"spot",f:"getSpot",idSpot:t,format:e})}getProperties(t){return this.network.post({o:"spot",f:"getProperties",idSpot:t})}getApplications(){return this.network.post({o:"spot",f:"get-available-widget"})}getCategories(){return this.network.post({o:"spot",f:"get-categories"})}getObjectListJamespotSpotMembers(t,e,i,s=1){return this.network.post({o:"objectListJamespot",f:"SpotMembers",idSpot:t,limit:i,page:s,format:"raw-little",query:e})}list(t){return this.network.post(Object.assign({o:"objectList",f:"jamespotSpotQueryList"},t))}resetNotifications(t){return this.network.post(Object.assign({o:"spot",f:"resetNotifications"},t))}}class j extends s{list(t,e,i,s=[{name:"dateCreation",sort:"DESC"}]){return this.jApi.article.list({type:"aseiClearanceTicket",format:"raw-view",limit:e,page:t,orders:s,filters:i})}requestStatus(t,e,i){return this.network.post({o:"asei",f:"setStatus",uri:t,requestedStatus:e,audience:i})}getDedicatedGroups(){return this.network.post({o:"asei",f:"getDedicatedGroups"})}getConfiguration(){return this.network.post({o:"asei",f:"configuration"})}}class O extends s{tenants(){return this.network.post({o:"drive",f:"getTenants"})}groups(t,e){return this.network.post({o:"drive",f:"getGroups",query:t,filter:e})}sites(){return this.network.post({o:"drive",f:"getSites"})}listAccount(t){return this.network.post({o:"drive",f:"listAccount",service:t})}isAccountLogged(t,e){return this.network.post({o:"drive",f:"isAccountLogged",service:t,id:e})}checkAccountToken(t){return this.network.post({o:"drive",f:"checkAccountToken",service:t})}documents(t,e){return this.network.post({o:"drive",f:"getDocuments",service:t,documentParams:e})}}class A extends s{GetUnclassifiedFiles(t){var e;return this.network.post({o:"objectListMediaLibrary",f:"GetUnclassifiedFiles",format:t.format,page:null!==(e=t.page)&&void 0!==e?e:1,limit:t.limit,nolimit:t.nolimit})}}class S extends s{getLogs({dateEnd:t,idLogMax:e}){return this.network.post({o:"jLand",f:"adminLogs",dateEnd:t,idLogMax:e})}getStats({map:t,dateStart:e,dateEnd:i}){return this.network.post({o:"jLand",f:"adminStats",map:t,dateStart:e,dateEnd:i})}getAllMapsAsAdmin(t="raw-list,licenses"){return this.network.post({o:"objectListJLand",f:"jLandList",format:t})}createMap(t,e="raw-list"){return this.network.maybePostToken(Object.assign(Object.assign({},t),{o:"article",f:"create",format:e,type:"jlandmap"}))}}class x extends s{sendMessage(t,e){return this.network.post({o:"messenger",f:"newMessage",idDiscussion:e,msg:{description:t}})}getOrCreateDiscussion(t,e){const i=t<e?`${t}.${e}`:`${e}.${t}`;return this.network.post({o:"messenger",f:"getDiscussion",idDiscussion:i,type:"messengerUser",idUserTo:e})}}class C extends s{getConfig(){return this.network.post({o:"search",f:"getConfig"})}proposition({query:t,format:e},i){return this.network.post({o:"search",f:"proposition",query:t,format:e||"little"},i)}searchQuery(t,e){const{keywords:i,category:s,facetCategories:r,filters:n,page:o,limit:a,sort:c,options:u}=t;return this.network.post({o:"search",f:"query",keywords:i,category:s,facetCategories:r,filters:n,page:o,limit:a,sort:c,options:u},e)}getLastQueries(){return this.network.post({o:"search",f:"getLastQueries"})}getAdminConfig(){return this.network.post({o:"search",f:"getAdminConfig"})}setAdminConfig(t){return this.network.post({o:"search",f:"setAdminConfig",config:t})}}var F=function(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(s=Object.getOwnPropertySymbols(t);r<s.length;r++)e.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(t,s[r])&&(i[s[r]]=t[s[r]])}return i};class L extends s{list(){return this.network.post({o:"taxonomy",f:"list",format:"raw-little"}).then((t=>{if(Array.isArray(t.result))return t.result;throw"Bad response from backend"}))}create(t){var{format:e="raw-little"}=t,i=F(t,["format"]);return this.network.post(Object.assign({o:"taxonomy",f:"create",format:e},i))}autocomplete(t,e){return this.network.post({o:"autocomplete",f:"taxonomy",q:e,idTaxonomy:t,idToUri:!1})}autocompleteList(t){var{format:e="autocomplete"}=t,i=F(t,["format"]);return this.network.post(Object.assign({o:"objectListTaxonomy",f:"concept",format:e},i))}autocompleteHierarchy(t){return this.network.post(Object.assign({o:"objectListTaxonomyHierarchy",f:"concept"},t))}}class R extends s{autocomplete(t){return this.network.post({o:"autocomplete",f:"user",q:t,idToUri:!1}).then((t=>t.result))}get(t,e="little",i){return this.network.post({o:"user",f:"get",uri:t,format:e},i)}updateImage(t,e="raw-little"){return this.network.postCSRF({o:"user",f:"updateImage",idFile:t,format:e})}updateBanner(t,e="raw-little"){return this.network.postCSRF({o:"user",f:"updateBanner",idFile:t,format:e})}updateMail(t,e){return this.network.postCSRF({o:"user",f:"editMail",mail:t,password:e})}userUpdateProfile(t){return this.network.postCSRF(Object.assign({o:"user",f:"updateProfile"},t))}configuration(){return this.network.post({o:"userDirectory",f:"configuration"})}fieldsConfiguration(){return this.network.post({o:"user",f:"fieldsConfiguration"})}userList(t,e){return this.network.post(Object.assign({o:"objectList",f:"JamespotUserList"},t),e)}userQueryList(t){return this.network.post(Object.assign({o:"objectList",f:"JamespotUserQueryList"},t))}userMap(t){return this.network.post(Object.assign({o:"objectListJamespot",f:"userMap"},t))}userBusinessContactQueryList(t){return this.network.post(Object.assign({o:"businessContact",f:"queryList"},t))}userCreateBusinessContact(t){const e=Object.assign(Object.assign({},t),{pseudo:t.title,firstName:t.firstname,lastName:t.lastname,champ1:t.field1,champ2:t.field2,champ3:t.field3,champ4:t.field4,champ5:t.field5}),i=Object.assign(Object.assign({},e),{type:"businessContactCard",publishTo:"networkPublic/1"});return this.jApi.article.create(i)}userUpdateBusinessContact(t){const e=Object.assign(Object.assign({},t),{pseudo:t.title,firstName:t.firstname,lastName:t.lastname,champ1:t.field1,champ2:t.field2,champ3:t.field3,champ4:t.field4,champ5:t.field5}),i=Object.assign(Object.assign({},e),{uri:t.uri,publishTo:"networkPublic/1"});return this.jApi.article.update(i)}userDeleteBusinessContact(t){return this.jApi.article.delete(t)}userAddContact(t){return this.network.post({o:"user",f:"addContact",idUser:t})}userRemoveContact(t){return this.network.post({o:"user",f:"removeContact",idUser:t})}signIn(t,e){return this.network.post({o:"user",f:"signIn",mail:t,password:e})}getFields(t,e){return this.network.post({o:"user",f:"getFields",idUser:t,fieldsType:e})}}class _ extends s{getFiles(t){return this.network.post(Object.assign({o:"onlyOffice",f:"getFiles"},t))}getFile(t,e){return this.network.post({o:"onlyOffice",f:"getFile",idFile:t,hash:e})}getTemplates(t){return this.network.post({o:"onlyOffice",f:"getTemplates"},t)}deleteFile(t,e){return this.network.postCSRF({o:"onlyOffice",f:"deleteFile",idFile:t,withParent:e})}createFile(t,e,i){return this.network.postCSRF({o:"onlyOffice",f:"createFile",title:t,type:e,publishTo:i})}updateFile(t,e){return this.network.postCSRF({o:"onlyOffice",f:"updateFile",idFile:t,title:e})}createVersion(t){return this.network.post({o:"onlyOffice",f:"createVersion",idFile:t})}setAccessRequest(t,e,i,s){return this.network.postCSRF({o:"onlyOffice",f:"setAccessRequest",uri:t,idUser:e,requestAccessValue:i,requestResponseMessage:s})}getAccessRequest(t,e){return this.network.post({o:"onlyOffice",f:"getAccessRequest",format:"raw-little",uri:t,idUser:e})}askAccess(t,e,i){return this.network.postCSRF({o:"onlyOffice",f:"askAccess",uri:t,askAccess:e,askMessage:i})}}class T extends s{createChannel(t,e="raw-list"){return this.network.maybePostToken(Object.assign(Object.assign({},t),{o:"article",f:"create",format:e,type:"tvDisplayChannel"}))}getChannel(t){return this.network.post(Object.assign(Object.assign({},t),{o:"tvDisplay",f:"getChannel"}))}getConfigureChannel(t){return this.network.post(Object.assign(Object.assign({},t),{o:"tvDisplay",f:"getConfigureChannel"}))}}class P extends s{contentObjectLinks(t){return this.network.post({o:"shared",f:"contentObjectLinks",format:"raw-little",uri:t})}contentSetObjectAccessRule(t,e,i){return this.network.postCSRF({o:"shared",f:"contentSetObjectAccessRule",format:"raw-little",uri:t,rule:e,hash:i})}}var U=function(t,e,i,s){return new(i||(i=Promise))((function(r,n){function o(t){try{c(s.next(t))}catch(t){n(t)}}function a(t){try{c(s.throw(t))}catch(t){n(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(o,a)}c((s=s.apply(t,e||[])).next())}))};class E extends s{SaveAnimationConfiguration(t){return U(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"saveConfiguration",animation:t})}))}DeleteAnimation(){return U(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"deleteAnimation"})}))}GetCurrentAnimation(){return U(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getConfiguration"})}))}GetCurrentAnimationApp(){return U(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getConfigurationApp"})}))}ToggleAnimationActive(){return U(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"toggleAnimationActive"})}))}GetAnimationActive(){return U(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getAnimationActive"})}))}}class M extends s{getObject(t){return this.network.post({o:"object",f:"getObject",uri:t})}setAccess(t,e,i,s){return this.network.post({o:"object",f:"setAccess",uri:t,access:e,message:i,generalAccessRule:s})}getAccess(t){return this.network.post({o:"object",f:"getAccess",uri:t})}getAccessHash(t){return this.network.post({o:"object",f:"getAccessHash",uri:t})}}class q extends s{getFileBanks(t){return this.network.post({o:"file-sync",f:"getFileBanks"},t)}saveFileBanks(t){return this.network.post({o:"file-sync",f:"saveFileBanks",fileBanks:t})}getUserQuota(t){return this.network.post({o:"file-sync",f:"getUserQuota"},t)}getAdminSpots(t,e){return this.network.post(Object.assign({o:"objectList",f:"fileSyncAdminSpots"},t),e)}}class B extends s{getUsers(t,e){return this.network.post(Object.assign(Object.assign({o:"customAction",f:"getUsers"},t),{format:null!=e?e:"raw-list"}))}add(t,e){return this.network.post(Object.assign(Object.assign({o:"customAction",f:"add"},t),{format:null!=e?e:"raw-little"}))}remove(t,e){return this.network.post(Object.assign(Object.assign({o:"customAction",f:"remove"},t),{format:null!=e?e:"raw-little"}))}}class D extends s{textEnhancement({text:t,capacity:e}){return this.network.post({o:"jia",f:"textEnhancement",text:t,capacity:e})}}class I extends s{responseUserList(t,e,i){return this.network.post({o:"widget",f:"responseUserList",uri:t,uniqid:e,page:i})}}class ${constructor(t){this.version="1.0",this.network=t,this.admin={license:new r(this),store:new n(this),utils:new o(this)},this.application=new a(this),this.article=new c(this),this.asei=new j(this),this.assetReservation=new p(this),this.audience=new l(this),this.bookmark=new f(this),this.businessNetworking=new d(this),this.community=new m(this),this.diapazone=new h(this),this.drive=new O(this),this.faq=new k(this),this.file=new w(this),this.filebank=new y(this),this.fileSync=new q(this),this.global=new b(this),this.group=new v(this),this.jia=new D(this),this.jland=new S(this),this.mediaLibrary=new A(this),this.messenger=new x(this),this.object=new M(this),this.search=new C(this),this.share=new P(this),this.socialAction=new B(this),this.taxonomy=new L(this),this.tvDisplay=new T(this),this.user=new R(this),this.wedoc=new _(this),this.widget=new I(this),this.animations=new E(this)}}var J=function(t,e,i,s){return new(i||(i=Promise))((function(r,n){function o(t){try{c(s.next(t))}catch(t){n(t)}}function a(t){try{c(s.throw(t))}catch(t){n(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(o,a)}c((s=s.apply(t,e||[])).next())}))};class N{constructor(t,e="api-front"){this.window=t,this.action=e}static _formatPostOptions(t){const e=t?{body:JSON.stringify(t)}:void 0;return Object.assign({method:"POST",credentials:"same-origin"},e)}getUrl(t,e){return J(this,void 0,void 0,(function*(){const i=yield this.window.getBackendUrl();let s;try{s=new URL(`/${this.action}/${t}/${e}`,i).href}catch(r){s=`${i}/${this.action}/${t}/${e}`}return s}))}getHostname(){return J(this,void 0,void 0,(function*(){const t=(yield this.window.getBackendUrl()).split("//");return t.length>1?t[1]:t[0]}))}fetch(t,e){var{o:i,f:s}=t,r=function(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(s=Object.getOwnPropertySymbols(t);r<s.length;r++)e.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(t,s[r])&&(i[s[r]]=t[s[r]])}return i}(t,["o","f"]);return J(this,void 0,void 0,(function*(){void 0===e&&(e=null);const t=yield this.getUrl(i,s);return this.window.fetch(t,Object.assign(Object.assign({},N._formatPostOptions(r)),{signal:e}))}))}post(t,e){return this.fetch(t,e).then((t=>t.json())).then((t=>{if(0===t.error)return t;throw{error:t.error,errorMsg:t.errorMsg,messages:t.messages}})).catch((t=>{if(e&&e.aborted)throw{error:-1,aborted:!0};throw t}))}postFile(t){return J(this,void 0,void 0,(function*(){const e=yield this.getUrl("file","create");if(t.append("format","raw-little"),!t.has("token")){const{result:e}=yield this.token();t.append("token",e)}const i=t.get("token");return i&&"string"==typeof i?this.window.fetch(e,{method:"POST",credentials:"same-origin",body:t}).then((t=>t.json())).then((t=>({response:t,token:i}))):Promise.reject("Missing token")}))}postCSRF(t){return this.tokenCSRF().then((e=>this.post(Object.assign(t,{tokenCSRF:e.result}))))}postToken(t){return this.token().then((e=>this.post(Object.assign(t,{token:e.result}))))}maybePostToken(t){return"token"in t&&t.token?this.post(t):this.postToken(t)}token(){return this.post({o:"misc",f:"token"})}tokenCSRF(){return this.post({o:"misc",f:"tokenCSRF"})}}class W{getBackendUrl(){return t=this,e=void 0,s=function*(){const t=window.location;return`${t.protocol}//${t.host}`},new((i=void 0)||(i=Promise))((function(r,n){function o(t){try{c(s.next(t))}catch(t){n(t)}}function a(t){try{c(s.throw(t))}catch(t){n(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(o,a)}c((s=s.apply(t,e||[])).next())}));var t,e,i,s}fetch(t,e){return window.fetch(t,e)}}const z={ADMIN:9,USER:5,EXTERNAL:3,GUEST:0},Q="accept",G="deny";function H(t){const e=t;return e&&"number"==typeof e.id&&"number"==typeof e.targetId}const V={bookmarkLink:H},X={isBookmarkLink:function(t){return"targetId"in t&&!!t.targetId},isBookmarkCustom:function(t){const e=t;return void 0!==e.bookmarkLabel||void 0!==e.bookmarkMeta||void 0!==e.bookmarkUrl},isBookmarkRawList:H,isTVChannelType:function(t,e){return"tvChannelType"in t&&t.tvChannelType===e},objectIsType:function(t,e){return null!=e&&V[t](e)},isStandardApiError:t=>"object"==typeof t&&null!==t&&"error"in t&&"errorMsg"in t&&"messages"in t&&"number"==typeof t.error&&"string"==typeof t.errorMsg&&Array.isArray(t.messages),isAbortApiError:t=>null!==t&&"object"==typeof t&&"error"in t&&"aborted"in t&&-1===t.error&&!0===t.aborted};function Y(t,e){return t&&!t.endsWith(e)?`${t}${e}`:t}function K(t,e){return t&&t.startsWith(e)?t.split("").slice(e.length).join(""):t}function Z(t){return t.toString().padStart(2,"0")}function tt(t){return"uri"in t&&t.uri?t.uri:`${t.type}/${t.recordId}`}function et(t){return K(Y(t.from,"/"),"/")||""}function it(t){return t.timestamp?`?_=${t.timestamp}`:""}function st(t){const e=[];return"timestamp"in t&&t.timestamp&&e.push(`_=${t.timestamp}`),"iconColor"in t&&t.iconColor&&e.push(`color=${t.iconColor}`),e.length?"?"+e.join("&"):""}function rt(t,e=2){return"size"in t&&t.size?t.size:"width"in t&&t.width&&"height"in t&&t.height?`${t.width*e}x${t.height*e}`:""}function nt(t){return t.format||"png"}function ot(t){try{return new URL(t)}catch(t){}try{return new URL(window.location.origin+"/"+K(t,"/"))}catch(t){}}function at(t,e=2){if("url"in t&&t.url){const e=ot(t.url);if(e)return"timestamp"in t&&t.timestamp&&!e.searchParams.has("_")&&e.searchParams.append("_",t.timestamp.toString()),e.toString()}return`/${et(t)}${rt(t,e)}/${tt(t)}.${nt(t)}${st(t)}`}const ct=["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pdf","application/zip","application/illustrator","application/postscript","application/vnd.ms-opentype","application/x-font-ttf","application/octet-stream","audio/mp3","audio/mpeg","font/ttf","font/otf","image/jpeg","image/jpg","image/png","image/gif","image/vnd.adobe.photoshop","image/svg+xml","text/plain","text/csv","video/mp4","video/webm"],ut=["docx","xlsx","csv","pptx","pdf","zip","ai","mp3","mpeg","ttf","otf","jpg","jpeg","png","gif","psd","svg","txt","mp4","odt","webm"],pt={"application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","application/vnd.oasis.opendocument.text":"odt","application/pdf":"pdf","application/zip":"zip","application/x-zip-compressed":"zip","application/illustrator":"ai","application/postscript":"ai","audio/mp3":"mp3","audio/mpeg":"mpeg","font/ttf":"ttf","font/otf":"otf","image/jpeg":"jpeg","image/jpg":"jpg","image/png":"png","image/gif":"gif","application/x-font-ttf":"ttf","application/vnd.ms-opentype":"otf","image/vnd.adobe.photoshop":"psd","image/svg+xml":"svg","text/plain":"txt","text/csv":"xlsx","video/mp4":"mp4","video/webm":"mp4"},lt=t=>Object.keys(pt).find((e=>pt[e]===t)),ft=t=>{var e;return null!==(e=pt[t])&&void 0!==e?e:void 0};function dt(t){const e=String(t).split(".").pop();return ut.find((t=>t===e))}const mt=t=>{var e;const i=dt(t);return null!==(e=lt(i))&&void 0!==e?e:"application/octet-stream"},ht=t=>t?(new Date(t).getTime()/1e3).toFixed(0):void 0,gt=(t,e="fitx80")=>{const i=jt(t),s=ht(t.dateModified);switch(i){default:return;case"video":return`/media/${t.id}.mp4?stream=true`+(s?`&_=${s}`:"");case"audio":return`/media/${t.id}.mp3`+(s?`?_=${s}`:"");case"gif":return at({timestamp:s,size:e,from:"imagecache",uri:t.uri,format:"gif"});case"image":return at({timestamp:s,size:e,from:"imagecache",uri:t.uri})}},wt=t=>{const e=dt(t);return void 0!==e?yt(lt(e)):"application"},kt=t=>-1!==["image/vnd","image/svg","image/heic"].findIndex((e=>t.startsWith(e)));function yt(t){return t&&t.startsWith("folder/")?"folder":null==t||kt(t)?"application":t.startsWith("image/gif")?"gif":t.startsWith("image/")?"image":t.startsWith("video/")?"video":t.startsWith("audio/")?"audio":t.startsWith("font/")||t.startsWith("application/x-font-ttf")||t.startsWith("application/vnd.ms-opentype")?"font":t.startsWith("text/")?"text":"application"}const bt=(t,e,i="rr")=>"ng"===i?`/ng/file/${t}/${e}`:`/ng/rr/file/${t}/${e}`,vt=t=>void 0===t.mimetype||"application/octet-stream"===t.mimetype?mt(t.title):t.mimetype,jt=t=>void 0===t.mimetype||"application/octet-stream"===t.mimetype?wt(t.title):yt(t.mimetype),Ot=Array.isArray,At=Object.keys,St=Object.prototype.hasOwnProperty;function xt(t,e,i){const s=null==i?void 0:i.map((t=>t.split(".")));if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){const r=Ot(t),n=Ot(e);let o,a,c;if(r&&n){if(a=t.length,a!==e.length)return!1;for(o=a;0!=o--;)if(!xt(t[o],e[o],i))return!1;return!0}if(r!==n)return!1;const u=t instanceof Date,p=e instanceof Date;if(u!==p)return!1;if(u&&p)return t.getTime()===e.getTime();const l=t instanceof RegExp,f=e instanceof RegExp;if(l!==f)return!1;if(l&&f)return t.toString()===e.toString();const d=At(t).filter((t=>!(null==s?void 0:s.some((e=>1===e.length&&e[0]===t)))));if(a=d.length,a!==At(e).filter((t=>!(null==s?void 0:s.some((e=>1===e.length&&e[0]===t))))).length)return!1;for(o=a;0!=o--;)if(!St.call(e,d[o]))return!1;for(o=a;0!=o--;)if(c=d[o],!("_owner"===c&&t.$$typeof||xt(t[c],e[c],null==s?void 0:s.filter((t=>t.length>1&&t[0]===c)).map((t=>t.splice(1).join("."))))))return!1;return!0}return t!=t&&e!=e}function Ct(t,e){if(Array.isArray(t))return t.map((t=>Ct(t,e)));if("object"==typeof t&&null!==t){let i={};return Object.keys(t).forEach((s=>{i=Object.assign(Object.assign({},i),{[s]:s&&e.includes(s)?typeof t[s]:Ct(t[s],e)})})),i}return t}function Ft(t){return t.startsWith("tag_")||"tags"===t}function Lt(t){return Object.fromEntries(Object.entries(t).filter((([t])=>Ft(t))))}function Rt(t,e,i){return Object.fromEntries(Object.entries(t).filter((([t])=>Ft(t))).map((([t,s])=>{const r=Array.isArray(s)?s.map((t=>"object"==typeof t&&t&&e in t?t[e]:t)):s;return[t,i?i(r):r]})))}function _t(t){return Rt(t,"uri")}const Tt=t=>{var e;let i={};"_errors"in t&&(i._errors=t._errors),"_options"in t&&(i._options=t._options),"title"in t&&(i.title=t.title),"description"in t&&(i.description=t.description),"activity"in t&&(i.activity=t.activity),"image"in t&&(i.image=t.image),"uri"in t&&(i.uri=t.uri),"type"in t&&(i.type=t.type),"edito"in t&&(i.edito=t.edito),"category"in t&&(i.category=t.category.toString()),"commentLevel"in t&&(i.commentLevel=t.commentLevel),"_options"in t&&(null===(e=t._options)||void 0===e?void 0:e.custom_widgets)&&(i.custom_widgets=Array.isArray(t._options.custom_widgets)?{}:t._options.custom_widgets),"displayType"in t&&(i.displayType=t.displayType),"language"in t&&(i.language=t.language),"edit_access"in t&&(i.edit_access=t.edit_access),"lock_mail"in t&&(i.lock_mail=t.lock_mail),"fileSyncEnabled"in t&&(i.fileSyncEnabled=t.fileSyncEnabled),"fileSyncVersioningType"in t&&(i.fileSyncVersioningType=t.fileSyncVersioningType),"fileBankQuota"in t&&(i.fileBankQuota=t.fileBankQuota),"idCommunity"in t&&(i.idCommunity=t.idCommunity),"lastRssExecution"in t&&(i.lastRssExecution=t.lastRssExecution),"mail_comment"in t&&(i.mail_comment=t.mail_comment),"mail_frequency"in t&&(i.mail_frequency=t.mail_frequency),"mail_spotit"in t&&(i.mail_spotit=t.mail_spotit),"mail_subscriber"in t&&(i.mail_subscriber=t.mail_subscriber),"notifyFolder"in t&&(i.notifyFolder=t.notifyFolder),"nounsubscribe"in t&&(i.nounsubscribe=t.nounsubscribe),"privacy"in t&&(i.privacy=t.privacy),"publishFolder"in t&&(i.publishFolder=t.publishFolder),"rss_access"in t&&(i.rss_access=t.rss_access),"rss_feed"in t&&(i.rss_feed=t.rss_feed&&Array.isArray(t.rss_feed)?JSON.stringify(t.rss_feed.map((t=>{var{_user:e}=t,i=function(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(s=Object.getOwnPropertySymbols(t);r<s.length;r++)e.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(t,s[r])&&(i[s[r]]=t[s[r]])}return i}(t,["_user"]);return Object.assign(Object.assign({},i),{idUser:null==e?void 0:e.id})}))):"[]"),"rss_key"in t&&(i.rss_key=t.rss_key),"spot_right_user"in t&&(i.spot_right_user=t.spot_right_user),"spotBanner"in t&&(i.spotBanner=t.spotBanner),"spotDefaultPublishType"in t&&(i.spotDefaultPublishType=t.spotDefaultPublishType),"user_level_signup"in t&&(i.user_level_signup=t.user_level_signup),"useTeaser"in t&&(i.useTeaser=t.useTeaser),"widgets"in t&&(i.widgets=t.widgets);const s=Lt(t);if(i=Object.assign(Object.assign({},i),s),Pt(t,i))return i;throw new Error},Pt=(t,e)=>{const i=["id","mainType","dateCreation","dateModified","_url","o2apLinksSources"],s=["custom_widgets"],r=Object.keys(t),n=Object.keys(e),o=r.filter((t=>!n.includes(t)&&!i.includes(t))),a=n.filter((t=>!r.includes(t)&&!s.includes(t))),c=[...o.map((t=>"- "+t)),...a.map((t=>"+ "+t))];if(o.length>0||a.length>0)throw new Error(`prepareGroupForUpdate :: Wrong group mapping | Diff : ${JSON.stringify(c)}`);return!0},Ut=new N(new W),Et=new $(Ut);window.JamespotUserApi=Et;const Mt=Et,qt=$;module.exports=i})();
|
|
2
2
|
//# sourceMappingURL=jamespot-user-api.js.map
|