芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/cloud.pulsehost.co.uk/static/js/4914.app.7228424f027d20a30e38.min.js
/*! For license information please see 4914.app.7228424f027d20a30e38.min.js.LICENSE.txt */ (self.webpackChunkafterlogic_aurora_platform=self.webpackChunkafterlogic_aurora_platform||[]).push([[4914],{xGhG:(t,e,s)=>{"use strict";var i=s("EFhx"),o=s("Y40+");i.registerAbortRequestHandler(o.ServerModuleName,(function(t,e){switch(t.Method){case"GetContacts":return"GetContacts"===e.Method;case"GetContact":return"GetContact"===e.Method}return!1})),t.exports={send:function(t,e,s,n,r){i.send(o.ServerModuleName,t,e,s,n,r)}}},hW2p:(t,e,s)=>{"use strict";var i=s("a7T2"),o=s("xGhG"),n=s("3nom");function r(){this.oContacts={},this.oResponseHandlers={},this.aRequestedEmails=[],this.aVcardAttachments=[],this.oNewContactParams=null}r.prototype.clearInfoAboutEmail=function(t){this.oContacts[t]=void 0},r.prototype.getContactsByEmails=function(t,e){var s=[],n=[],r=Math.random().toString();i.each(t,i.bind((function(t){var e=this.oContacts[t];void 0!==e?s[t]=e:-1===i.indexOf(this.aRequestedEmails,t)&&n.push(t)}),this)),i.isFunction(e)&&e(s),n.length>0&&(this.oResponseHandlers[r]=e,this.aRequestedEmails=i.union(this.aRequestedEmails,n),o.send("GetContactsByEmails",{Storage:"all",Emails:n,HandlerId:r},this.onGetContactsByEmailsResponse,this))},r.prototype.onGetContactsByEmailsResponse=function(t,e){var s=e.Parameters,o=this.oResponseHandlers[s.HandlerId],r=t.Result,a=s.Emails,h={};r&&i.each(r,i.bind((function(t){var e=new n;e&&(e.parse(t),this.oContacts[e.email()]&&e.pgpSettingsEmpty()||(this.oContacts[e.email()]=e))}),this)),this.aRequestedEmails=i.difference(this.aRequestedEmails,a),i.each(a,i.bind((function(t){this.oContacts[t]||(this.oContacts[t]=null),h[t]=this.oContacts[t]}),this)),i.isFunction(o)&&o(h),delete this.oResponseHandlers[s.HandlerId]},r.prototype.addVcard=function(t){this.aVcardAttachments.push(t)},r.prototype.getVcard=function(t){return i.find(this.aVcardAttachments,(function(e){return e.file()===t}))},r.prototype.markVcardsExistentByFile=function(t){i.each(this.aVcardAttachments,(function(e){e.file()===t&&e.exists(!0)}))},r.prototype.updateVcardUid=function(t,e){var s=i.find(this.aVcardAttachments,(function(e){return e.file()===t}));s&&s.uid(e)},r.prototype.markVcardsNonexistentByUid=function(t){i.each(this.aVcardAttachments,(function(e){-1!==i.indexOf(t,e.uid())&&e.exists(!1)}))},r.prototype.saveNewContactParams=function(t){this.oNewContactParams=t},r.prototype.getNewContactParams=function(){var t=this.oNewContactParams;return this.oNewContactParams=null,t},t.exports=new r},"Y40+":(t,e,s)=>{"use strict";var i=s("a7T2"),o=s("KC/L"),n=s("H20a");t.exports={ServerModuleName:"Contacts",HashModuleName:"contacts",ContactsPerPage:20,ImportContactsLink:"",AddressBooks:[],Storages:[],DefaultStorage:"personal",AllowAddressBooksManagement:!1,ContactsSortBy:{},ImportExportFormats:[],SaveVcfServerModuleName:"",init:function(t){var e=t[this.ServerModuleName];if(!i.isEmpty(e)){this.ContactsPerPage=o.pPositiveInt(e.ContactsPerPage,this.ContactsPerPage),this.ImportContactsLink=o.pString(e.ImportContactsLink,this.ImportContactsLink);var s=o.pArray(e.Storages,this.Storages);this.AddressBooks=i.filter(s,(function(t){return void 0!==t.CTag})),this.Storages=s,this.Storages.length>0&&(this.Storages.push({Id:"all",DisplayName:n.i18n("CONTACTSWEBCLIENT/LABEL_STORAGE_ALL")}),this.Storages.push({Id:"group"})),this.AllowAddressBooksManagement=o.pBool(e.AllowAddressBooksManagement,this.AllowAddressBooksManagement),this.ImportExportFormats=o.pArray(e.ImportExportFormats,this.ImportExportFormats),this.SaveVcfServerModuleName=o.pString(e.SaveVcfServerModuleName,this.SaveVcfServerModuleName),this.ContactsSortBy=this.getSortConfig(o.pObject(e.ContactsSortBy))}},update:function(t){this.ContactsPerPage=t},getSortConfig:function(t){return{Allow:o.pBool(t?.Allow),DisplayOptions:t?.DisplayOptions||[],DefaultSortBy:o.pEnum(Enums.ContactSortField[t?.DefaultSortBy],Enums.ContactSortField,Enums.ContactSortField.Name),DefaultSortOrder:o.pEnum(Enums.SortOrder[t?.DefaultSortOrder],Enums.SortOrder,Enums.SortOrder.Desc)}}}},Dj8t:(t,e,s)=>{"use strict";var i=s("p09A"),o=s("kG5I"),n=s("KC/L"),r=s("Y40+"),a=s("TdEd");function h(){this.bIsGroup=!1,this.bIsOrganization=!1,this.bReadOnly=!1,this.bItsMe=!1,this.bTeam=!1,this.sUUID="",this.sName="",this.sEmail="",this.bSharedToAll=!1,this.aEmails=[],this.deleted=i.observable(!1),this.checked=i.observable(!1),this.selected=i.observable(!1),this.recivedAnim=i.observable(!1).extend({autoResetToFalse:500}),this.sStorage=r.DefaultStorage,this.isOpenPgpEnabled=a.isModuleIncluded("OpenPgpWebclient"),this.HasPgpPublicKey=i.observable(!1)}h.prototype.parse=function(t){this.sUUID=n.pString(t.UUID),this.sName=n.pString(t.FullName||t.Name),this.sEmail=n.pString(t.ViewEmail),n.isNonEmptyArray(t.Emails)&&(this.aEmails=t.Emails),this.bIsGroup=!!t.IsGroup,this.bIsOrganization=!!t.IsOrganization,this.bReadOnly=!!t.ReadOnly,this.bItsMe=!!t.ItsMe,this.bTeam=!!t.IsTeam,this.bSharedToAll="shared"===t.Storage,this.sStorage=t.Storage,this.HasPgpPublicKey(!!t.HasPgpPublicKey)},h.prototype.IsGroup=function(){return this.bIsGroup},h.prototype.Team=function(){return this.bTeam},h.prototype.ReadOnly=function(){return this.bReadOnly},h.prototype.ItsMe=function(){return this.bItsMe},h.prototype.UUID=function(){return this.sUUID},h.prototype.Name=function(){return this.sName},h.prototype.Email=function(){return this.sEmail},h.prototype.getFullEmail=function(){return o.getFullEmail(this.sName,this.sEmail)},h.prototype.IsSharedToAll=function(){return this.bSharedToAll},h.prototype.IsOrganization=function(){return this.bIsOrganization},t.exports=h},"3nom":(t,e,s)=>{"use strict";var i=s("a7T2"),o=s("M4cL"),n=s("p09A"),r=s("sdEb"),a=s("kG5I"),h=s("injE"),c=s("H20a"),l=s("KC/L"),u=s("xGhG"),p=s("/QeJ"),d=s("9kOp"),m=s("REt5"),b=s("jNBr"),C=s("Y40+"),g=s("TdEd");function y(){this.sEmailDefaultType=Enums.ContactsPrimaryEmail.Personal,this.sPhoneDefaultType=Enums.ContactsPrimaryPhone.Mobile,this.sAddressDefaultType=Enums.ContactsPrimaryAddress.Personal,this.uuid=n.observable(""),this.idUser=n.observable(0),this.team=n.observable(!1),this.itsMe=n.observable(!1),this.storage=n.observable("personal"),this.isNew=n.observable(!1),this.readOnly=n.observable(!1),this.edited=n.observable(!1),this.extented=n.observable(!1),this.personalCollapsed=n.observable(!1),this.businessCollapsed=n.observable(!1),this.otherCollapsed=n.observable(!1),this.pgpSettingsCollapsed=n.observable(!1),this.groupsCollapsed=n.observable(!1),this.displayName=n.observable(""),this.firstName=n.observable(""),this.lastName=n.observable(""),this.nickName=n.observable(""),this.skype=n.observable(""),this.facebook=n.observable(""),this.displayNameFocused=n.observable(!1),this.primaryEmail=n.observable(this.sEmailDefaultType),this.primaryPhone=n.observable(this.sPhoneDefaultType),this.primaryAddress=n.observable(this.sAddressDefaultType),this.mainPrimaryEmail=n.computed({read:this.primaryEmail,write:function(t){t&&0<=o.inArray(t,[Enums.ContactsPrimaryEmail.Personal,Enums.ContactsPrimaryEmail.Business,Enums.ContactsPrimaryEmail.Other])?this.primaryEmail(t):this.primaryEmail(Enums.ContactsPrimaryEmail.Personal)},owner:this}),this.mainPrimaryPhone=n.computed({read:this.primaryPhone,write:function(t){t&&0<=o.inArray(t,[Enums.ContactsPrimaryPhone.Mobile,Enums.ContactsPrimaryPhone.Personal,Enums.ContactsPrimaryPhone.Business])?this.primaryPhone(t):this.primaryPhone(Enums.ContactsPrimaryPhone.Mobile)},owner:this}),this.mainPrimaryAddress=n.computed({read:this.primaryAddress,write:function(t){t&&0<=o.inArray(t,[Enums.ContactsPrimaryAddress.Personal,Enums.ContactsPrimaryAddress.Business])?this.primaryAddress(t):this.primaryAddress(Enums.ContactsPrimaryAddress.Personal)},owner:this}),this.personalEmail=n.observable(""),this.personalStreetAddress=n.observable(""),this.personalCity=n.observable(""),this.personalState=n.observable(""),this.personalZipCode=n.observable(""),this.personalCountry=n.observable(""),this.personalWeb=n.observable(""),this.personalFax=n.observable(""),this.personalPhone=n.observable(""),this.personalMobile=n.observable(""),this.businessEmail=n.observable(""),this.businessCompany=n.observable(""),this.businessDepartment=n.observable(""),this.businessJob=n.observable(""),this.businessOffice=n.observable(""),this.businessStreetAddress=n.observable(""),this.businessCity=n.observable(""),this.businessState=n.observable(""),this.businessZipCode=n.observable(""),this.businessCountry=n.observable(""),this.businessWeb=n.observable(""),this.businessFax=n.observable(""),this.businessPhone=n.observable(""),this.otherEmail=n.observable(""),this.otherBirthMonth=n.observable(0),this.otherBirthDay=n.observable(0),this.otherBirthYear=n.observable(0),this.otherNotes=n.observable(""),this.etag=n.observable(""),this.isOpenPgpEnabled=g.isModuleIncluded("OpenPgpWebclient"),this.isOpenPgpInMailEnabled=g.run("OpenPgpWebclient","getOpenPgpInMailEnabledObservable")||n.observable(!1),this.publicPgpKeyView=n.observable(""),this.publicPgpKey=n.observable(""),this.pgpEncryptMessages=n.observable(!1),this.pgpSignMessages=n.observable(!1),this.publicPgpKey.subscribe((function(t){""!==t?g.run("OpenPgpWebclient","getKeyInfo",[t,function(t){t?this.publicPgpKeyView(t.getUser()+" ("+t.getBitSize()+"-bit)"):this.publicPgpKeyView("")}.bind(this)]):this.publicPgpKeyView("")}),this),this.sharedToAll=n.observable(!1),this.birthdayIsEmpty=n.computed((function(){var t=0===this.otherBirthMonth(),e=0===this.otherBirthDay(),s=0===this.otherBirthYear();return t||e||s}),this),this.otherBirthday=n.computed((function(){var t="",e=this.otherBirthYear(),s=this.otherBirthMonth(),i=this.otherBirthDay(),o=new b;if(!this.birthdayIsEmpty()){var n=r().diff(r(e+"/"+s+"/"+i,"YYYY/MM/DD"),"years"),a=c.i18n("CONTACTSWEBCLIENT/LABEL_YEARS_PLURAL",{COUNT:n},null,n);o.setDate(e,0
=s;e--)this.birthYearSelect.push({text:e.toString(),value:e});this.canBeSave=n.computed((function(){return""!==this.displayName()||!!this.emails().length}),this),this.customCommands=n.observableArray([]),d.broadcastEvent("ContactsWebclient::AddCustomCommand",{Callback:i.bind((function(t){var e=i.extend({Text:"",CssClass:"",Handler:function(){},Visible:!0},t);e.Command=m.createCommand(this,e.Handler,!0),this.customCommands.push(e)}),this),Contact:this})}function S(t,e,s){const i=d.getUserId();return s?!!t[`${e}_${i}`]:!!t[e]}y.aBirthdayMonths=h.getMonthNamesArray(),y.birthMonthSelect=[{text:c.i18n("COREWEBCLIENT/LABEL_MONTH"),value:0},{text:y.aBirthdayMonths[0],value:1},{text:y.aBirthdayMonths[1],value:2},{text:y.aBirthdayMonths[2],value:3},{text:y.aBirthdayMonths[3],value:4},{text:y.aBirthdayMonths[4],value:5},{text:y.aBirthdayMonths[5],value:6},{text:y.aBirthdayMonths[6],value:7},{text:y.aBirthdayMonths[7],value:8},{text:y.aBirthdayMonths[8],value:9},{text:y.aBirthdayMonths[9],value:10},{text:y.aBirthdayMonths[10],value:11},{text:y.aBirthdayMonths[11],value:12}],y.prototype.clear=function(){this.uuid(""),this.idUser(0),this.team(!1),this.itsMe(!1),this.storage(""),this.isNew(!1),this.readOnly(!1),this.edited(!1),this.extented(!1),this.personalCollapsed(!1),this.businessCollapsed(!1),this.otherCollapsed(!1),this.pgpSettingsCollapsed(!1),this.groupsCollapsed(!1),this.displayName(""),this.firstName(""),this.lastName(""),this.nickName(""),this.skype(""),this.facebook(""),this.displayNameFocused(!1),this.primaryEmail(this.sEmailDefaultType),this.primaryPhone(this.sPhoneDefaultType),this.primaryAddress(this.sAddressDefaultType),this.personalEmail(""),this.personalStreetAddress(""),this.personalCity(""),this.personalState(""),this.personalZipCode(""),this.personalCountry(""),this.personalWeb(""),this.personalFax(""),this.personalPhone(""),this.personalMobile(""),this.businessEmail(""),this.businessCompany(""),this.businessDepartment(""),this.businessJob(""),this.businessOffice(""),this.businessStreetAddress(""),this.businessCity(""),this.businessState(""),this.businessZipCode(""),this.businessCountry(""),this.businessWeb(""),this.businessFax(""),this.businessPhone(""),this.otherEmail(""),this.otherBirthMonth(0),this.otherBirthDay(0),this.otherBirthYear(0),this.otherNotes(""),this.etag(""),this.publicPgpKeyView(""),this.publicPgpKey(""),this.pgpEncryptMessages(!1),this.pgpSignMessages(!1),this.sharedToAll(!1),this.groups([])},y.prototype.switchToNew=function(){this.clear(),this.edited(!0),this.extented(!1),this.isNew(!0),d.isMobile()||this.displayNameFocused(!0)},y.prototype.switchToView=function(){this.edited(!1),this.extented(!1)},y.prototype.toObject=function(){return{UUID:this.uuid(),PrimaryEmail:this.primaryEmail(),PrimaryPhone:this.primaryPhone(),PrimaryAddress:this.primaryAddress(),FullName:this.displayName(),FirstName:this.firstName(),LastName:this.lastName(),NickName:this.nickName(),Storage:this.storage(),Skype:this.skype(),Facebook:this.facebook(),PersonalEmail:this.personalEmail(),PersonalAddress:this.personalStreetAddress(),PersonalCity:this.personalCity(),PersonalState:this.personalState(),PersonalZip:this.personalZipCode(),PersonalCountry:this.personalCountry(),PersonalWeb:this.personalWeb(),PersonalFax:this.personalFax(),PersonalPhone:this.personalPhone(),PersonalMobile:this.personalMobile(),BusinessEmail:this.businessEmail(),BusinessCompany:this.businessCompany(),BusinessJobTitle:this.businessJob(),BusinessDepartment:this.businessDepartment(),BusinessOffice:this.businessOffice(),BusinessAddress:this.businessStreetAddress(),BusinessCity:this.businessCity(),BusinessState:this.businessState(),BusinessZip:this.businessZipCode(),BusinessCountry:this.businessCountry(),BusinessFax:this.businessFax(),BusinessPhone:this.businessPhone(),BusinessWeb:this.businessWeb(),OtherEmail:this.otherEmail(),Notes:this.otherNotes(),ETag:this.etag(),BirthDay:this.otherBirthDay(),BirthMonth:this.otherBirthMonth(),BirthYear:this.otherBirthYear(),PublicPgpKey:this.publicPgpKey(),PgpEncryptMessages:this.pgpEncryptMessages(),PgpSignMessages:this.pgpSignMessages(),GroupUUIDs:this.groups()}},y.prototype.parse=function(t){this.uuid(l.pString(t.UUID)),this.idUser(l.pInt(t.IdUser)),this.team("team"===t.Storage),this.storage(l.pString(t.Storage)),this.itsMe(!!t.ItsMe),this.readOnly(!!t.ReadOnly),this.displayName(l.pString(t.FullName)),this.firstName(l.pString(t.FirstName)),this.lastName(l.pString(t.LastName)),this.nickName(l.pString(t.NickName)),this.skype(l.pString(t.Skype)),this.facebook(l.pString(t.Facebook)),this.primaryEmail(l.pInt(t.PrimaryEmail)),this.primaryPhone(l.pInt(t.PrimaryPhone)),this.primaryAddress(l.pInt(t.PrimaryAddress)),this.personalEmail(l.pString(t.PersonalEmail)),this.personalStreetAddress(l.pString(t.PersonalAddress)),this.personalCity(l.pString(t.PersonalCity)),this.personalState(l.pString(t.PersonalState)),this.personalZipCode(l.pString(t.PersonalZip)),this.personalCountry(l.pString(t.PersonalCountry)),this.personalWeb(l.pString(t.PersonalWeb)),this.personalFax(l.pString(t.PersonalFax)),this.personalPhone(l.pString(t.PersonalPhone)),this.personalMobile(l.pString(t.PersonalMobile)),this.businessEmail(l.pString(t.BusinessEmail)),this.businessCompany(l.pString(t.BusinessCompany)),this.businessDepartment(l.pString(t.BusinessDepartment)),this.businessJob(l.pString(t.BusinessJobTitle)),this.businessOffice(l.pString(t.BusinessOffice)),this.businessStreetAddress(l.pString(t.BusinessAddress)),this.businessCity(l.pString(t.BusinessCity)),this.businessState(l.pString(t.BusinessState)),this.businessZipCode(l.pString(t.BusinessZip)),this.businessCountry(l.pString(t.BusinessCountry)),this.businessWeb(l.pString(t.BusinessWeb)),this.businessFax(l.pString(t.BusinessFax)),this.businessPhone(l.pString(t.BusinessPhone)),this.otherEmail(l.pString(t.OtherEmail)),this.otherBirthMonth(l.pInt(t.BirthMonth)),this.otherBirthDay(l.pInt(t.BirthDay)),this.otherBirthYear(l.pInt(t.BirthYear)),this.otherNotes(l.pString(t.Notes)),this.etag(l.pString(t.ETag)),this.publicPgpKey(l.pString(t["OpenPgpWebclient::PgpKey"])),this.pgpEncryptMessages(S(t,"OpenPgpWebclient::PgpEncryptMessages",this.team())),this.pgpSignMessages(S(t,"OpenPgpWebclient::PgpSignMessages",this.team())),this.sharedToAll("shared"===t.Storage),i.isArray(t.GroupUUIDs)&&this.groups(t.GroupUUIDs)},y.prototype.getFullEmail=function(t){return l.isNonEmptyString(t)||(t=this.email()),a.getFullEmail(this.displayName(),t)},y.prototype.getEmailsString=function(){return i.uniq(i.without([this.email(),this.personalEmail(),this.businessEmail(),this.otherEmail()],"")).join(",")},y.prototype.sendThisContact=function(){var t=s("TdEd").run("MailWebclient","getComposeMessageWithAttachments"),e={UUID:this.uuid(),FileName:"contact-"+this.getFullEmail().replace('"',"").replace("<","").replace(">","")+".vcf"};u.send("SaveContactAsTempFile",e,(function(e){e.Result?i.isFunction(t)&&t([e.Result]):p.showErrorByCode(e,c.i18n("CONTACTSWEBCLIENT/ERROR_CONTACT_AS_TEMPFAILE"))}),this)},y.prototype.isStrLink=function(t){return/^http/.test(t)},t.exports=y},E3U2:(t,e,s)=>{"use strict";var i=s("p09A"),o=s("kG5I"),n=s("H20a"),r=s("9kOp");function a(){this.isNew=i.observable(!1),this.readOnly=i.observable(!1),this.uuid=i.observable(""),this.idUser=i.observable(0),this.name=i.observable(""),this.isOrganization=i.observable(!1),this.email=i.observable(""),this.country=i.observable(""),this.city=i.observable(""),this.company=i.observable(""),this.fax=i.observable(""),this.phone=i.observable(""),this.state=i.observable(""),this.street=i.observable(""),this.web=i.observable(""),this.zip=i.observable(""),this.edited=i.observable(!1),this.nameFocused=i.observable(!1),this.canBeSave=i.computed((function(){return""!==this.name()}),this),this.newContactsInGroupCount=i.observable(0),this.newContactsInGroupHint=i.computed((function(){var t=this.newContactsInGroupCount();return this.isNew()&&0
{"use strict";var i=s("KC/L"),o=s("Y40+"),n={};function r(t){return"p"===t.substr(0,1)&&/^[1-9][\d]*$/.test(t.substr(1))}function a(t){return"cnt"===t.substr(0,3)}n.checkStorageExists=function(t){return!!o.Storages.find((e=>e.Id===t))},n.getContacts=function(t,e,s,n,r,a){var h=[o.HashModuleName];return t&&""!==t&&h.push(t),e&&""!==e&&h.push(e),s&&""!==s&&h.push(s),i.isNumber(n)&&h.push("p"+n),r&&""!==r&&h.push("cnt"+r),a&&""!==a&&h.push(a),h},n.parseContacts=function(t){var e=0,s=o.DefaultStorage,n="",h="",c=1,l="",u="";return i.isNonEmptyArray(t)&&(s=i.pString(t[e]),e++,o.Storages.find((t=>t.Id===s))||(s=o.DefaultStorage),"group"===s&&(t.length>e?(n=i.pString(t[e]),e++):s=o.DefaultStorage),t.length>e&&!r(t[e])&&!a(t[e])&&(h=i.pString(t[e]),e++),t.length>e&&r(t[e])&&(c=i.pInt(t[e].substr(1)),e++,c<=0&&(c=1)),t.length>e&&(a(t[e])?l=i.pString(t[e].substr(3)):u=i.pString(t[e]),e++)),{Storage:s,GroupUUID:n,Search:h,Page:c,ContactUUID:l,Action:u}},t.exports=n},iiou:(t,e,s)=>{"use strict";var i=s("a7T2"),o=s("M4cL"),n=s("p09A"),r=s("Cox/"),a=s("H20a"),h=s("KC/L"),c=s("REt5"),l=s("/QeJ"),u=s("9kOp"),p=s("EFhx"),d=s("qBBW"),m=s("vdUg"),b=s("TdEd"),C=s("W66n"),g=s("skxT"),y=s("doeu"),S=s("yKBN"),f=s("oUN1"),E=s("XeMN"),v=s("rHGs"),P=s("xGhG"),I=s("hW2p"),A=s("Y40+"),U=s("Dj8t"),T=s("3nom"),w=s("E3U2"),D=s("7NIm"),O=window.Enums;function k(){y.call(this,"ContactsWebclient"),this.shareAddressbookControlView=b.run("SharedContacts","getShareAddressbookControlView"),this.browserTitle=n.observable(a.i18n("CONTACTSWEBCLIENT/HEADING_BROWSER_TAB")),this.contactCount=n.observable(0),this.uploaderArea=n.observable(null),this.dragActive=n.observable(!1),this.bDragActiveComp=n.computed((function(){return this.dragActive()}),this),this.sImportContactsLink=A.ImportContactsLink,this.loadingList=n.observable(!1),this.preLoadingList=n.observable(!1),this.loadingList.subscribe((function(t){this.preLoadingList(t)}),this),this.loadingViewPane=n.observable(!1),this.showPersonalContacts=n.observable(!1),this.showTeamContacts=n.observable(!1),this.showSharedToAllContacts=n.observable(!1),this.showAllContacts=n.computed((function(){return 1<[this.showPersonalContacts()?"1":"",this.showTeamContacts()?"1":"",this.showSharedToAllContacts()?"1":""].join("").length}),this),this.recivedAnimPersonal=n.observable(!1).extend({autoResetToFalse:500}),this.recivedAnimShared=n.observable(!1).extend({autoResetToFalse:500}),this.recivedAnimTeam=n.observable(!1).extend({autoResetToFalse:500}),this.isAddressBookSelected=n.observable(!1),this.isSelectedAddressbookSharedForReading=n.observable(!1),this.isTeamStorageSelected=n.observable(!1),this.isCustomAddressBookSelected=n.observable(!1),this.disableDropToPersonal=n.observable(!1),this.disableDropToSharedWithAll=n.observable(!1),this.disableDropToCustomAddressBook=n.observable(!1),this.selectedStorageValue=n.observable(""),this.selectedStorage=n.computed({read:function(){return this.selectedStorageValue()},write:function(t){if(""!==t){this.selectedStorageValue(v.checkStorageExists(t)?t:A.DefaultStorage),"group"!==this.selectedStorageValue()&&(this.selectedGroupInList(null),this.selectedItem(null),this.selector.listCheckedOrSelected(!1),this.currentGroupUUID(""));const e=this.addressBooks().find((t=>t.Id===this.selectedStorageValue()));this.isAddressBookSelected(!!e),this.isSelectedAddressbookSharedForReading(e&&e.Shared&&e.Access===O.SharedAddressbookAccess.Read);const s=this.selectedStorageValue().split("-");this.isCustomAddressBookSelected(s.length>0&&"addressbook"===s[0]),this.isTeamStorageSelected("team"===this.selectedStorageValue()),this.disableDropToPersonal("team"===this.selectedStorageValue()),this.disableDropToSharedWithAll("team"===this.selectedStorageValue()),this.disableDropToCustomAddressBook("team"===this.selectedStorageValue())}},owner:this}),this.addressBooks=n.observable(A.AddressBooks),u.subscribeEvent("ReceiveAjaxResponse::after",function(t){if("Contacts"===t.Request.Module&&"GetStorages"===t.Request.Method&&i.isArray(t.Response&&t.Response.Result)){this.addressBooks(t.Response.Result);var e=i.filter(A.Storages,(t=>void 0===t.Display));A.Storages=e.concat(this.addressBooks())}}.bind(this)),this.manageAddressBooksHash=n.computed((function(){return b.isModuleEnabled("SettingsWebclient")&&A.AllowAddressBooksManagement?C.buildHashFromArray(["settings","manage-addressbooks"]):"#"}),this),this.selectedGroupInList=n.observable(null),this.selectedGroupInList.subscribe((function(){var t=this.selectedGroupInList();t&&t.selected(!1)}),this,"beforeChange"),this.selectedGroupInList.subscribe((function(t){t&&this.showPersonalContacts()&&(t.selected(!0),this.selectedStorage("group"),this.requestContactList())}),this),this.selectedGroup=n.observable(null),this.selectedContact=n.observable(null),this.selectedGroupEmails=n.observableArray([]),this.currentGroupUUID=n.observable(""),this.oContactModel=new T,this.oGroupModel=new w,this.oImportView=new D(this),this.selectedOldItem=n.observable(null),this.selectedItem=n.computed({read:function(){return this.selectedContact()||this.selectedGroup()||null},write:function(t){t instanceof T?(this.selectedGroup(null),this.selectedContact(t)):t instanceof w?(this.selectedContact(null),this.selectedGroup(t),this.currentGroupUUID(t.uuid())):(this.selectedGroup(null),this.selectedContact(null)),this.loadingViewPane(!1)},owner:this}),this.collection=n.observableArray([]),this.contactUidForRequest=n.observable(""),this.collection.subscribe((function(){this.collection().length>0&&""!==this.contactUidForRequest()&&(this.requestContact(this.contactUidForRequest()),this.contactUidForRequest(""))}),this),this.bSortEnabled=A.ContactsSortBy&&A.ContactsSortBy.Allow&&A.ContactsSortBy.DisplayOptions&&A.ContactsSortBy.DisplayOptions.length>0,this.sortBy=n.observable(A.ContactsSortBy.DefaultSortBy),this.sortOrder=n.observable(A.ContactsSortBy.DefaultSortOrder),this.aSortList=[],this.bSortEnabled&&i.each(O.ContactSortField,function(t,e){A.ContactsSortBy.DisplayOptions.indexOf(e)>=0&&this.aSortList.push({sText:a.i18n("CONTACTSWEBCLIENT/SORT_OPTION_"+e.toUpperCase()),sSortBy:t})}.bind(this)),this.isSearchFocused=n.observable(!1),this.searchInput=n.observable(""),this.search=n.observable(""),this.groupUidForRequest=n.observable(""),this.groupFullCollection=n.observableArray([]),this.groupFullCollection.subscribe((function(){this.groupUidForRequest()&&this.onViewGroupClick(this.groupUidForRequest())}),this),this.selectedContact.subscribe((function(t){if(t){var e=t.groups();i.each(this.groupFullCollection(),(function(t){t.checked(t&&0<=o.inArray(t.UUID(),e))}))}}),this),this.pageSwitcherLocked=n.observable(!1),this.oPageSwitcher=new S(0,A.ContactsPerPage),this.oPageSwitcher.currentPage.subscribe((function(){this.pageSwitcherLocked()||this.changeRouting()}),this),this.currentPage=n.observable(1),this.search.subscribe((function(t){this.searchInput(t)}),this),this.searchSubmitCommand=c.createCommand(this,(function(){this.changeRouting({Search:this.searchInput()})})),this.searchMessagesInInbox=b.run("MailWebclient","getSearchMessagesInInbox"),this.bAllowSearchMessagesInInbox=i.isFunction(this.searchMessagesInInbox),this.composeMessageToAddresses=b.run("MailWebclient","getComposeMessageToAddresses"),this.bAllowComposeMessageToAddresses=i.isFunction(this.composeMessageToAddresses),this.selector=new m(this.collection,i.bind(this.viewContact,this),i.bind(this.deleteContact,this),this.bAllowComposeMessageToAddresses?i.bind(this.composeMessageToContact,this):null),this.checkAll=this.selector.koCheckAll(),this.checkAllIncomplite=this.selector.koCheckAllIncomplete(),this.isCheckedOrSelected=n.computed((function(){return 0
!this.isSaving())),this.updateSharedToAllCommand=c.createCommand(this,this.executeUpdateSharedToAll,this.isExactlyOneContactSelected),this.composeMessageCommand=c.createCommand(this,this.composeMessage,this.isCheckedOrSelected),this.selector.listCheckedOrSelected.subscribe((function(t){this.oGroupModel.newContactsInGroupCount(t.length)}),this),this.isSearch=n.computed((function(){return""!==this.search()}),this),this.isEmptyList=n.computed((function(){return 0===this.collection().length}),this),this.searchText=n.computed((function(){return a.i18n("CONTACTSWEBCLIENT/INFO_SEARCH_RESULT",{SEARCH:this.search()})}),this),this.visibleDragNDropToGroupText=n.computed((function(){return!u.isMobile()&&"group"===this.selectedStorage()}),this),this.selectedPanel=n.observable(O.MobilePanel.Items),this.enableExport=n.computed((function(){return this.contactCount()>0}),this),this.aExportData=[],i.each(A.ImportExportFormats,(function(t){h.isNonEmptyString(t)&&this.aExportData.push({css:t.toLowerCase(),text:a.i18n("CONTACTSWEBCLIENT/ACTION_EXPORT_AS",{FORMAT:t.toUpperCase()}),command:c.createCommand(this,(function(){this.executeExport(t)}),this.enableExport)})}),this),this.visibleCreateOrImportText=n.computed((function(){return"all"!==this.selectedStorage()&&"shared"!==this.selectedStorage()&&"team"!==this.selectedStorage()&&"group"!==this.selectedStorage()}),this),this.visibleImportExport=n.computed((function(){return this.aExportData.length>0}),this),this.infoCreateOrImport=this.getCreateOrImportInfo(),this.listChanged=n.computed((function(){return[this.selectedStorage(),this.currentGroupUUID(),this.search(),this.oPageSwitcher.currentPage(),this.oPageSwitcher.perPage()]}),this),this.bRefreshContactList=!1,this.oPgpKeyControlsView=b.run("OpenPgpWebclient","getPgpKeyControlsView",[()=>{if(this.selectedContact()&&this.selectedContact().edited()){this.selectedContact().publicPgpKey("");const t=this.collection().find((t=>t.UUID()===this.selectedContact().uuid()));t&&t.HasPgpPublicKey(!1)}else this.onUpdateContactResponse({Result:!0})}]),u.broadcastEvent("ContactsWebclient::ConstructView::after",{Name:this.ViewConstructorName,View:this})}i.extendOwn(k.prototype,y.prototype),k.prototype.ViewTemplate="ContactsWebclient_ContactsScreenView",k.prototype.ViewConstructorName="CContactsView",k.prototype.executeSort=function(t){const e=this.sortBy();this.sortBy(t),e===t?this.sortOrder(this.sortOrder()===O.SortOrder.Asc?O.SortOrder.Desc:O.SortOrder.Asc):this.sortOrder(A.ContactsSortBy.DefaultSortOrder),this.requestContactList()},k.prototype.getFormatDependentText=function(t){switch(A.ImportExportFormats.length){case 0:return"";case 1:return a.i18n("CONTACTSWEBCLIENT/"+t+"_SINGLE_EXT",{EXTENSION:A.ImportExportFormats[0].toUpperCase()});default:return a.i18n("CONTACTSWEBCLIENT/"+t+"_PLURAL_EXT",{EXTENSIONS:i.initial(A.ImportExportFormats).join(", ").toUpperCase(),LASTEXTENSION:i.last(A.ImportExportFormats).toUpperCase()})}},k.prototype.getCreateOrImportInfo=function(){var t=this.getFormatDependentText("INFO_OR_IMPORT");return a.i18n("CONTACTSWEBCLIENT/INFO_CREATE")+(""===t?"":" "+t)+"."},k.prototype.executeSaveEncryptSignFlags=function(t){if(t instanceof T){const e={UUID:t.uuid(),PgpEncryptMessages:t.pgpEncryptMessages(),PgpSignMessages:t.pgpSignMessages()};this.isSaving(!0),p.send("OpenPgpWebclient","UpdateContactPublicKeyFlags",e,((t,e)=>{this.isSaving(!1),t&&t.Result?g.showReport(a.i18n("CONTACTSWEBCLIENT/REPORT_PGP_SETTINGS_SAVED")):l.showErrorByCode(t,a.i18n("CONTACTSWEBCLIENT/ERROR_SAVE_PGP_SETTINGS"))}))}},k.prototype.executeSave=function(t){var e,s={},o=[];if(t===this.selectedItem()&&this.selectedItem().canBeSave()){if(t instanceof T&&!t.readOnly())if(i.each(this.groupFullCollection(),(function(t){t&&t.checked()&&o.push(t.UUID())})),t.groups(o),this.selectedItem()&&I.clearInfoAboutEmail(this.selectedItem().email()),s=t.toObject(),"personal"!==this.selectedStorage()&&"personal"===s.Storage&&this.recivedAnimPersonal(!0),"team"!==this.selectedStorage()&&"team"===s.Storage&&this.recivedAnimTeam(!0),t.isNew()){"all"===this.selectedStorage()||"group"===this.selectedStorage()?s.Storage="personal":s.Storage=this.selectedStorage(),this.isSaving(!0),s.ViewEmail=t.email();var n={Contact:s,Callback:function(t){t.Error?(g.showError(t.ErrorMessage),this.isSaving(!1)):P.send("CreateContact",{Contact:s},this.onCreateContactResponse,this)}.bind(this)};u.broadcastEvent("ContactsWebclient::beforeCreateContactRequest",n)||P.send("CreateContact",{Contact:s},this.onCreateContactResponse,this)}else this.isSaving(!0),s.ViewEmail=t.email(),n={Contact:s,Callback:function(t){t.Error?(g.showError(t.ErrorMessage),this.isSaving(!1)):P.send("UpdateContact",{Contact:s},this.onUpdateContactResponse,this)}.bind(this)},u.broadcastEvent("ContactsWebclient::beforeUpdateContactRequest",n)||P.send("UpdateContact",{Contact:s},this.onUpdateContactResponse,this);else if(t instanceof w&&!t.readOnly()){var r=i.map(this.selector.listCheckedOrSelected(),(function(t){return t.UUID()}));this.isSaving(!0),e=t.toObject(r),t.isNew()||(e.Contacts=null),P.send(t.isNew()?"CreateGroup":"UpdateGroup",{Group:e},this.onCreateGroupResponse,this)}}else g.showError(a.i18n("CONTACTSWEBCLIENT/ERROR_EMAIL_OR_NAME_BLANK"))},k.prototype.onCreateContactResponse=function(t,e){this.isSaving(!1),t.Result?(this.requestContactList(),this.viewContact(t.Result.UUID),g.showReport(a.i18n("CONTACTSWEBCLIENT/REPORT_CONTACT_SUCCESSFULLY_ADDED")),u.broadcastEvent("ContactsWebclient::createContactResponse",[t.Result])):l.showErrorByCode(t,a.i18n("CONTACTSWEBCLIENT/ERROR_CREATE_CONTACT"))},k.prototype.onUpdateContactResponse=function(t,e){this.isSaving(!1),t.Result?(this.selectedContact()&&this.selectedContact().edited()&&this.selectedContact().edited(!1),this.requestContactList(),g.showReport(a.i18n("CONTACTSWEBCLIENT/REPORT_CONTACT_SUCCESSFULLY_UPDATED")),u.broadcastEvent("ContactsWebclient::updateContactResponse",[t.Result])):l.showErrorByCode(t,a.i18n("CONTACTSWEBCLIENT/ERROR_UPDATE_CONTACT"))},k.prototype.changeRouting=function(t,e){var s=void 0===(t=t||{}).Storage?this.selectedStorage():t.Storage,i=void 0===t.GroupUUID?this.currentGroupUUID():t.GroupUUID,o=void 0===t.Search?this.search():t.Search,n=void 0===t.Page?this.oPageSwitcher.currentPage():t.Page,r=void 0===t.ContactUUID?"":t.ContactUUID,a=void 0===t.Action?"":t.Action;e?C.replaceHash(v.getContacts(s,i,o,n,r,a)):C.setHash(v.getContacts(s,i,o,n,r,a))},k.prototype.executeNewContact=function(){if(this.showPersonalContacts()){var t="group"===this.selectedStorage()?this.currentGroupUUID():"";this.changeRouting({GroupUUID:t,Action:"create-contact"})}},k.prototype.executeNewGroup=function(){var t="group"===this.selectedStorage()?this.currentGroupUUID():"";this.selector.itemSelected()instanceof U&&this.selector.itemSelected().checked(!0),this.changeRouting({GroupUUID:t,Action:"create-group"})},k.prototype.deleteContact=function(){var t=this.selectedStorage();if("personal"===t||"shared"===t||this.isAddressBookSelected()){var e=i.filter(this.selector.listCheckedOrSelected(),(function(t){return!t.ReadOnly()})),s=e.length,o=a.i18n("CONTACTSWEBCLIENT/CONFIRM_DELETE_CONTACTS_PLURAL",{},null,s),n=i.bind((function(t){t&&this.deleteContacts(e)}),this);f.showPopup(E,[o,n,"",a.i18n("COREWEBCLIENT/ACTION_DELETE")])}else"group"===t&&this.removeFromGroupCommand()},k.prototype.deleteContacts=function(t){var e=this,s=this.selectedContact(),n=i.map(t,(function(t){return t.UUID()}));0
e.Id===t));return s?.DisplayName&&(e=s.DisplayName),e},k.prototype.executeCancel=function(){var t=this.selectedItem();t&&(t instanceof T&&!t.readOnly()?t.isNew()?C.setPreviousHash():t.edited()?(t.edited(!1),this.requestContact(t.uuid())):this.changeRouting():t instanceof w&&!t.readOnly()?t.isNew()?C.setPreviousHash():t.edited()?(this.selectedItem(this.selectedOldItem()),t.edited(!1)):this.changeRouting():this.oImportView.visibility()&&C.setPreviousHash())},k.prototype.executeAddContactsToGroup=function(t,e){t&&i.isArray(e)&&0
0&&this.searchMessagesInInbox("email:"+this.selectedGroupEmails().join(","))},k.prototype.onGetGroupsResponse=function(t,e){var s=t.Result;if(s){var o,n=0,r=[],a=i.find(this.groupFullCollection(),(function(t){return t.selected()}))||null,h=null;for(this.groupFullCollection(r),o=s.length;n
{if(this.selectedContact()&&this.selectedContact().edited()){this.selectedContact().publicPgpKey(t);const e=this.collection().find((t=>t.UUID()===this.selectedContact().uuid()));e&&e.HasPgpPublicKey(!0)}else this.onUpdateContactResponse({Result:!0})}}])},t.exports=k},"7NIm":(t,e,s)=>{"use strict";var i=s("a7T2"),o=s("p09A"),n=s("9kOp"),r=s("qBBW"),a=s("OfVV"),h=s("Y40+");function c(t){this.oJua=null,this.oParent=t,this.visibility=o.observable(!1),this.importing=o.observable(!1),this.importButtonDom=o.observable(null),this.bVisibleCloseButton=n.isMobile(),this.extensionInfo=t.getFormatDependentText("INFO_IMPORT_CONTACTS")}c.prototype.ViewTemplate="ContactsWebclient_ImportView",c.prototype.onBind=function(){var t=i.map(h.ImportExportFormats,(function(t){return"."+t}));this.oJua=new r({action:"?/Api/",name:"jua-uploader",queueSize:1,clickElement:this.importButtonDom(),hiddenElementsPosition:a.IsRTL?"right":"left",disableAjaxUpload:!1,disableDragAndDrop:!0,disableMultiple:!0,hidden:i.extendOwn({Module:h.ServerModuleName,Method:"Import",Parameters:i.bind((function(){return JSON.stringify({GroupUUID:this.oParent.currentGroupUUID(),Storage:this.oParent.isAddressBookSelected()?this.oParent.selectedStorage():"personal"})}),this)},n.getCommonRequestParameters()),accept:t.join(",")}),this.oJua.on("onSelect",i.bind(this.oParent.onImportSelect,this.oParent)).on("onStart",i.bind(this.onFileUploadStart,this)).on("onComplete",i.bind(this.onFileUploadComplete,this))},c.prototype.onFileUploadStart=function(){this.importing(!0)},c.prototype.onFileUploadComplete=function(t,e,s){this.importing(!1),this.oParent.onImportComplete(t,e,s)},t.exports=c},vdUg:(t,e,s)=>{"use strict";var i=s("a7T2"),o=s("M4cL"),n=s("p09A"),r=s("KC/L"),a=s("REt5"),h=s("9kOp"),c=s("dfnr"),l=s("oUN1");function u(t,e,s,a,c,l,u,p,d,m,b){this.active=n.observable(!1),this.fSelectCallback=e||function(){},this.fDeleteCallback=s||function(){},this.fDblClickCallback=!h.isMobile()&&a?a:function(){},this.fEnterCallback=c||function(){},this.bResetCheckedOnClick=!!u,this.bCheckOnSelect=!!p,this.bUnselectOnCtrl=!!d,this.bDisableMultiplySelection=!!m,this.bChangeOnSelect=void 0===b||!!b,this.useKeyboardKeys=n.observable(!1),this.list=n.observableArray([]),t&&t.subscribe&&t.subscribe((function(t){this.list(t)}),this),this.multiplyLineFactor=l,this.oLast=null,this.oListScope=null,this.oScrollScope=null,this.iTimer=0,this.iFactor=1,this.KeyUp=Enums.Key.Up,this.KeyDown=Enums.Key.Down,this.KeyLeft=Enums.Key.Up,this.KeyRight=Enums.Key.Down,this.multiplyLineFactor&&(this.multiplyLineFactor.subscribe?this.multiplyLineFactor.subscribe((function(t){this.iFactor=0
"function"==typeof e.isEqual?e.isEqual(t):e===t))||this.itemSelected(null)}),this),this.listCheckedOrSelected=n.computed({read:function(){var t=this.itemSelected(),e=this.listChecked();return 0
e}),this),this.onKeydownBound=i.bind(this.onKeydown,this)}u.prototype.iTimer=0,u.prototype.bResetCheckedOnClick=!1,u.prototype.bCheckOnSelect=!1,u.prototype.bUnselectOnCtrl=!1,u.prototype.bDisableMultiplySelection=!1,u.prototype.getLastOrSelected=function(){var t=0,e=null;return i.each(this.list(),(function(s){s&&i.isFunction(s.checked)&&(s.checked()&&t++,s.selected()&&(e=s))})),0===t&&e?e:this.oLast},u.prototype.unbind=function(){this.active(!1),this.itemSelected()&&this.itemSelected().selected(!1),o(document).off("keydown",this.onKeydownBound),o(this.oListScope).off()},u.prototype.initOnApplyBindings=function(t,e,s,i,r){this.active(!0),o(document).on("keydown",this.onKeydownBound),this.oListScope=i,this.oScrollScope=r,this.sActionSelector=t,this.sSelectableSelector=e,this.sCheckboxSelector=s;var a=this,h=function(t,e,s){var i=0,o=0,n=null,r=!1,h=!1,c=[],l=!1;if(e=e||null,s&&s.shiftKey&&null!==e&&null!==t&&e!==t)for(c=a.list(),l=e.checked(),i=0,o=c.length;i
250||i>1||(t.preventDefault(),o(this).trigger("dblclick"))}})),o(this.oListScope).on("click",t,(function(t){var e=!0,s=null,i=a.getLastOrSelected(),o=n.dataFor(this);o&&t&&(t.shiftKey?(e=!1,a.bDisableMultiplySelection||(null===a.oLast&&(a.oLast=o),o.checked(!o.checked()),h(i,o,t))):(t.ctrlKey||t.metaKey)&&(e=!1,a.bDisableMultiplySelection||(a.oLast=o,!(s=a.itemSelected())||s.checked()||o.checked()||s.checked(!0),a.bUnselectOnCtrl&&o===a.itemSelected()?(o.checked(!o.selected()),a.itemSelected(null)):o.checked(!o.checked()))),e&&a.selectionFunc(o))})),o(this.oListScope).on("click",s,(function(t){var e=n.dataFor(this);e&&t&&!a.bDisableMultiplySelection&&(t.shiftKey?(null===a.oLast&&(a.oLast=e),h(a.getLastOrSelected(),e,t)):a.oLast=e),t&&t.stopPropagation&&t.stopPropagation()})),o(this.oListScope).on("dblclick",s,(function(t){t&&t.stopPropagation&&t.stopPropagation()}))},u.prototype.getResultSelection=function(t,e){var s=this,n=!1,r=!1,a=null,h=this.iFactor,c=!!this.multiplyLineFactor,l=0,u=0,p=[];if(!t&&-1
=0;l--)if(t===p[l]){0>(l-=h)&&(l+=h),a=p[l];break}return a},u.prototype.shiftClickResult=function(t,e,s){if(e){var n=!!this.multiplyLineFactor,r=!1,a=!1;-1
=i&&e<=i+s-n||(e
i+s?this.oScrollScope.scrollTop(e+n+20-s):this.oScrollScope.scrollTop(e-20),0))},t.exports=u},injE:(t,e,s)=>{"use strict";var i=s("H20a"),o={getMonthNamesArray:function(){for(var t=i.i18n("COREWEBCLIENT/LIST_MONTH_NAMES").split(" "),e=t.length;e<12;e++)t[e]="";return t},daysInMonth:function(t,e){return 0
t&&0
{"use strict";var i=s("a7T2"),o=s("M4cL"),n=s("p09A"),r=s("REt5"),a=s("9kOp");function h(t,e){this.bShown=!1,this.currentPage=n.observable(1),this.count=n.observable(t),this.perPage=n.observable(e),this.firstPage=n.observable(1),this.lastPage=n.observable(1),this.pagesCount=n.computed((function(){var t=this.perPage()>0?Math.ceil(this.count()/this.perPage()):0;return t>0?t:1}),this),n.computed((function(){var t=20,e=4,s=this.pagesCount(),i=this.currentPage(),o=i,n=i;if(s>1)for(;t--,1
n&&(n++,e--),0!==e)&&0!==t;);this.firstPage(o),this.lastPage(n)}),this),this.visibleFirst=n.computed((function(){return this.firstPage()>1}),this),this.visibleLast=n.computed((function(){return this.lastPage()
this.pagesCount()&&this.currentPage(this.pagesCount())},h.prototype.setPage=function(t,e){this.perPage(e),t>this.pagesCount()?this.currentPage(this.pagesCount()):this.currentPage(t)},h.prototype.clickPage=function(t){var e=t.number;e<1&&(e=1),e>this.pagesCount()&&(e=this.pagesCount()),this.currentPage(e)},h.prototype.clickFirstPage=function(){this.currentPage(1)},h.prototype.clickPreviousPage=function(){var t=this.currentPage()-1;t<1&&(t=1),this.currentPage(t)},h.prototype.clickNextPage=function(){var t=this.currentPage()+1;t>this.pagesCount()&&(t=this.pagesCount()),this.currentPage(t)},h.prototype.clickLastPage=function(){this.currentPage(this.pagesCount())},t.exports=h}}]);