LWR.define('@salesforce/i18n/dir', [], function() { return "ltr"; });LWR.define('@salesforce/i18n/locale', [], function() { return "en-US"; });LWR.define('@salesforce/gate/lds.enable-input-validation', [], () => {const gateObj = {
isOpen: (fallbackObj) => true,
hasError: () => false,
};
return Object.freeze(gateObj);});(function() { LWR.define("force/luvioEngine",["exports"],function(e){var t;!function(e){e.Fulfilled="Fulfilled",e.Unfulfilled="Unfulfilled",e.Error="Error",e.Pending="Pending",e.Stale="Stale"}(t||(t={}));const{create:r,entries:s,freeze:n,keys:i,values:a,assign:o}=Object,{hasOwnProperty:h}=Object.prototype,{isArray:l}=Array,{push:c,indexOf:d,slice:u}=Array.prototype,{parse:p,stringify:v}=JSON,f=new WeakSet;let S=!1;function g(e){if(!S&&"object"==typeof e&&null!==e&&!f.has(e)){if(f.add(e),l(e))for(let t=0,r=e.length;t{this.keyMap.set(t,e)}),e.valueMap.forEach((e,t)=>{this.valueMap.set(t,e)})}set(e,t){const r=q(e);if(void 0!==r)return this.keyMap.set(r,e),this.valueMap.set(r,t);throw new Error(`${_}: set`)}size(){return this.valueMap.size}values(){return this.valueMap.values()}}const F="Undefined value used in StoreKeySet operation";class U{constructor(){this.set=new Set,this.valueMap=new Map}add(e){const t=q(e);if(void 0===t)throw new Error(`${F}: add`);return this.set.add(t),this.valueMap.set(t,e),this}clear(){this.set.clear(),this.valueMap.clear()}delete(e){const t=q(e);if(void 0!==t)return this.set.delete(t),this.valueMap.delete(t);throw new Error(`${F}: delete`)}entries(){return this.valueMap.entries()}forEach(e,t){return this.valueMap.forEach(e,t)}has(e){const t=q(e);if(void 0!==t)return this.set.has(t);throw new Error(`${F}: has`)}keys(){return this.valueMap.values()}keysAsArray(){return Array.from(this.keys())}keysAsStrings(){return this.set.keys()}merge(e){e.set.forEach(e=>{this.set.add(e)}),e.valueMap.forEach((e,t)=>{this.valueMap.set(t,e)})}size(){return this.set.size}values(){return this.valueMap.values()}}function Q(e,t){return new Promise(r=>{let s=0;const{pendingTrimKeys:n,retainedIds:i,metadata:a}=e,o=Date.now();n.forEach(e=>{const r=a[e];void 0!==i[e]||void 0===r||void 0!==r&&r.expirationTimestamp>=o||(t(e),s++)}),r({deallocatedCount:s})})}function z(e,t){const{length:r}=t,{seenRecords:s}=e;for(let n=0;nt&&this.publishMetadata(s,{...n,expirationTimestamp:t})}}setTTLOverride(e,t,r){this.ttlOverrides[G(e,t)]=r}getTTLOverride(e,t){return this.ttlOverrides[G(e,t)]}getTTLOverrides(){return this.ttlOverrides}setDefaultTTLOverride(e){this.defaultTTLOverride=e}getDefaultTTLOverride(){return this.defaultTTLOverride}reset(){this.records=r(null),this.snapshotSubscriptions=[],this.watchSubscriptions=[],this.visitedIds=r(null),this.refreshedIds=r(null),this.insertedIds=r(null),this.redirectKeys=r(null),this.reverseRedirectKeys=r(null),this.retainedIds=r(null),this.ttlOverrides=r(null),this.trimTask=null,this.metadata=r(null),this.defaultTTLOverride=void 0,R({type:"store-reset",timestamp:Date.now()},this.eventObservers)}addStoreEventObserver(e){return this.eventObservers.push(e),()=>{const{eventObservers:t}=this,r=this.eventObservers.indexOf(e);r>-1&&(this.eventObservers=[...u.call(t,0,r),...u.call(t,r+1)])}}scheduleTrim(){null===this.trimTask&&(this.trimTask=()=>{const{metadata:e,pendingTrimKeys:t,retainedIds:r,records:s,dealloc:n}=this;return this.trimPolicy({metadata:e,pendingTrimKeys:t,retainedIds:r,storeRecords:s},n.bind(this)).then(e=>{this.pendingTrimKeys.clear();const{trimKeysSkipped:t}=e;return void 0!==t&&(this.pendingTrimKeys=t),e})},this.scheduler(this.trimTask,()=>{this.trimTask=null}))}buildIngestionStagingStore(){const e=new H,t=this,r=e.readEntry.bind(e),s=e.readMetadata.bind(e),n=e.evict.bind(e);return e.readEntry=e=>{const s=r(e);return void 0===s?t.readEntry(e):s},e.readMetadata=e=>{const r=s(e);return r||t.readMetadata(e)},e.evict=e=>{n(e),t.evict(e)},e.ttlOverrides=t.ttlOverrides,e.defaultTTLOverride=t.defaultTTLOverride,e.redirectKeys=t.redirectKeys,e.reverseRedirectKeys=t.reverseRedirectKeys,e}updateSubscriptionSnapshot(e,t){const{snapshot:r}=e;r!==t&&(e.snapshot=t,m(t)||this.retainSnapshotIds(t),m(r)||this.releaseSnapshotIds(r))}refreshSnapshot(e,t,r){const{refresh:s}=e;return void 0!==s?(R({type:"store-snapshot-refresh",subscriptionId:t,reason:r,snapshot:e,timestamp:Date.now()},this.eventObservers),s.resolve(s.config)):Promise.resolve(void 0)}instrumentIngestedNewData(e,t){const r=t.recordId,s=this.metadata[r];s?R({type:"cache-miss-out-of-ttl",oldSnapshot:e,newSnapshot:t,recordId:r,recordMetadata:s,timestamp:Date.now()},this.eventObservers):t.seenRecords.keysAsArray().forEach(r=>{const s=this.metadata[r];s&&R({type:"cache-miss-out-of-ttl",oldSnapshot:e,newSnapshot:t,recordId:r,recordMetadata:s,timestamp:Date.now()},this.eventObservers)})}emitOrRefreshRebuiltSnapshot(e,t,r){const{snapshot:s,callback:n,id:i}=t;if(M(e))return M(s)?this.updateSubscriptionSnapshot(t,e):m(s)||s.seenRecords.merge(e.seenRecords),Promise.resolve();if(this.updateSubscriptionSnapshot(t,e),r(e))e!==s&&(R({type:"store-snapshot-emit",snapshot:e,timestamp:Date.now(),subscriptionId:i},this.eventObservers),n(e)),this.instrumentIngestedNewDataOnFulfilledSnapshots(s,e);else if(k(e))return this.refreshSnapshot(e,i,"rebuild-unfulfilled").then();return Promise.resolve()}instrumentIngestedNewDataOnFulfilledSnapshots(e,t){y(e)&&y(t)&&this.instrumentIngestedNewData(e,t)}retainSnapshotIds(e){const t=e.recordId,{seenRecords:r}=e,s=void 0===r?[t]:[t,...Array.from(r.keysAsStrings())];this.retain(s)}releaseSnapshotIds(e){const t=e.recordId,{seenRecords:r}=e,s=void 0===r?[t]:[t,...Array.from(r.keysAsStrings())];this.release(s)}increaseRetentionCount(e){const t=this.retainedIds[e];this.retainedIds[e]=void 0===t?1:t+1,this.pendingTrimKeys.delete(e)}decreaseRetentionCount(e){const t=this.retainedIds[e];return 1===t?(this.pendingTrimKeys.add(e),delete this.retainedIds[e]):(void 0===t||(this.retainedIds[e]=t-1),!1)}release(e){const t=e.length;let r=!1;for(let s=0;s{const{eventObservers:r}=this,s=this.eventObservers.indexOf(e);s>-1&&(this.eventObservers=[...u.call(r,0,s),...u.call(r,s+1)]),t()}}scheduleTrim(){this.fallbackStringKeyInMemoryStore.pendingTrimKeys.size>0?this.fallbackStringKeyInMemoryStore.scheduleTrim():null===this.trimTask&&(this.trimTask=()=>{const{metadataMap:e,retainedIdsMap:t,pendingTrims:r}=this;let s=0;const n=Date.now();return r.forEach(r=>{const i=e.get(r);void 0!==t.get(r)||void 0===i||void 0!==i&&i.expirationTimestamp>=n||(this.dealloc(r),s++)}),r.clear(),Promise.resolve({deallocatedCount:s})},this.scheduler(this.trimTask,()=>{this.trimTask=null}))}updateSubscriptionSnapshot(e,t){const{snapshot:r}=e;r!==t&&(e.snapshot=t,m(t)||this.retainSnapshotIds(t),m(r)||this.releaseSnapshotIds(r))}refreshSnapshot(e){const{refresh:t}=e;return void 0!==t?t.resolve(t.config):Promise.resolve(void 0)}instrumentIngestedNewData(e,t){const r=t.recordId,s=this.metadataMap.get(r);s?R({type:"cache-miss-out-of-ttl",oldSnapshot:e,newSnapshot:t,recordId:r,recordMetadata:s,timestamp:Date.now()},this.eventObservers):t.seenRecords.keysAsArray().forEach(r=>{const s=this.metadataMap.get(r);s&&R({type:"cache-miss-out-of-ttl",oldSnapshot:e,newSnapshot:t,recordId:r,recordMetadata:s,timestamp:Date.now()},this.eventObservers)})}emitOrRefreshRebuiltSnapshot(e,t,r){const{snapshot:s,callback:n}=t;if(M(e))M(s)&&this.updateSubscriptionSnapshot(t,e);else if(this.updateSubscriptionSnapshot(t,e),r(e))e!==s&&n(e),this.instrumentIngestedNewDataOnFulfilledSnapshots(s,e);else if(k(e)){const{refresh:t}=e;void 0!==t&&t.resolve(t.config)}}instrumentIngestedNewDataOnFulfilledSnapshots(e,t){y(e)&&y(t)&&this.instrumentIngestedNewData(e,t)}retainSnapshotIds(e){const{recordId:t,seenRecords:r}=e,s=void 0===r?[t]:[t,...r.keysAsArray()];this.retain(s)}releaseSnapshotIds(e){const{recordId:t,seenRecords:r}=e,s=void 0===r?[t]:[t,...r.keysAsArray()];this.release(s)}increaseRetentionCount(e){const t=this.retainedIdsMap.get(e);this.retainedIdsMap.set(e,void 0===t?1:t+1),this.pendingTrims.delete(e)}decreaseRetentionCount(e){const t=this.retainedIdsMap.get(e);return 1===t?(this.pendingTrims.add(e),this.retainedIdsMap.delete(e),!0):(void 0===t||this.retainedIdsMap.set(e,t-1),!1)}release(e){const t=e.length;let r=!1;for(let s=0;s{if(void 0!==e){if(y(e)||m(e)||b(e))return s(n,a),e;if(M(e))return t.resolvePendingSnapshot(e)}return ie(t)})}}(e.staleDurationSeconds);case"cache-then-network":return he;case"no-cache":return le;case"only-if-cached":return ce;case"stale-while-revalidate":return a=e.staleDurationSeconds,function(e){const{buildCachedSnapshot:r,buildNetworkSnapshot:s,buildSnapshotContext:n,storeLookup:i,coercedAdapterRequestContext:o,luvio:h}=e;return oe(r(n,ne(i,ae(1e3*a)),h),r=>{if(void 0!==r){if(y(r)||m(r))return r;if(M(r))return e.resolvePendingSnapshot(r);if(r.state===t.Stale)return s(n,o),r}return ie(e)})};case"valid-at":{const t=Oe(e.basePolicy,r);return n=t,i=e.timestamp,function(e){return n({...e,storeLookup:(t,r,s)=>e.storeLookup(t,r,(e,t,r)=>s(i,t,r))})}}default:return Oe(r,r)}var n,i,a}const Ce=Symbol("Wildcard");function Ke(e,t,r,s){return Object.entries(t).map(([n,i])=>n.startsWith("$")?function(e,t,r,s,n){const i=Ne[t];if(void 0===i)return!1;return i(e,r,s,n)}(e,n,t,r,s):"object"==typeof r?!l(r)&&Ke(e,i,s(e,r[n]),s):void 0).every(e=>!0===e)}const Ne={$eq:Le,$ne:function(e,t,r,s){return!Le(e,{$eq:t.$ne},r)},$gt:function(e,t,r,s){return r>t.$gt},$gte:function(e,t,r,s){return r>=t.$gte},$lt:function(e,t,r,s){return r{})}},e.GraphNode=ge,e.InMemoryStore=ee,e.InMemoryStoreQueryEvaluator=class{constructor(e){this.store=e,this.storeToIndexMap=new WeakMap,this.storeToIndexMap.set(e,{nodeType:"indexBySchema",value:{}})}queryByKey(e,t){const r=this.getKeyIndex(this.store,t);if(void 0===r)return Promise.resolve([]);let s=[r];for(let r=0;r
`,u=a.parseFragment``,g={classMap:{"help-support-header":!0},key:2},f={classMap:{hsh:!0,"hsh--landing-page":!0,"js-hsh":!0},attrs:{"data-variant":"landing-page","data-hsh-index":"0"},key:3},m={classMap:{hsh__wrapper:!0},key:4},w={attrs:{name:"heading"},key:5},y={classMap:{"help-support-search-form":!0},key:8},v={classMap:{hssf:!0,"hssf--header":!0,"js-hssf":!0},key:9},b={classMap:{"hssf__form-bar":!0},key:10},S={classMap:{"hssf__form-field-wrapper":!0,"js-hssf-form-field-wrapper":!0},key:11},$={attrs:{name:"search-input"},key:12},_={attrs:{name:"search-button"},key:17};function k(e,a,t,s){const{st:n,gid:r,d:i,sp:l,s:o,b:k,h:P}=e,{_m0:E,_m1:I,_m2:L,_m3:M}=s;return[a.isLoading?n(c,1):null,a.isLoading?null:P("div",g,[P("div",f,[P("div",m,[o("heading",w,[n(h,"@heading:7",[l(0,{attrs:{id:r("search-heading")}},null),l(1,null,i(a.title))])],t),P("div",y,[P("div",v,[P("div",b,[P("div",S,[o("search-input",$,[n(d,"@search-input:14",[l(0,{on:I||(s._m1={input:k(a.handleSearchInputChange),keydown:k(a.handleSearchInputKeydown)}),attrs:{id:r("topic-search-input2"),placeholder:a.placeholder,"aria-label":a.title,"aria-describedby":r(a.instructionElementId)}},null)])],t),n(p,16,[l(0,{attrs:{id:r(a.instructionElementId)}},null),l(1,null,i(a.placeholder))])]),o("search-button",_,[n(u,"@search-button:19",[l(0,{on:M||(s._m3={click:k(a.handleSearch)}),attrs:{id:r("helpSupportSearchFormSubmit")}},null)])],t)])])])])])])]}var P=a.registerTemplate(k);function E(e,a,t,s,n,r,i){try{var l=e[r](i),o=l.value}catch(e){return void t(e)}l.done?a(o):Promise.resolve(o).then(s,n)}k.slots=["heading","search-button","search-input"],k.stylesheets=[],k.stylesheetToken="lwc-5ftoiqhrq34",k.legacyStylesheetToken="c-aphsCategoryArticleSearchEngine_aphsCategoryArticleSearchEngine",a.freezeTemplate(k);let I=0,L=!1;class M extends(t.NavigationMixin(a.LightningElement)){constructor(...e){super(...e),this.searchKey="",this.answersPath="",this.placeholder="",this.title="",this.isLoading=!0,this.instructionElementId="topic-search-instructions-"+I++}connectedCallback(){L||s.loadStyle(this,o.default+"/styles/aphsCategoryArticleSearchEngine.css").then(()=>{L=!0}).catch(()=>{})}wiredLabels({data:e,error:a}){void 0===e&&void 0===a||(this.isLoading=!1),e?(this.placeholder=this.placeholder||e.articleSearchPlaceholder,this.title=this.title||e.articleSearchTitle,this.answersPath=e.articleSearchAnswersPath||this.answersPath):a&&console.error("Error loading APHS UI Labels:",a)}handleSearchInputChange(e){this.searchKey=e.target.value.trim()}handleSearchInputKeydown(e){"Enter"===e.key&&(e.preventDefault(),this.handleSearch())}clearSearchInput(){this.searchKey="";const e=this.template.querySelector("input.js-hssf-form-input");e&&(e.value="");const a=this.template.querySelector('slot[name="search-input"]');if(!a)return;a.assignedElements({flatten:!0}).forEach(e=>{if("INPUT"===e.tagName)return void(e.value="");const a=e.querySelector?e.querySelector("input"):null;a&&(a.value="")})}handleSearch(){var e,a=this;return(e=function*(){const e=a.searchKey||"",s=`${a.answersPath}?s=${encodeURIComponent(e)}`,n=(window===globalThis||window===document?location:window.location).pathname+(window===globalThis||window===document?location:window.location).search;try{const e=yield a[t.NavigationMixin.GenerateUrl]({type:"standard__webPage",attributes:{url:s}});(e||s)===n?(window===globalThis||window===document?location:window.location).reload():(window===globalThis||window===document?location:window.location).assign(e||s)}catch(e){(window===globalThis||window===document?location:window.location).assign(s)}finally{a.clearSearchInput()}},function(){var a=this,t=arguments;return new Promise(function(s,n){var r=e.apply(a,t);function i(e){E(r,s,n,i,l,"next",e)}function l(e){E(r,s,n,i,l,"throw",e)}i(void 0)})})()}setSearchKey(e){this.searchKey="string"==typeof e?e.trim():""}triggerSearch(){return this.handleSearch()}}a.registerDecorators(M,{publicProps:{placeholder:{config:0},title:{config:0}},publicMethods:["setSearchKey","triggerSearch"],track:{isLoading:1},wire:{wiredLabels:{adapter:l.default,method:1,config:function(e){return{}}}},fields:["searchKey","answersPath","instructionElementId"]});const x=a.registerComponent(M,{tmpl:P,sel:"c-aphs-category-article-search-engine",apiVersion:66});e.default=x,Object.defineProperty(e,"__esModule",{value:!0})});
})();(function() { LWR.define("lightning/shadowBaseClassPrivate",["exports","lwc"],function(e,t){const s=[];function n(e,t,n,a){return s}var a=t.registerTemplate(n);n.stylesheets=[],n.stylesheetToken="lwc-758d5qnnql0",n.legacyStylesheetToken="lightning-shadowBaseClassPrivate_shadowBaseClassPrivate",t.freezeTemplate(n);class l extends t.LightningElement{connectedCallback(){this.template.synthetic||this.setAttribute("data-render-mode","shadow")}}const i=t.registerComponent(l,{tmpl:a,sel:"lightning-shadow-base-class-private",apiVersion:66,enableSyntheticElementInternals:!0,enablePrivateMethods:!0});e.default=i,Object.defineProperty(e,"__esModule",{value:!0})});
})();(function() { LWR.define("lwr/environment",["exports"],function(e){const a=globalThis?.LWR?.env||{},s=a&&("true"===a.SSR||!0===a.SSR),t=a&&a.basePath,l=a&&a.locale,n=a&&a.assetBasePath,o=a&&a.uiBasePath;e.assetBasePath=n,e.basePath=t,e.isServer=s,e.locale=l,e.uiBasePath=o,Object.defineProperty(e,"__esModule",{value:!0})});
})();(function() { LWR.define("lightning/utils",["exports","lwr/environment"],function(e,t){function n(e,t){if("string"==typeof t){const n=t.trim().split(/\s+/);for(let t=0,{length:r}=n;t]+[^/]>[\\s\\S]*?|
]+>||