1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[937],{81548:(e,t,i)=>{i.d(t,{Cb:()=>s,H5:()=>w,HZ:()=>L,Ll:()=>b,Nj:()=>A,QQ:()=>H,Rf:()=>D,Tr:()=>M,ZB:()=>J,eW:()=>N,fX:()=>n,fZ:()=>f,xv:()=>r});var r=(e={})=>Object.keys(e).reduce((t,i)=>Object.assign(t,{[s(i)]:e[i]}),{});function n(e){return s(e).replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,function(e){return"-"+e.toLowerCase()})}function s(e){return(e=(e=e.replace(/[-_ ]+/g," ")).charAt(0).toLowerCase()+e.slice(1)).split(/\s+/).map((e,t)=>0===t?e:e.charAt(0).toUpperCase()+e.slice(1)).join("")}var o=function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)0>t.indexOf(r[n])&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i},a={},c=e=>{var{properties:t}=e;return Object.assign(Object.assign({},o(e,["properties"])),{type:"object",properties:{name:{type:"string"},displayName:{type:"string"},id:{type:"string"},url:{type:"string"},fields:l(t)}})};function l(e={}){return{type:"object",properties:Object.keys(e).reduce((t,i)=>{let r=e[i],{title:n}=r;return o(r,["title"]),Object.assign(Object.assign({},t),{[i]:{type:"object",properties:{value:Object.assign({title:n||i},e[i])}}})},{})}}var p={Link:()=>({type:"object",properties:{href:{required:!0,type:"string",title:"URL",description:"The URL of the link, except for media items, for which the Url property contains the path to the media item relative to /Sitecore/Media Library."},text:{type:"string",title:"Text",description:"The text content of the HTML <a> element."},linktype:{type:"string",enum:["internal","external","media","anchor","mailto","javascript"],default:"internal",title:"Target",description:"The target attribute of the HTML <a> element."},title:{type:"string",title:"Title",description:"The title attribute of the HTML <a> element."},class:{type:"string",title:"Class Name",description:"The class attribute of the HTML <a> element."},target:{type:"string",title:"Target",description:"The target attribute of the HTML <a> element.",enum:["","_blank","_self","_parent","_top"]},anchor:{type:"string",title:"Anchor",description:"The name attribute of the HTML <a> element, without the leading hash character (â#â)."},querystring:{type:"string",title:"Query String",description:"Query string parameters to add to the URL."}}}),DropLink:c,DropTree:c,File:()=>({type:"object",properties:{src:{type:"string",title:"Source",description:"The URL of the file."},title:{type:"string",title:"Title",description:"Title of a file"},displayName:{type:"string",title:"Display name",description:"Display name of a file"}}}),Date:()=>({type:"string",format:"date"}),Datetime:()=>({type:"string",format:"date-time"}),RichText:()=>({type:"string"}),Image:e=>({type:"object",properties:Object.assign({src:{type:"string"}},e.properties)}),SingleLineText:()=>{},MultiLineText:()=>({type:"string"}),Checkbox:()=>({type:"boolean"}),String:()=>({type:"string"}),Number:()=>({type:"number"}),Boolean:()=>({type:"boolean"}),Item:c,List:e=>{var{properties:t}=e;return Object.assign(Object.assign({},o(e,["properties"])),{type:"array",items:{type:"object",properties:{name:{type:"string"},displayName:{type:"string"},id:{type:"string"},url:{type:"string"},fields:l(t)}}})}};function u(e,t={}){return function e(t,i){var r={};for(var n in t){let s=t[n];s&&"object"==typeof s?Array.isArray(s)?r[n]=s.map(t=>"object"==typeof t&&t?e(t,i):t):r[n]=e(i(s),i):r[n]=t[n]}return r}(e=d(Object.assign({type:"object",properties:{},required:[]},e)),e=>e.properties?d(e,t):e)}function d(e,t={}){var i;let r=Object.assign({},e);return r.properties&&(r.required=(null==(i=e.required)?void 0:i.slice())||[],r.properties=Object.keys(r.properties).reduce((e,i)=>{var s;let o=r.properties[i],c=null==(s=a[null==o?void 0:o.type])?void 0:s.call(a,o),l=Object.assign(Object.assign(Object.assign({},c),o),{type:(null==c?void 0:c.type)||o.type,default:t.hasOwnProperty(i)?t[i]:o.default,title:o.title||n(i).split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" ")});return(null!=o&&o.properties||null!=c&&c.properties)&&(l.properties=Object.assign({},(null==c?void 0:c.properties)||(null==o?void 0:o.properties)),Object.keys((null==c?void 0:c.properties)||{}
1).forEach(e=>{var t,i;l.properties[e]=Object.assign(Object.assign({},null==(t=null==c?void 0:c.properties)?void 0:t[e]),null==(i=null==o?void 0:o.properties)?void 0:i[e])})),(null!=o&&o.items||null!=c&&c.items)&&(l.items=(null==c?void 0:c.items)||(null==o?void 0:o.items)),void 0===l.default&&delete l.default,"required"in l&&"boolean"==typeof l.required&&(-1==r.required.indexOf(i)&&r.required.push(i),delete l.required),Object.assign(e,{[i]:l})},{})),Object.assign({type:"object"},r)}Object.keys(p).forEach(e=>{!function(e,{name:t}){if(t.charAt(0)!=t.charAt(0).toUpperCase())throw Error("Custom types must start with a capital letter");a[t]=e}(p[e],{name:e})});var g=(e,t)=>{var i,r,n,s;let o=Object.assign({},e);for(var a in t)"object"==typeof t[a]&&t[a]&&(((null==(i=t[a])?void 0:i.type)=="integer"||(null==(r=t[a])?void 0:r.type)=="number")&&(o[a]=Object.assign(Object.assign({},o[a]),{"ui:options":{widget:"updown"}})),null!=(n=t[a])&&n.ui&&(o[a]=Object.assign(Object.assign({},o[a]),{"ui:options":Object.assign(Object.assign({},null==(s=o[a])?void 0:s["ui:options"]),t[a].ui)})),o=Object.assign(Object.assign({},o),{[a]:t[a].items?{items:g(o[a],t[a].items.properties)}:g(o[a],t[a].properties||{})}));return o};function m(e,t){switch(t){case"string":default:return e;case"object":try{return"object"==typeof e&&null!=e?e:JSON.parse(e)}catch(e){return null}case"array":try{return Array.isArray(e)?e:JSON.parse(e)}catch(e){return null}case"number":return parseFloat(e);case"integer":return parseInt(e);case"boolean":return"true"==e||"1"==e}}var f="u">typeof window?window.BYOCDatasources||(window.BYOCDatasources={}):{};function b(e,t){if("function"!=typeof e)throw Error("The first argument of registerDatasource must be a function returning DataSettings or Promise of data");if(!t.id)throw Error("Missing 'id' property in input");if(!/^[a-zA-Z0-9-_]+$/.test(t.id))throw Error("Invalid 'id' property in input. 'id' should only contain alphanumeric characters, hyphens, and underscores.");f[t.id]=Object.assign(Object.assign({},function(e){let{id:t,name:i,title:r,properties:n,sample:s,schema:o,description:a=null,type:c="object"}=e;return{id:t,description:a,sample:s,name:i||r||t,handler:e=>e,schema:o||n?u(Object.assign(Object.assign({},o||{properties:n,type:c}),{title:(null==o?void 0:o.title)||r||i})):void 0}}(t)),{handler:e}),v()}var y,h=!1,O=0,j=!1;function v(){if(clearTimeout(y),"u">typeof window&&window.parent!==window){"u"<typeof window||j||(j=!0,window.addEventListener("message",e=>{try{"register-datasources-ack"===("string"==typeof e.data?JSON.parse(e.data):e.data).action&&(h=!0,O=0,clearTimeout(y))}catch(e){}})),h=!1,O=0;let e=()=>{var t;h||O>=150||(null==(t=window.parent)||t.postMessage(JSON.stringify({action:"register-datasources",data:Object.values(f)}),"*"),O++,!h&&O<150&&(y=setTimeout(e,200)))};y=setTimeout(e,30)}}function w(e,t){let i=f[e];return null!=i&&i.handler?i.handler(t):t}v();var S,T=function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)0>t.indexOf(r[n])&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i},x=!1,E=0,k=!1,C="u">typeof HTMLElement?HTMLElement:"u">typeof windowJSDOM?windowJSDOM.HTMLElement:class{setAttribute(){}},L="u">typeof window?window.BYOCComponents||(window.BYOCComponents={}):{};function A(e,t,i={}){if(!(null!=t&&t.name))throw Error("Could not register external component. Please make sure you provide a name in the options"+JSON.stringify(t));let r=function(e,t,i){let{thumbnail:r="https://feaasstatic.blob.core.windows.net/assets/thumbnails/byoc.svg",name:n,id:s=e.name,group:o=null,ui:a,isHidden:c=!1,datasourceIds:l=[],links:p={},meta:d={},uiSchema:m,schema:f}=e,b=T(e,["thumbnail","name","id","group","ui","isHidden","datasourceIds","links","meta","uiSchema","schema"]),y=u(Object.assign(Object.assign({description:"External component"},f||b||{}),{type:"object"}),i),h=g(m||a||{},y.properties||{});return{component:t||(()=>null),name:n,schema:y,uiSchema:h,thumbnail:r,group:o||"Default collection",isHidden:c,id:s,datasourceIds:l,links:p,meta:d,title:(null==y?void 0:y.title)||(null==b?void 0:b.title)||n}}(t,e,i);L[r.id]=r,N(e)&&I.register("byoc-"+n(t.name),void 0,e),M()}function N(e){return e&&"prototype"in e&&"setAttribute"in e.prototype}function H(e){if("string"!=typeof e){if(e&&"schema"in e)return e;throw Error(`Component name should be a string, got ${typeof e}`)}let[t,i]=e.split("?");var r=L[t];if(i){let t=L[e];if(!t&&!r)return null;t&&(r=Object.assign(Object.assign(Object.assign({},r),t),{component:t.component||(null==r?void 0:r.component)}
1)),i.split(/\&/g).forEach(e=>{var t,i,n;let[s,o]=e.split("="),a=(null==(t=r.schema.properties)?void 0:t[s])||{type:"string"};r=Object.assign(Object.assign({},r),{schema:Object.assign(Object.assign({},r.schema),{properties:Object.assign(Object.assign({},r.schema.properties),{[s]:Object.assign(Object.assign({},a),{default:m(decodeURIComponent(o),a.type)})})}),uiSchema:Object.assign(Object.assign({},r.uiSchema),{[s]:Object.assign(Object.assign({},r.uiSchema[s]),{"ui:widget":null!=(n=null==(i=r.uiSchema[s])?void 0:i["ui:widget"])?n:"hidden"})})})})}return r}function D(e){let{componentName:t,className:i,fallbackWrapper:r,fallback:o,suppressHydrationWarning:a,_dynamic:c,datasources:l}=e,p=T(e,["componentName","className","fallbackWrapper","fallback","suppressHydrationWarning","_dynamic","datasources"]);try{var u="string"==typeof l?JSON.parse(l):l}catch(e){}let d=Object.values(u||{}).find(e=>e&&!Array.isArray(e)&&Object.keys(e).length>0),g=Object.assign(Object.assign(Object.assign({},d),function(e,t={}){var i,r;let n=null==(i=H(e))?void 0:i.schema;return n?Object.assign(Object.assign({},Object.keys((r=n).properties).reduce((e,t)=>{var i,n;return(null==(i=r.properties[t])?void 0:i.default)!=null?Object.assign(Object.assign({},e),{[t]:null==(n=r.properties[t])?void 0:n.default}):e},{})),Object.keys(t).reduce((e,i)=>{let r=t[i],o=s(i),a=null==n?void 0:n.properties[o],c=m(r,null==a?void 0:a.type);return null==c||i.startsWith("data-attribute")||["class","id","contenteditable"].includes(i)?e:Object.assign(Object.assign({},e),{[o]:c})},{})):t}(t,Object.assign(Object.assign({},d),p))),u?{datasources:u}:{}),f=Object.assign(Object.assign({"data-external-id":t},((e={})=>Object.keys(e).reduce((t,i)=>Object.assign(t,{[n(i)]:e[i]}),{}))(g)),{suppressHydrationWarning:!0,class:i});return q.forEach(e=>{Object.assign(f,{[n(e)]:U[e]})}),Object.keys(f).forEach(e=>{let t=f[e];if(t&&"object"==typeof t&&"class"!=e&&"children"!=e)try{Object.assign(f,{[e]:JSON.stringify(t)})}catch(t){delete f[e]}("function"==typeof t||null==t)&&delete f[e]}),{attributes:f,properties:g,merged:Object.assign(Object.assign({},U),g)}}function M(){if(clearTimeout(S),"u">typeof window&&window.parent!==window){"u"<typeof window||k||(k=!0,window.addEventListener("message",e=>{try{"register-components-ack"===("string"==typeof e.data?JSON.parse(e.data):e.data).action&&(x=!0,E=0,clearTimeout(S))}catch(e){}})),x=!1,E=0;let e=()=>{var t;x||E>=150||(null==(t=window.parent)||t.postMessage(JSON.stringify({action:"register-components",data:Object.values(L)}),"*"),E++,!x&&E<150&&(S=setTimeout(e,200)))};S=setTimeout(e,30)}}M();var I=class extends C{connectedCallback(){try{JSON.parse(String(this.getAttribute("components"))).forEach(e=>{H(e.id)||A(null,e)}),JSON.parse(String(this.getAttribute("datasources"))).forEach(e=>{f[e.id]||b(e=>e,e)})}catch(e){}}static register(e,t,i=this){null==t&&(t="u">typeof window?window:void 0),t&&!t.customElements.get(e)&&t.customElements.define(e,class extends i{})}},U={};function J(e){U=e}var q=["sitecoreEdgeUrl","sitecoreEdgeContextId"];I.register("byoc-registration")},81937:(e,t,i)=>{var r=i(81548),n=function(e,t,i,r){return new(i||(i=Promise))(function(n,s){function o(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(o,a)}c((r=r.apply(e,t||[])).next())})};let s="u">typeof HTMLElement?HTMLElement:class{setAttribute(){}};class o extends s{sitecoreContextCallback(e){this.addEventListener("form:engage",t=>{var i,r;"preview"===e.pageState||"edit"===e.pageState?console.log("form:engage",t.detail.formId,t.detail.name,e.uid):null==(i=e.eventsSDK)||i.form(t.detail.formId,t.detail.name,(null==(r=e.uid)?void 0:r.replace(/-/g,""))||"")})}connectedCallback(){var e,t,i,r;let s,o,a=this.getAttribute("form-id");a?(s=this,o={edgeUrl:null!=(t=null==(e=this.getAttribute("sitecore-edge-url"))?void 0:e.toString())?t:null,contextId:null!=(r=null==(i=this.getAttribute("sitecore-edge-context-id"))?void 0:i.toString())?r:null},n(void 0,void 0,void 0,function*(){var e,t;let i,r,c;o&&o.contextId&&o.edgeUrl?(e=o.edgeUrl,t=o.contextId,i=new URL(e).origin+"/v1/forms/publisher/"+a+"?sitecoreContextId="+t):i=(c=(r=a.split("-"))[r.length-1],`https://forms-publisher-${c||"euw"}.sitecorecloud.io`+"/api/v1/forms"+"/"+a);let l=yield function(e){return n(this,void 0,void 0,function*(){return yield(yield fetch(e,{method:"GET",cac
1he:"no-cache"})).text()})}(i);if(s)s.innerHTML=l,Array.from(s.querySelectorAll("script")).forEach(e=>{var t;let i=document.createElement("script");Array.from(e.attributes).forEach(e=>{i.setAttribute(e.name,e.value)}),i.text=e.text,null==(t=null==e?void 0:e.parentNode)||t.replaceChild(i,e)});else throw Error("Second parameter of loadForm needs to be a valid DOM node")})):console.error("Sitecore Form requires form-id attribute to be set.")}}"u"<typeof window||window.customElements.get("sitecore-form")||window.customElements.define("sitecore-form",o),r.Nj(o,{name:"SitecoreForm",isHidden:!0,title:"Sitecore Form",links:{github:"https://github.com/Sitecore-PD/sitecore.cloudsdk.components/tree/master/src/form",npm:"https://www.npmjs.com/package/@sitecore/components",icon:"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='forms'%3e%3crect%20id='Rectangle%208'%20x='2'%20y='4'%20width='20'%20height='7'%20rx='0.5'%20fill='%23AAA4EC'/%3e%3crect%20id='Rectangle%209'%20x='2'%20y='12.5'%20width='12'%20height='7'%20rx='0.5'%20fill='%235548D9'/%3e%3c/g%3e%3c/svg%3e"},properties:{formId:{type:"string"}}})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.