// All material copyright Esri, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.30/esri/copyright.txt for details. //>>built define("require ../chunks/tslib.es6 ../core/arrayUtils ../core/deprecate ../core/Identifiable ../core/Logger ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/decorators/subclass ../intl/date ../time/timeZoneUtils ../webdoc/support/SlideThumbnail ./Widget ./Bookmarks/BookmarksUserState ./Bookmarks/BookmarksViewModel ./Bookmarks/BookmarksVisibleElements ./Bookmarks/bookmarkUtils ./Bookmarks/css ../chunks/componentsUtils ./support/globalCss ./support/Heading ./support/widgetUtils ./support/decorators/messageBundle ./support/decorators/vmEvent ./support/jsxFactory".split(" "), function(l,h,I,D,g,E,k,T,J,v,F,z,K,A,G,B,L,m,M,w,N,U,H,O,d){g=class extends g.IdentifiableMixin(K){constructor(a,b){super(a,b);this._selectedDragBookmarkUid=this._lastDragDetail=this._urlEditInputNode=this._editInputNode=this._addInputNode=null;this._editIncludeTimeExtent=void 0;this._userState=null;this.dragEnabled=this.disabled=this._focusEditFlowItem=this._focusAddFlowItem=this._focusRootFlowItem=!1;this.filterText=this.filterPlaceholder="";this.headingLevel=2;this.messagesCommon=this.messages= null;this.viewModel=new G;this.visibleElements=new B;this._onCalciteListOrderChange=c=>{const {_lastDragDetail:e,bookmarks:f}=this,{toEl:n,fromEl:p,dragEl:x,newIndex:C}=c;if(f.length&&p&&n&&(e?.newIndex!==C||e?.dragEl!==x||e?.toEl!==n||e?.fromEl!==p)){this._lastDragDetail=c;var y=Array.from(p.children).filter(q=>q?.matches("calcite-list-item")).map(q=>q.value);f.sort((q,r)=>{q=y.indexOf(q.uid);r=y.indexOf(r.uid);return q>r?1:qnew Promise((a,b)=>l(["../chunks/calcite-action"],a,b)),button:()=>new Promise((a,b)=>l(["../chunks/calcite-button"],a,b)),"chip-group":()=>new Promise((a,b)=>l(["../chunks/calcite-chip-group"],a,b)),chip:()=>new Promise((a,b)=>l(["../chunks/calcite-chip"],a,b)),fab:()=>new Promise((a,b)=>l(["../chunks/calcite-fab"], a,b)),flow:()=>new Promise((a,b)=>l(["../chunks/calcite-flow"],a,b)),"flow-item":()=>new Promise((a,b)=>l(["../chunks/calcite-flow-item"],a,b)),icon:()=>new Promise((a,b)=>l(["../chunks/calcite-icon"],a,b)),input:()=>new Promise((a,b)=>l(["../chunks/calcite-input"],a,b)),"input-message":()=>new Promise((a,b)=>l(["../chunks/calcite-input-message"],a,b)),label:()=>new Promise((a,b)=>l(["../chunks/calcite-label"],a,b)),list:()=>new Promise((a,b)=>l(["../chunks/calcite-list"],a,b)),"list-item":()=>new Promise((a, b)=>l(["../chunks/calcite-list-item"],a,b)),loader:()=>new Promise((a,b)=>l(["../chunks/calcite-loader"],a,b)),notice:()=>new Promise((a,b)=>l(["../chunks/calcite-notice"],a,b)),scrim:()=>new Promise((a,b)=>l(["../chunks/calcite-scrim"],a,b)),switch:()=>new Promise((a,b)=>l(["../chunks/calcite-switch"],a,b)),table:()=>new Promise((a,b)=>l(["../chunks/calcite-table"],a,b)),"table-cell":()=>new Promise((a,b)=>l(["../chunks/calcite-table-cell"],a,b)),"table-header":()=>new Promise((a,b)=>l(["../chunks/calcite-table-header"], a,b)),"table-row":()=>new Promise((a,b)=>l(["../chunks/calcite-table-row"],a,b))})}get defaultCreateOptions(){return this.viewModel.defaultCreateOptions}set defaultCreateOptions(a){this.viewModel.defaultCreateOptions=a}get defaultEditOptions(){return this.viewModel.defaultEditOptions}set defaultEditOptions(a){this.viewModel.defaultEditOptions=a}get bookmarks(){return this.viewModel.bookmarks}set bookmarks(a){this.viewModel.bookmarks=a}get editingEnabled(){D.deprecatedProperty(E.getLogger(this),"editingEnabled", {replacement:"dragEnabled, visibleElements.editBookmarkButton, visibleElements.addBookmarkButton",version:"4.29",warnOnce:!0});return this.dragEnabled&&this.visibleElements.editBookmarkButton&&this.visibleElements.addBookmarkButton}set editingEnabled(a){D.deprecatedProperty(E.getLogger(this),"editingEnabled",{replacement:"dragEnabled, visibleElements.editBookmarkButton, visibleElements.addBookmarkButton",version:"4.29",warnOnce:!0});this.dragEnabled=a;this.visibleElements.editBookmarkButton=a;this.visibleElements.addBookmarkButton= a}get goToOverride(){return this.viewModel.goToOverride}set goToOverride(a){this.viewModel.goToOverride=a}get icon(){return"bookmark"}set icon(a){this._overrideIfSome("icon",a)}get label(){return this.messages?.widgetLabel??""}set label(a){this._overrideIfSome("label",a)}get view(){return this.viewModel.view}set view(a){this.viewModel.view=a}endAddBookmark(){this._userState=null}goTo(a){return this.viewModel.goTo(a)}render(){return d.tsx("div",{class:this.classes(m.css.base,w.globalCss.widget,w.globalCss.panel)}, this._renderBookmarksContainer())}startAddBookmark(){this._userState=new A({state:"add"});this._focusAddFlowItem=!0}_renderNoBookmarksContainer(a){const {messages:b,viewModel:{state:c}}=this;return a.length||"loading"===c?null:d.tsx("div",{class:w.globalCss.empty,key:"no-bookmarks"},d.tsx("calcite-icon",{icon:"bookmark",scale:"l"}),d.tsx(N.Heading,{class:this.classes(w.globalCss.heading,m.css.noBookmarksHeader),level:this.headingLevel},b?.noBookmarksHeading),d.tsx("p",{class:m.css.noBookmarksDescription}, b.noBookmarksDescription))}_renderEditBookmarkFlowItems(){const {_userState:a}=this,b=a?.editedBookmark;return b&&"edit"===a?.state?this._renderEditingBookmark(b):[]}_renderBookmarkItems(a){return a?a.toArray().map(b=>this._renderBookmark(b)):[]}_handleCalciteListDragEnd(a){const {fromEl:b,dragEl:c,oldIndex:e}=a;b.insertBefore(c,b.children[e])}_renderBookmarksContainer(){const {viewModel:{state:a,bookmarks:b},dragEnabled:c,messages:e,disabled:f,filterPlaceholder:n,filterText:p,visible:x,headingLevel:C, visibleElements:{closeButton:y,collapseButton:q,filter:r,heading:P,flow:Q},uid:R}=this;var t=b.filter(I.isSome);const S=t.length?d.tsx("calcite-list",{class:m.css.list,dragEnabled:c,filterEnabled:r,filterPlaceholder:n,filterText:p,group:`bookmarks-${R}`,key:"bookmark-list",label:e.widgetLabel,selectionAppearance:"border",selectionMode:"none",onCalciteListDragEnd:u=>this._handleCalciteListDragEnd(u.detail),onCalciteListFilter:u=>this.filterText=u.target?.filterText??"",onCalciteListOrderChange:u=> this._onCalciteListOrderChange(u.detail)},this._renderBookmarkItems(t),r?d.tsx("div",{class:m.css.filterNoResults,slot:"filter-no-results"},d.tsx("calcite-notice",{kind:"info",open:!0,width:"full"},d.tsx("div",{slot:"message"},e.noBookmarksHeading),";")):null):null;t=[d.tsx("calcite-flow-item",{afterCreate:this._focusRootFlowItemNode,afterUpdate:this._focusRootFlowItemNode,bind:this,closable:y,closed:!x,collapsible:q,disabled:f,heading:P?e.widgetLabel:void 0,headingLevel:C,loading:"loading"===a,onCalciteFlowItemClose:()=> this.visible=!1},this._renderNoBookmarksContainer(t),S,this._renderAddBookmarkButton()),this._renderAddingBookmark(),this._renderEditBookmarkFlowItems()];return x?Q?d.tsx("calcite-flow",{key:"root-flow"},t):t:null}_renderAddBookmarkButton(){const {messages:a,_userState:b,disabled:c,viewModel:{view:e,state:f},visibleElements:{addBookmarkButton:n}}=this,p=b?.loading??!1;return e&&"loading"!==f&&n?d.tsx("calcite-fab",{appearance:"outline-fill",bind:this,class:m.css.addBookmarkButton,disabled:c||p,icon:"plus", key:"add-bookmark-item",kind:"neutral",loading:p,onclick:this.startAddBookmark,slot:"fab",text:a.addBookmark,textEnabled:!0,title:a.addBookmark,type:"button"}):null}_renderEditContainer(a){const {messagesCommon:b,visibleElements:{editBookmarkButton:c}}=this,e=`${b.edit} ${this._getBookmarkTitle(a)}`;return c?d.tsx("calcite-action",{appearance:"transparent",icon:"pencil",key:"edit-action",onclick:()=>this._showEditBookmarkForm(a),slot:"actions-end",text:e,title:e}):null}_renderBookmarkImage(a,b){return b? d.tsx("img",{alt:"",class:m.css.bookmarkImage,key:"bookmark-image",src:a.thumbnail?.url}):null}_renderBookmarkTimeSwitch(a){const {messages:b,viewModel:{view:c}}=this;({timeExtent:a}=a);return c?.timeExtent??a?d.tsx("calcite-label",{layout:"inline-space-between"},b.includeTimeExtent,d.tsx("calcite-switch",{checked:!!a,onCalciteSwitchChange:e=>{this._editIncludeTimeExtent=!!e.target.checked}})):null}_renderEditBookmarkTimeExtent(a){return this._editIncludeTimeExtent?this._renderBookmarkTimeExtent(a): null}_getTimeExtentStrings(a){var {visibleElements:b}=this;({timeExtent:a}=a);if(!a)return{};const {start:c,end:e}=a;var f=null!=e&&(null==c||c.getTime()!==e.getTime());a=c?this._formatDate(c):"";const n=c&&b.time?this._formatTime(c):"";if(!f)return{startDate:a,startTime:n};f=this._formatDate(e);b=b.time?this._formatTime(e):"";return{startDate:a,startTime:n,endDate:f,endTime:b}}_renderTimeExtentDescription(a){const {startDate:b,startTime:c,endDate:e,endTime:f}=this._getTimeExtentStrings(a);if(!b)return""; a=`${b} ${c}`;return e?`${a} - ${`${e} ${f}`}`:a}_renderBookmarkTimeExtent(a,b=!1){const {messages:c}=this,{startDate:e,startTime:f,endDate:n,endTime:p}=this._getTimeExtentStrings(a);a=b?null:d.tsx("calcite-table-row",{slot:"table-header"},d.tsx("calcite-table-header",{heading:c.startDate}),n?d.tsx("calcite-table-header",{heading:c.endDate}):null);return e?d.tsx("calcite-table",{caption:c.timeExtent,scale:"s"},a,d.tsx("calcite-table-row",null,d.tsx("calcite-table-cell",null,e," ",f?[d.tsx("br",null), f]:null),n?d.tsx("calcite-table-cell",null,n,p?[d.tsx("br",null),p]:null):null)):null}_renderBookmarkActiveScrim(a,b){return this.viewModel.activeBookmark===a&&b?d.tsx("calcite-scrim",{key:"bookmark-active-scrim",loading:!0}):null}_renderBookmarkActiveLoader(a,b){return this.viewModel.activeBookmark!==a||b?null:d.tsx("calcite-loader",{class:m.css.loader,inline:!0,key:"bookmark-active-loader",label:this.messagesCommon.loading})}_renderBookmarkImageIcon(a,b){return this.viewModel.activeBookmark===a|| b?null:d.tsx("calcite-icon",{icon:"bookmark",key:"bookmark-icon",scale:"s"})}_renderBookmarkThumbnail(a){const b=this.visibleElements.thumbnail&&!!a.thumbnail?.url;return d.tsx("div",{class:m.css.bookmarkImageContainer,slot:"content-start"},this._renderBookmarkActiveScrim(a,b),this._renderBookmarkImage(a,b),this._renderBookmarkActiveLoader(a,b),this._renderBookmarkImageIcon(a,b))}_focusSelectedDragEl(a,b){this._selectedDragBookmarkUid===b.uid&&requestAnimationFrame(()=>a?.setFocus())}_handleCalciteListItemDragHandleChange(a, b){a.stopPropagation();this._selectedDragBookmarkUid=a.target.dragSelected?b.uid:null}_renderBookmark(a){return d.tsx("calcite-list-item",{afterCreate:b=>this._focusSelectedDragEl(b,a),afterUpdate:b=>this._focusSelectedDragEl(b,a),class:this.classes({[m.css.dragEnabled]:this.dragEnabled}),description:this._renderTimeExtentDescription(a),dragSelected:a.uid===this._selectedDragBookmarkUid,key:a.uid,label:this._getBookmarkTitle(a),value:a.uid,onCalciteListItemDragHandleChange:b=>this._handleCalciteListItemDragHandleChange(b, a),onCalciteListItemSelect:()=>this._goToBookmark(a)},this._renderBookmarkThumbnail(a),this._renderBookmarkContent(a),this._renderEditContainer(a))}_renderBookmarkContent(a){return d.tsx("div",{class:m.css.bookmarkContent,slot:"content"},d.tsx("span",{class:m.css.bookmarkContentLabel},this._getBookmarkTitle(a)),this._renderBookmarkTimeExtent(a,!0))}_renderEditingBookmarkName(a){const {messages:b,_userState:c}=this,e="name-required"===c?.validationState;return d.tsx("calcite-label",null,b.title,d.tsx("calcite-input", {afterCreate:this._storeEditInput,bind:this,class:m.css.editBookmarkInput,name:"bookmark-name",placeholder:b.titlePlaceholder,required:!0,type:"text",value:a.name}),e?d.tsx("calcite-input-message",{icon:"exclamation-mark-triangle",status:"invalid"},b.invalidTitle):null)}_renderEditingBookmarkActions(){const {messagesCommon:a,_userState:b}=this,c=b?.bookmark;return[d.tsx("calcite-button",{appearance:"transparent",kind:"danger",onclick:()=>this._deleteBookmark(c),slot:"footer",type:"button",width:"full"}, a.delete),d.tsx("calcite-button",{appearance:"outline",bind:this,onclick:this._closeEditBookmarkForm,slot:"footer",type:"button",width:"full"},a.cancel),d.tsx("calcite-button",{slot:"footer",type:"submit",width:"full"},a.save)]}_handleUrlEditInputChange(){const {_userState:a,_urlEditInputNode:b}=this,c=b?.value;if(a?.editedBookmark&&c){a.validationState=void 0;a.editedBookmark.thumbnail?.isDataURI&&(a.screenshotUrl=a.editedBookmark.thumbnail?.url);var e=new z.SlideThumbnail({url:c});e.isSecureUrl&& (a.customUrl=c,a.editedBookmark.thumbnail=e)}}_renderEditingTimeExtent(a){const {capabilities:b,view:c}=this.viewModel,{timeExtent:e}=a;return b.time&&(c?.timeExtent??e)?d.tsx("div",{key:"edit-bookmark-time-container"},this._renderBookmarkTimeSwitch(a),this._renderEditBookmarkTimeExtent(a)):null}_renderEditingBookmarkImage(a){var {_userState:b}=this;b=b?.thumbnailState;if(b=a.thumbnail?.isSecureUrl?"url"===b:a.thumbnail?.isDataURI?"screenshot"===b:null)return this._renderBookmarkImage(a,b)}_renderEditingThumbnail(a){const {_userState:b, visibleElements:c}=this;return c.thumbnail&&"none"!==b?.thumbnailState?d.tsx("div",{class:m.css.authoringImageContainer},this._renderEditingBookmarkImage(a)):null}_renderUpdateThumbnailButton(){const {visibleElements:a,messages:b,_userState:c}=this;return a.thumbnail&&"screenshot"===c?.thumbnailState?d.tsx("calcite-button",{appearance:"outline",class:m.css.authoringRefreshThumbnailButton,iconStart:"refresh",key:"update-thumbnail",kind:"neutral",onclick:()=>void this._updateThumbnail(),width:"half"}, b.updateThumbnail):null}_renderEditingBookmarkUrlInput(a){const {messages:b,_userState:c}=this;var e=a.thumbnail?.url;a=a.thumbnail?.isSecureUrl?e:void 0;e=e&&"absolute-url-required"===c?.validationState;return"url"===c?.thumbnailState?d.tsx("calcite-label",{key:"thumbnail-url-input"},d.tsx("calcite-input",{afterCreate:this._storeUrlEditInput,bind:this,name:"bookmark-thumbnail-url",pattern:L.ThumbnailInputPattern,placeholder:b?`https://<${b.imageUrlPlaceholder}>`:void 0,required:!0,title:b.imageUrlTooltip, type:"text",value:a,onCalciteInputChange:this._handleUrlEditInputChange,onCalciteInputInput:this._handleUrlEditInputChange}),e?d.tsx("calcite-input-message",{icon:"exclamation-mark-triangle",status:"invalid"},b.invalidImageUrl):null):null}_renderThumbnailSelector(){const {visibleElements:a,messages:b,_userState:c}=this,e=c?.thumbnailState;return a.thumbnail?d.tsx("calcite-label",{key:"thumbnail-chip-group"},b.thumbnail,d.tsx("calcite-chip-group",{label:b.thumbnail,selectionMode:"single-persist",onCalciteChipGroupSelect:f=> this._handleThumbnailTypeSelect(f.target.selectedItems[0].value)},d.tsx("calcite-chip",{selected:"screenshot"===e,value:"screenshot"},b.screenshot),d.tsx("calcite-chip",{selected:"url"===e,value:"url"},b.url),d.tsx("calcite-chip",{selected:"none"===e,value:"none"},b.none))):null}_renderEditingBookmark(a){const {disabled:b,messagesCommon:c,headingLevel:e}=this;return a?d.tsx("form",{bind:this,class:m.css.form,disabled:this.disabled,onsubmit:this._editBookmarkSubmit},d.tsx("calcite-flow-item",{afterCreate:this._focusEditFlowItemNode, afterUpdate:this._focusEditFlowItemNode,bind:this,disabled:b,heading:c.edit,headingLevel:e,key:"edit-bookmark-form",onCalciteFlowItemBack:f=>{f.preventDefault();this._closeEditBookmarkForm()}},d.tsx("div",{class:m.css.formContent},d.tsx("div",{class:m.css.authoring},this._renderEditingBookmarkName(a),this._renderThumbnailSelector(),this._renderEditingThumbnail(a),this._renderEditingBookmarkUrlInput(a),this._renderUpdateThumbnailButton(),this._renderEditingTimeExtent(a))),this._renderEditingBookmarkActions())): null}_renderAddingBookmarkName(){const {_userState:a,messages:b}=this,c="name-required"===a?.validationState;return d.tsx("calcite-label",null,b.title,d.tsx("calcite-input",{afterCreate:this._storeAddInput,bind:this,class:m.css.addBookmarkInput,name:"bookmark-name",placeholder:b.titlePlaceholder,required:!0,type:"text",value:""}),c?d.tsx("calcite-input-message",{icon:"exclamation-mark-triangle",status:"invalid"},b.invalidTitle):null)}_renderAddingBookmarkActions(){const {messagesCommon:a}=this;return[d.tsx("calcite-button", {appearance:"outline",bind:this,onclick:this._endAddBookmark,slot:"footer",type:"button",width:"half"},a.cancel),d.tsx("calcite-button",{slot:"footer",type:"submit",width:"half"},a.add)]}_renderAddingBookmark(){const {disabled:a,messages:b,headingLevel:c,_userState:e}=this;return"add"===e?.state?d.tsx("form",{bind:this,class:m.css.form,disabled:a,onsubmit:this._addBookmarkSubmitClick},d.tsx("calcite-flow-item",{afterCreate:this._focusAddFlowItemNode,afterUpdate:this._focusAddFlowItemNode,bind:this, disabled:a,heading:b.addBookmark,headingLevel:c,key:"add-bookmark-form",onCalciteFlowItemBack:f=>{f.preventDefault();this._endAddBookmark()}},d.tsx("div",{class:m.css.formContent},this._renderAddingBookmarkName()),this._renderAddingBookmarkActions())):null}_getBookmarkTitle(a){return a?.name||this.messagesCommon.untitled}_formatDate(a){return a?v.formatDate(a,{...v.convertDateFormatToIntlOptions("short-date"),timeZone:this.viewModel.view?.timeZone??F.system}):""}_formatTime(a){return a?v.formatDate(a, {...v.convertDateFormatToIntlOptions("long-time"),timeZone:this.viewModel.view?.timeZone??F.system}):""}_endAddBookmark(){this.endAddBookmark();this._focusRootFlowItem=!0}_showEditBookmarkForm(a){a&&(this._editIncludeTimeExtent=!!a.timeExtent,this._userState=new A({bookmark:a,state:"edit"}),this._focusEditFlowItem=!0,this.viewModel.goTo(a))}async _createNewScreenshotUrl(){return(await this.viewModel.createBookmark()).thumbnail?.url??null}_storeCurrentUrl(){const {_userState:a}=this,b=a?.editedBookmark?.thumbnail?.url; b&&(a?.editedBookmark?.thumbnail?.isSecureUrl?a.customUrl=b:a?.editedBookmark?.thumbnail?.isDataURI&&(a.screenshotUrl=b))}async _handleThumbnailTypeSelect(a){const {_userState:b}=this;if(b){var {screenshotUrl:c,customUrl:e,editedBookmark:f}=b,n="screenshot"===a?c??await this._createNewScreenshotUrl():"url"===a&&e?e:null;this._storeCurrentUrl();f&&n&&(f.thumbnail=new z.SlideThumbnail({url:n}));b.validationState=void 0;b.thumbnailState=a}}_closeEditBookmarkForm(){this._userState=null;this._focusRootFlowItem= !0}_addBookmarkSubmitClick(a){a.preventDefault();this._addBookmarkSubmit()}async _addBookmarkSubmit(){const {_addInputNode:a,_userState:b,viewModel:c,viewModel:{bookmarks:e}}=this;if(b){var f=a?a.value.trim():null;if(f){b.loading=!0;var n=await c.createBookmark();n.name=f;e.add(n);this._endAddBookmark()}else b.validationState="name-required"}}async _editBookmarkAndClose(a,b){const {viewModel:c,viewModel:{defaultEditOptions:e}}=this;await c.editBookmark(a,{...e,...b});this._closeEditBookmarkForm()}_editBookmarkSubmit(a){a.preventDefault(); const {_editInputNode:b,_userState:c,_editIncludeTimeExtent:e,_urlEditInputNode:f}=this;if(c?.bookmark&&c.editedBookmark)if(c.validationState=void 0,c.customUrl=void 0,c.screenshotUrl=void 0,a=b?.value.trim()){c.bookmark.name=a;c.bookmark.thumbnail=c.editedBookmark.thumbnail;e||(c.bookmark.timeExtent=null);a=c.thumbnailState;if("url"===a&&f){a=new z.SlideThumbnail({url:f.value});if(!a.isSecureUrl){c.validationState="absolute-url-required";return}c.bookmark.thumbnail=a}else"none"===a&&(c.bookmark.thumbnail= null);this._editBookmarkAndClose(c.bookmark,{takeScreenshot:!1,captureTimeExtent:e})}else c.validationState="name-required"}_storeEditInput(a){this._editInputNode=a}_storeAddInput(a){this._addInputNode=a}_storeUrlEditInput(a){this._urlEditInputNode=a}_deleteBookmark(a){this._closeEditBookmarkForm();a&&(this.viewModel.bookmarks.remove(a),a.destroy())}_goToBookmark(a){a&&(this.endAddBookmark(),this.viewModel.goTo(a))}async _updateThumbnail(){const {_userState:a,viewModel:b}=this;a&&(a.validationState= void 0,await b.editBookmark(a.editedBookmark,{takeScreenshot:!0,captureViewpoint:!1,captureRotation:!1,captureScale:!1,captureTimeExtent:!1}))}_focusRootFlowItemNode(a){this._focusRootFlowItem&&(this._focusRootFlowItem=!1,requestAnimationFrame(()=>a?.setFocus()))}_focusEditFlowItemNode(a){this._focusEditFlowItem&&(this._focusEditFlowItem=!1,requestAnimationFrame(()=>a?.setFocus()))}_focusAddFlowItemNode(a){this._focusAddFlowItem&&(this._focusAddFlowItem=!1,requestAnimationFrame(()=>a?.setFocus()))}}; h.__decorate([k.property()],g.prototype,"_editIncludeTimeExtent",void 0);h.__decorate([k.property({type:A})],g.prototype,"_userState",void 0);h.__decorate([k.property()],g.prototype,"_focusRootFlowItem",void 0);h.__decorate([k.property()],g.prototype,"_focusAddFlowItem",void 0);h.__decorate([k.property()],g.prototype,"_focusEditFlowItem",void 0);h.__decorate([k.property()],g.prototype,"defaultCreateOptions",null);h.__decorate([k.property()],g.prototype,"defaultEditOptions",null);h.__decorate([k.property()], g.prototype,"bookmarks",null);h.__decorate([k.property()],g.prototype,"disabled",void 0);h.__decorate([k.property()],g.prototype,"dragEnabled",void 0);h.__decorate([k.property()],g.prototype,"editingEnabled",null);h.__decorate([k.property()],g.prototype,"filterPlaceholder",void 0);h.__decorate([k.property()],g.prototype,"filterText",void 0);h.__decorate([k.property()],g.prototype,"headingLevel",void 0);h.__decorate([k.property()],g.prototype,"goToOverride",null);h.__decorate([k.property()],g.prototype, "icon",null);h.__decorate([k.property()],g.prototype,"label",null);h.__decorate([k.property(),H.messageBundle("esri/widgets/Bookmarks/t9n/Bookmarks")],g.prototype,"messages",void 0);h.__decorate([k.property(),H.messageBundle("esri/t9n/common")],g.prototype,"messagesCommon",void 0);h.__decorate([k.property()],g.prototype,"uiStrings",void 0);h.__decorate([k.property()],g.prototype,"view",null);h.__decorate([k.property({type:G}),O.vmEvent(["select-bookmark","bookmark-edit","bookmark-select"])],g.prototype, "viewModel",void 0);h.__decorate([k.property({type:B,nonNullable:!0})],g.prototype,"visibleElements",void 0);h.__decorate([k.property()],g.prototype,"endAddBookmark",null);h.__decorate([k.property()],g.prototype,"startAddBookmark",null);return g=h.__decorate([J.subclass("esri.widgets.Bookmarks")],g)});