text: System.register(["jimu-core","jimu-ui/basic/guide","jimu-ui"],(function(e,t){var i={},n={},l={};return{setters:[function(e){i.React=e.React,i.appActions=e.appActions,i.getAppStore=e.getAppStore,i.i18n=e.i18n,i.utils=e.utils},function(e){n.EVENTS=e.EVENTS,n.Guide=e.Guide},function(e){l.defaultMessages=e.defaultMessages}],execute:function(){e((()=>{"use strict";var e={48891:e=>{e.exports=i},30726:e=>{e.exports=l},22542:e=>{e.exports=n},86422:e=>{e.exports=JSON.parse('{"steps":[{"injectedGuide":"insert-widget","widgetName":"list"},{"title":"${guideStep2Title}","content":{"text":"${guideStep2Content}"},"placement":"left","target":".jimu-widget-list-setting .jimu-widget-setting--section","spotlightClicks":true,"requiredAction":{"type":"click"}},{"injectedGuide":"ds-selection"},{"title":"${guideStep6Title}","content":"${guideStep6Content}","placement":"left","target":".list-list-setting .jimu-widget-setting--section"},{"title":"${guideStep7Title}","content":"${guideStep7Content}","placement":"left-end","target":".list-list-setting div:nth-child(2).jimu-widget-setting--section","spotlightClicks":true},{"title":"${states}","content":"${guideStep8Content}","placement":"left-end","target":".list-list-setting div:nth-child(3).jimu-widget-setting--section","spotlightClicks":true},{"title":"${guideStep9Title}","content":"${guideStep9Content}","placement":"left-end","target":".list-list-setting div:nth-child(4).jimu-widget-setting--section","spotlightClicks":true},{"title":"${guideStep10Title}","content":"${guideStep10Content}","placement":"bottom","target":".widget-list .list-group-item:first-child .widget-image","targetPrefix":"widgetId","targetInCanvas":true,"spotlightClicks":true},{"title":"${guideStep10Title2}","content":"${guideStep10Content2}","placement":"left","target":"[data-widgetid=\'dynamic-setting\'] .widget-setting-tab:not([data-is-parent=\'true\'])  .tab-content"},{"title":"${guideStep11Title}","content":"${guideStep11Content}","placement":"right","target":".widget-list .list-group-item:first-child .widget-text","targetPrefix":"widgetId","targetInCanvas":true,"spotlightClicks":true},{"title":"${guideStep11Title2}","content":"${guideStep11Content2}","placement":"left","target":"[data-widgetid=\'dynamic-setting\'] .widget-setting-tab:not([data-is-parent=\'true\'])  .tab-content"},{"title":"${guideStep12Title}","content":"${guideStep12Content}","placement":"center","target":"[data-widgetid=\'app-loader\']"}]}')}},t={};function a(i){var n=t[i];if(void 0!==n)return n.exports;var l=t[i]={exports:{}};return e[i](l,l.exports,a),l.exports}a.d=(e,t)=>{for(var i in t)a.o(t,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{a.r(o),a.d(o,{default:()=>r});var e=a(48891),t=a(22542),i=a(30726);const{useState:n,useEffect:l,useMemo:s}=e.React,d=Object.assign({},{_widgetLabel:"List",_widgetDescription:"A widget to display data in a list view.",_action_filter_label:"Filter",_layout_REGULAR_label:"Regular",_layout_HOVER_label:"Hover",_layout_SELECTED_label:"Selected",applyTo:"Apply to {status}",listLoading:"Loading",pleaseSelect:"Please select",listNoData:"No data",selectSortFields:"Select sorting fields",clearFilter:"Clear filter",isolate:"Isolate",linkedToAnd:"Linked to {where1} and {where2}",linkedTo:"Linked to {where}",placeHolderTip:"Please select a list template.",showSelected:"Show selected",clearSelected:"Clear selected",listSorting:"Sorting",listSort:"Sort",guideStep2Title:"Template",guideStep2Content:"Click on a template and click start.",guideStep3Title:"Data",guideStep3Content:"Click on select data to add a data source.",guideStep4Title:"Add new data",guideStep4Content:"Click add new data to select a web map.",guideStep5Title:"Select data",guideStep5Content:"Click the feature layer in the select data panel and close the panel.",guideStep6Title:"Data",guideStep6Content:"Specifies the data source, allows you to filter the data and limit the number of features that appear in the list.",guideStep7Title:"Arrangement",guideStep7Content:"Click the expand icon to explore the Arrangement section. In here, it allows you to define the direction, height, spacing, and paging style for your list.",guideStep8Title:"States",guideStep8Content:"Click the expand icon to explore the available States. In this section, it provides a visual representation to communicate the state of the list items. There are three states: regular, selected, and hover. By default, the selected state is always on.",guideStep9Title:"Tools",guideStep9Content:"Click the expand icon to explore the available Tools. In here, you can include search, sort, filter, and show selected tools in your list.",guideStep10Title:"Select image",guideStep10Content:"Click the image widget to configure it in the content panel.",guideStep10Title2:"Image settings",guideStep10Content2:"Allows you to select the image source and other settings for your widget.",guideStep11Title:"Select text",guideStep11Content:"Click the text widget to add attributes in the widget toolbar.",guideStep11Title2:"Text settings",guideStep11Content2:"Provides the configurations and style, including adding dynamic content from the widget toolbar. ",guideStep12Title:"End of tour",guideStep12Content:"Add other widgets to enhance your experience.",clearSearch:"Clear search",minimize:"Minimize",topToolBack:"Back",showAllListRecords:"Show all records",listDataActionLable:"{layer} list selection",searchResult:"Search result"},i.defaultMessages),r=i=>{var o;const[r,c]=n(!1),[g,u]=n(null!==(o=i.stepIndex)&&void 0!==o?o:0),p=s((()=>{var t,n;const l=a(86422);return"list"===(null===(n=null===(t=i.widgetJson)||void 0===t?void 0:t.manifest)||void 0===n?void 0:n.name)?e.utils.replaceI18nPlaceholdersInObject(l,e.i18n.getIntl(i.widgetJson.id),d):l}),[i.widgetJson]);return l((()=>{c(i.run)}),[i.run]),l((()=>{u(i.stepIndex)}),[i.stepIndex]),e.React.createElement(t.Guide,Object.assign({},i,{run:r,stepIndex:g,steps:p.steps,onStepChange:n=>{const{nextIndex:l,step:a,event:o}=n;if(1===l)(0,e.getAppStore)().dispatch(e.appActions.widgetStatePropChange("right-sidebar","collapse",!0));else if([5,6,7].includes(l)&&o===t.EVENTS.STEP_BEFORE){const e=document.querySelector(".jimu-widget-list-setting"),t=document.querySelector(null==a?void 0:a.target);if(e&&t){const i=t.getBoundingClientRect().top-e.getBoundingClientRect().top;null==e||e.scrollTo({top:i>0?i:0})}}null==i||i.onStepChange(n)},onActionClick:(e,t,i)=>{1===i?(null==e?void 0:e.target.classList.contains("btn-primary"))&&u(i+1):u(i+1)}}))}})(),o})())}}}));