PageSourceSearch

https://www.uberfreight.com/_next/static/chunks/db8192a9-b75e6cbec…?dpl=dpl_HRbPBB1pttt8qXarmQd9LFSf2gpi

js uberfreight.com collected 2026-09-25 15:25:32 UTC 44,750 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2303],{19921:(e,t,i)=>{i.d(t,{B4:()=>ey,CX:()=>ez,Dh:()=>e4,Dr:()=>tb,Gi:()=>eZ,HO:()=>e9,H_:()=>eJ,J4:()=>eb,Lh:()=>h,NU:()=>eH,Nv:()=>tn,Nw:()=>eC,Oc:()=>eP,Oi:()=>td,PJ:()=>eO,Pt:()=>eS,Qm:()=>z,UC:()=>b,VI:()=>to,WN:()=>x,WT:()=>eA,Wb:()=>eg,XA:()=>s,Yz:()=>eN,ZZ:()=>e6,_z:()=>tc,gZ:()=>eT,hL:()=>th,iD:()=>eE,jK:()=>e_,m6:()=>eK,oC:()=>tu,oP:()=>ts,oZ:()=>ef,q8:()=>em,qk:()=>eh,s4:()=>v,sN:()=>tl,uF:()=>eQ,um:()=>eW,vm:()=>eq,xW:()=>ex,yA:()=>e0});var r,n,a,s,o=i(30996),l=i(22182);i(97340);var d=i(66530),u=i(21367);let c={RequestEditorMode:"requestEditorMode",RequestReadOnlyMode:"requestReadOnlyMode",ExperienceUpdated:"componentTreeUpdated",ComponentDraggingChanged:"componentDraggingChanged",ComponentDragCanceled:"componentDragCanceled",ComponentDragStarted:"componentDragStarted",ComponentDragEnded:"componentDragEnded",ComponentMoveEnded:"componentMoveEnded",CanvasResized:"canvasResized",SelectComponent:"selectComponent",HoverComponent:"hoverComponent",UpdatedEntity:"updatedEntity",AssembliesAdded:"assembliesAdded",AssembliesRegistered:"assembliesRegistered",MouseMove:"mouseMove",RequestedEntities:"REQUESTED_ENTITIES"};!function(e){e.READ_ONLY="readOnlyMode",e.EDITOR="editorMode",e.NONE="none"}(r||(r={}));let p={section:{id:"contentful-section",name:"Section"},container:{id:"contentful-container",name:"Container"},columns:{id:"contentful-columns",name:"Columns"},singleColumn:{id:"contentful-single-column",name:"Column"},button:{id:"contentful-button",name:"Button"},heading:{id:"contentful-heading",name:"Heading"},image:{id:"contentful-image",name:"Image"},richText:{id:"contentful-richText",name:"Rich Text"},text:{id:"contentful-text",name:"Text"},divider:{id:"contentful-divider",name:"Divider"},carousel:{id:"contentful-carousel",name:"Carousel"}},f="Assemblies",g=["cfVisibility","cfHorizontalAlignment","cfVerticalAlignment","cfMargin","cfPadding","cfBackgroundColor","cfWidth","cfMaxWidth","cfHeight","cfImageAsset","cfImageOptions","cfBackgroundImageUrl","cfBackgroundImageOptions","cfFlexDirection","cfFlexWrap","cfFlexReverse","cfBorder","cfBorderRadius","cfGap","cfColumnSpan","cfColumnSpanLock","cfColumns","cfFontSize","cfFontWeight","cfLineHeight","cfLetterSpacing","cfTextColor","cfTextAlign","cfTextTransform","cfTextBold","cfTextItalic","cfTextUnderline"];!function(e){e.REQUEST_ENTITIES="REQUEST_ENTITIES",e.REQUESTED_ENTITIES="REQUESTED_ENTITIES"}(n||(n={}));let y=["jpg","png","webp","gif","avif"],m=new Set([p.section.id,p.columns.id,p.container.id,p.singleColumn.id]);Object.values(p).map(e=>e.id);let h=e=>m.has(e??""),b={cfVerticalAlignment:{validations:{in:[{value:"start",displayName:"Align left"},{value:"center",displayName:"Align center"},{value:"end",displayName:"Align right"},{value:"stretch",displayName:"Stretch"}]},type:"Text",group:"style",defaultValue:"center",displayName:"Vertical alignment"},cfHorizontalAlignment:{validations:{in:[{value:"start",displayName:"Align top"},{value:"center",displayName:"Align center"},{value:"end",displayName:"Align bottom"},{value:"stretch",displayName:"Stretch"}]},type:"Text",group:"style",defaultValue:"center",displayName:"Horizontal alignment"},cfVisibility:{displayName:"Visibility toggle",type:"Boolean",group:"style",defaultValue:!0},cfMargin:{displayName:"Margin",type:"Text",group:"style",defaultValue:"0 0 0 0"},cfPadding:{displayName:"Padding",type:"Text",group:"style",defaultValue:"0 0 0 0"},cfBackgroundColor:{displayName:"Background color",type:"Text",group:"style",defaultValue:"rgba(0, 0, 0, 0)"},cfWidth:{displayName:"Width",type:"Text",group:"style",defaultValue:"100%"},cfHeight:{displayName:"Height",type:"Text",group:"style",defaultValue:"fit-content"},cfMaxWidth:{displayName:"Max width",type:"Text",group:"style",defaultValue:"none"},cfFlexDirection:{displayName:"Direction",type:"Text",group:"style",defaultValue:"column"},cfFlexReverse:{displayName:"Reverse Direction",type:"Boolean",group:"style",defaultValue:!1},cfFlexWrap:{displayName:"Wrap objects",type:"Text",group:"style",defaultValue:"nowrap"},cfBorder:{displayName:"Border",type:"Text",group:"style",defaultValue:"0px solid rgba(0, 0, 0, 0)"},cfGap:{displayName:"Gap",type:"Text",group:"style",defaultValue:"0px"},cfHyperlink:{displayName:"URL",type:"Hyperlink",defaultValue:"",validations:{format:"URL",bindingSourceType:["entry","experience","manual"]}},cfOpenInNewTab:{displayName:"URL behaviour",type:"Boolean",defaultValue:!1,description:"Open in new tab"}},v={cfFontSize:{displayName:"Font Size",type:"Text",group:"style",defaultValue:"16px"},cfFontWeight:{validations:{in:[{value:"400",displayName:"Normal"},{value:"500",displayName:"Medium"},{value:"600",displayName:"Semi Bold"}]},displayName:"Font Weight",type:"Text",group:"style",defaultValue:"400"},cfImageAsset:{displayName:"Image",type:"Media",validations:{bindingSourceType:["asset","entry","manual"]}},cfImageOptions:{displayName:"Image options",type:"Object",group:"style",defaultValue:{width:"100%",height:"100%",targetSize:"unset"}}
1,cfBackgroundColor:{displayName:"Background color",type:"Text",group:"style",defaultValue:"rgba(0, 0, 0, 0)"},cfBackgroundImageUrl:{displayName:"Background image",type:"Media",validations:{bindingSourceType:["asset","entry","manual"]}},cfBackgroundImageOptions:{displayName:"Background image options",type:"Object",group:"style",defaultValue:{scaling:"fill",alignment:"left top",targetSize:"2000px"}},cfBorderRadius:{displayName:"Border Radius",type:"Text",group:"style",defaultValue:"0px"},cfLineHeight:{displayName:"Line Height",type:"Text",group:"style",defaultValue:"20px"},cfLetterSpacing:{displayName:"Letter Spacing",type:"Text",group:"style",defaultValue:"0px"},cfTextColor:{displayName:"Text Color",type:"Text",group:"style",defaultValue:"rgba(0, 0, 0, 1)"},cfTextAlign:{validations:{in:[{value:"start",displayName:"Align start"},{value:"center",displayName:"Align center"},{value:"end",displayName:"Align end"}]},displayName:"Text Align",type:"Text",group:"style",defaultValue:"start"},cfTextTransform:{validations:{in:[{value:"none",displayName:"Normal"},{value:"capitalize",displayName:"Capitalize"},{value:"uppercase",displayName:"Uppercase"},{value:"lowercase",displayName:"Lowercase"}]},displayName:"Text Transform",type:"Text",group:"style",defaultValue:"none"},cfTextBold:{displayName:"Bold",type:"Boolean",group:"style",defaultValue:!1},cfTextItalic:{displayName:"Italic",type:"Boolean",group:"style",defaultValue:!1},cfTextUnderline:{displayName:"Underline",type:"Boolean",group:"style",defaultValue:!1}};v.cfBorderRadius,v.cfBackgroundImageUrl,v.cfBackgroundImageOptions,v.cfBorderRadius,v.cfBackgroundImageUrl,v.cfBackgroundImageOptions,b.cfVisibility,v.cfBorderRadius,b.cfVisibility,v.cfBorderRadius,v.cfBackgroundColor,v.cfBackgroundImageUrl,v.cfBackgroundImageOptions,b.cfVisibility,v.cfBorderRadius,v.cfBackgroundColor,v.cfBackgroundImageUrl,v.cfBackgroundImageOptions;let x={},z=e=>{Object.assign(x,(e=>{if(e.text)for(let t in e.text){let i=e.text[t];e.text[t]={emphasis:i.emphasis||"none",fontSize:i.fontSize||"16px",case:i.case||"normal",fontWeight:i.fontWeight||"400",lineHeight:i.lineHeight||"20px",letterSpacing:i.letterSpacing||"0px",color:i.color||"#000000"}}if(e.border)for(let t in e.border){let i=e.border[t];e.border[t]={width:i.width||"1px",style:i.style||"solid",color:i.color||"#000000"}}return e})(e))},E=/\${(\w.+?)}/g,I=(e,t)=>{let[i,r]=e.replace(E,"$1").split("."),n=x[i];if(n&&n[r]){if("cfBorder"===t){let{width:e,style:t,color:i}=n[r];return`${e} ${t} ${i}`}return n[r]}return b[t]?b[t].defaultValue:v[t]?v[t].defaultValue:"0px"},$=o.z.literal("2023-09-28");o.z.union([o.z.literal("2023-08-23"),o.z.literal("2023-07-26"),o.z.literal("2023-06-27")]);let T=o.z.enum(["Text","RichText","Number","Date","Boolean","Location","Media","Object","Hyperlink","Array","Link"]),S=o.z.string().regex(/^[a-zA-Z0-9-_]{1,32}$/,{message:"Property needs to match: /^[a-zA-Z0-9-_]{1,32}$/"}),w=o.z.union([o.z.string(),o.z.boolean(),o.z.number(),o.z.record(o.z.any(),o.z.any()),o.z.undefined()]),k=o.z.array(o.z.object({sys:o.z.object({type:o.z.literal("Link"),id:o.z.string(),linkType:o.z.literal("Entry")})})),V=o.z.string().regex(/^[a-zA-Z0-9-_]{1,21}$/,{message:"Does not match /^[a-zA-Z0-9-_]{1,21}$/"}),j=o.z.record(V,o.z.object({sys:o.z.object({type:o.z.literal("Link"),id:o.z.string(),linkType:o.z.enum(["Entry","Asset"])})})),N=o.z.record(V,o.z.object({value:w})),C=o.z.string().regex(/^[a-zA-Z0-9-_]{1,54}$/,{message:"Does not match /^[a-zA-Z0-9-_]{1,54}$/"}),A=o.z.string().regex(/^[a-zA-Z0-9]{1,8}$/,{message:"Does not match /^[a-zA-Z0-9]{1,8}$/"}),O=(e,t)=>{if(!e.length||"*"!==e[0].query)return void t.addIssue({code:o.z.ZodIssueCode.custom,message:'The first breakpoint should include the following attributes: { "query": "*" }'});if(1===e.length)return;let i=e.map(e=>e.id);if(new Set(i).size!==i.length)return void t.addIssue({code:o.z.ZodIssueCode.custom,message:"Breakpoint IDs must be unique"});let r=e.slice(1),n=r[0].query.startsWith(">"),a=r[0].query.startsWith("<");n?(r.every(({query:e})=>e.startsWith(">"))||t.addIssue({code:o.z.ZodIssueCode.custom,message:'Breakpoint queries must be in the format ">[size]px" for mobile-first strategy'}),r.map(e=>parseInt(e.query.replace(/px|<|>/,""))).every((e,t,i)=>0===t||e>i[t-1])||t.addIssue({code:o.z.ZodIssueCode.custom,message:"When using a mobile-first strategy, all breakpoints must have strictly increasing pixel values"})):a?(r.every(({query:e})=>e.startsWith("<"))||t.addIssue({code:o.z.ZodIssueCode.custom,message:'Breakpoint queries must be in the format "<[size]px" for desktop-first strategy'}),r.map(e=>parseInt(e.query.replace(/px|<|>/,""))).every((e,t,i)=>0===t||e<i[t-1])||t.addIssue({code:o.z.ZodIssueCode.custom,message:"When using a desktop-first strategy, all breakpoints must have strictly decreasing pixel values"})):n||a||t.addIssue({code:o.z.ZodIssueCode.custom,message:"You may only use a mobile-first or desktop-first strategy for breakpoints using '<' or '>' queries"})},B=o.z.record(o.z.lazy(()=>
1w)),M=o.z.array(o.z.enum(["entry","asset","manual","experience"])).nonempty(),D=o.z.object({type:o.z.literal("DesignValue"),valuesByBreakpoint:B}).strict(),_=o.z.object({type:o.z.literal("BoundValue"),path:o.z.string()}).strict(),F=o.z.object({type:o.z.literal("HyperlinkValue"),linkTargetKey:o.z.string(),overrides:o.z.object({}).optional()}).strict(),R=o.z.object({type:o.z.literal("UnboundValue"),key:o.z.string()}).strict(),L=o.z.object({type:o.z.literal("ComponentValue"),key:o.z.string()}).strict(),W=o.z.object({type:o.z.literal("NoValue")}).strict(),q=o.z.discriminatedUnion("type",[D,_,R,F,L,W]),U=o.z.object({type:o.z.literal("BoundValue"),path:o.z.string()}),Z=o.z.record(C,U),P=/^\*$|^[<>][0-9]+px$/,H=o.z.object({id:C,query:o.z.string().refine(e=>P.test(e)),previewSize:o.z.string().optional(),displayName:o.z.string(),displayIcon:o.z.enum(["desktop","tablet","mobile"]).optional()}).strict(),J=o.z.object({id:A.optional(),definitionId:S,prebindingId:o.z.string().optional(),displayName:o.z.string().optional(),slotId:o.z.string().optional(),variables:o.z.record(C,q),parameters:Z.optional()}),Q=o.z.object({displayName:o.z.string().optional(),type:T,description:o.z.string().optional(),group:o.z.string().optional(),defaultValue:w.or(q).optional(),validations:o.z.object({bindingSourceType:M.optional(),required:o.z.boolean().optional(),format:o.z.literal("URL").optional(),in:o.z.array(o.z.object({value:o.z.union([o.z.string(),o.z.number()]),displayName:o.z.string().optional()})).optional()}).optional()}),G=J.extend({children:o.z.lazy(()=>G.array())}).superRefine(({id:e,prebindingId:t,parameters:i},r)=>{t&&!i&&r.addIssue({code:o.z.ZodIssueCode.custom,message:`Found "prebindingId" but no "parameters" for node with i
1d: "${e}"`})}),Y=o.z.object({breakpoints:o.z.array(H).superRefine(O),children:o.z.array(G),schemaVersion:$}).strict(),K=e=>o.z.record(o.z.string(),e);o.z.object({componentTree:K(Y),dataSource:K(j),unboundValues:K(N),usedComponents:K(k).optional()});let X=o.z.object({parameterId:C,type:o.z.literal("ContentTypeMapping"),pathsByContentType:o.z.record(o.z.string(),o.z.object({path:o.z.string()})).superRefine((e,t)=>{let i=t.path[t.path.length-2];Object.keys(e).length>200&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`Too many paths defined for variable mapping with id "${i}", maximum allowed is 200`})})}),ee=o.z.object({nodeId:C,parameterId:C,prebindingId:C}).strict(),et=o.z.object({defaultSource:o.z.strictObject({type:o.z.enum(["Entry"]),contentTypeId:o.z.string(),link:o.z.strictObject({sys:o.z.strictObject({type:o.z.literal("Link"),id:o.z.string(),linkType:o.z.enum(["Entry"])})})}).optional(),contentTypes:o.z.array(o.z.string()).min(1),passToNodes:o.z.array(ee).max(1,'At most one "passToNodes" element is allowed per parameter definition.')}),ei=o.z.record(C,et),er=o.z.record(C,X),en=o.z.record(o.z.string().regex(/^[a-zA-Z0-9-_]{1,54}$/),Q),ea=o.z.object({id:C,parameterDefinitions:ei,variableMappings:er.optional(),allowedVariableOverrides:o.z.array(o.z.string()).optional()}).strict(),es=o.z.object({variableDefinitions:en,thumbnailId:o.z.enum(["columns","columnsPlusRight","imagesSquare","subtitles","rowsPlusBottom","userRectangle","textbox","monitorPlay","article","table","star","heartStraight","frameCorners","rows","dotsThreeOutline","listDashes","checkerBoard","gridFour","slideshow","diamondsFour","cards","textColumns","duplex"]).optional(),category:o.z.string().max(50,"Category must contain at most 50 characters").optional(),prebindingDefinitions:o.z.array(ea).length(1).optional()}).strict().superRefine((e,t)=>{let{variableDefinitions:i,prebindingDefinitions:r}=e;if(!r||0===r.length)return;let{parameterDefinitions:n,variableMappings:a,allowedVariableOverrides:s}=r[0];eo(n,t),el(a,s,t),ed(a,s,i,t),eu(a,n,t)});o.z.object({componentTree:K(Y),dataSource:K(j),unboundValues:K(N),usedComponents:K(k).optional(),componentSettings:K(es)}).superRefine((e,t)=>{let{componentTree:i,componentSettings:r}=e,n=Object.values(i)[0],a=Object.values(r)[0];a&&n&&ec(n.children||[],a||{},t)});let eo=(e,t)=>{Object.values(e).filter(e=>!(e.passToNodes&&e.passToNodes.length>0)).length>1&&t.addIssue({code:o.z.ZodIssueCode.custom,message:"Only one native parameter definition (parameter definition without passToNodes) is allowed per prebinding definition."})},el=(e,t,i)=>{let r=Object.keys(e||{}),n=new Set(t||[]),a=r.filter(e=>n.has(e));a.length>0&&i.addIssue({code:o.z.ZodIssueCode.custom,message:`Found both variable mapping and allowed override for the following keys: ${a.map(e=>`"${e}"`).join(", ")}.`})},ed=(e,t,i,r)=>{let n=Object.entries(i).filter(([e,t])=>"style"!==t.group).map(([e])=>e),a=[...Object.keys(e||{}),...t||[]].filter(e=>!n.includes(e));a.length>0&&r.addIssue({code:o.z.ZodIssueCode.custom,message:`The following variable mappings or overrides are missing from the variable definitions: ${a.map(e=>`"${e}"`).join(", ")}.`})},eu=(e,t,i)=>{let r=Object.keys(t||{});for(let[t,n]of Object.entries(e||{}))r.includes(n.parameterId)||i.addIssue({code:o.z.ZodIssueCode.custom,message:`The variable mapping with id "${t}" references a non-existing parameterId "${n.parameterId}".`})},ec=(e,t,i)=>{if(!t.prebindingDefinitions||0===t.prebindingDefinitions.length)return;let{parameterDefinitions:r}=t.prebindingDefinitions[0],n=new Set;for(let e of Object.values(r||{}))e.passToNodes?.forEach(e=>n.add(e.nodeId));if(!function(e,t){let i=e=>{let r=[...e.children];for(let n of(t(e),r))i(n)};if(Array.isArray(e))for(let t of e)i(t);else i(e)}(e,e=>{e.id&&n.has(e.id)&&n.delete(e.id)}),n.size>0){let e=Array.from(n).map(e=>`"${e}"`).join(", ");i.addIssue({code:o.z.ZodIssueCode.custom,message:`The following node IDs referenced in passToNodes are not present in the component tree: ${e}.`})}};o.z.object({id:S,name:o.z.string(),category:o.z.string().optional(),thumbnailUrl:o.z.string().optional(),thumbnailId:o.z.string().optional(),hyperlinkPattern:o.z.string().optional(),children:o.z.boolean().optional(),slots:o.z.record(S,o.z.object({displayName:o.z.string().optional()})).optional(),builtInStyles:o.z.array(o.z.string()).optional(),tooltip:o.z.object({imageUrl:o.z.string().optional(),description:o.z.string()}).optional(),variables:o.z.record(S,Q.extend({defaultValue:w.optional()}).superRefine((e,t)=>
1{switch(e.type){case"Array":void 0!==e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue is not supported for "Array" type for ${t.path.join(".")}`,fatal:!1});break;case"Boolean":void 0!==e.defaultValue&&"boolean"!=typeof e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue must be a boolean when type is "Boolean" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"Date":void 0!==e.defaultValue&&"string"!=typeof e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue must be a string when type is "Date" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"Hyperlink":void 0!==e.defaultValue&&"string"!=typeof e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue must be a string when type is "Hyperlink" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"Link":void 0!==e.defaultValue&&"object"!=typeof e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue is not supported for "Link" type for ${t.path.join(".")}`,fatal:!1});break;case"Location":void 0!==e.defaultValue&&"object"!=typeof e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue must be an object when type is "Location" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"Media":void 0!==e.defaultValue&&"string"!=typeof e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue must be a string when type is "Media" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"Number":void 0!==e.defaultValue&&"number"!=typeof e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue must be a number when type is "Number" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"Object":void 0!==e.defaultValue&&"object"!=typeof e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue must be an object when type is "Object" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"RichText":void 0!==e.defaultValue&&"object"!=typeof e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue must be an object when type is "RichText" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"Text":void 0!==e.defaultValue&&"string"!=typeof e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue must be a string when type is "Text" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1})}}))}).superRefine((e,t)=>{!0===e.children&&(e.variables.children||e.slots?.children)&&t.addIssue({code:o.z.ZodIssueCode.custom,message:"Cannot activate 'children: true' and name a variable or slot 'children' at the same time",fatal:!1}),e.variables&&e.slots&&Object.keys(e.variables).forEach(i=>{e.slots[i]&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`Variable and slot cannot have the same name: ${i}`,fatal:!1})})}),function(e){e.Type="type",e.Required="required",e.Unexpected="unexpected",e.Regex="regex",e.In="in",e.Size="size",e.Custom="custom"}(a||(a={}));let ep=e=>{switch(e.code){case o.eq.invalid_type:return(e=>{let t="undefined"===e.received?a.Required:a.Type;return{details:"undefined"===e.received?`The property "${e.path.slice(-1)}" is required here`:`The type of "${e.path.slice(-1)}" is incorrect, expected type: ${e.expected}`,name:t,path:e.path,value:e.received.toString()}})(e);case o.eq.unrecognized_keys:return(e=>{let t=e.keys.map(e=>`"${e}"`).join(", ");return{details:e.keys.length>1?`The properties ${t} are not expected`:`The property ${t} is not expected`,name:a.Unexpected,path:e.path}})(e);case o.eq.invalid_enum_value:return(e=>({details:e.message||"Value must be one of expected values",name:a.In,path:e.path,value:e.received.toString(),expected:e.options}))(e);case o.eq.invalid_string:return(e=>({details:e.message||"Invalid string",name:"regex"===e.validation?a.Regex:a.Unexpected,path:e.path}))(e);case o.eq.too_small:return(e=>({details:e.message||`Size should be at least ${e.minimum}`,name:a.Size,path:e.path,min:e.minimum}))(e);case o.eq.too_big:return(e=>({details:e.message||`Size should be at most ${e.maximum}`,name:a.Size,path:e.path,max:e.maximum}))(e);
1case o.eq.invalid_literal:return(e=>({details:e.message||"Value must be one of expected values",name:a.In,path:e.path,value:e.received,expected:[e.expected]}))(e);default:return(e=>({details:e.message||"An unexpected error occurred",name:a.Custom,path:e.path.map(String)}))(e)}},ef=[],eg=e=>{Object.assign(ef,e)},ey=()=>{if(!ef.length)return;let e=(e=>{let t=o.z.array(H).superRefine(O).safeParse(e);return t.success?{success:!0}:{success:!1,errors:t.error.issues.map(ep)}})(ef);if(!e.success)throw Error(`Invalid breakpoints definition. Failed with errors: 
2${JSON.stringify(e.errors,null,2)}`)},em={},eh=e=>{Object.assign(em,e)},eb=()=>({...em}),ev=/(<|>)(\d{1,})(px|cm|mm|in|pt|pc)$/,ex=e=>{let t={};return[e.map(e=>{let i=(({query:e})=>{if("*"===e)return;let t=e.match(ev);if(!t)return;let[,i,r,n]=t;if("<"===i){let e=Number(r)-1;return`(max-width: ${e}${n})`}if(">"===i){let e=Number(r)+1;return`(min-width: ${e}${n})`}})(e);if(!i||"undefined"==typeof window)return;let r=window.matchMedia(i);return t[e.id]=r.matches,{id:e.id,signal:r}}).filter(e=>!!e),t]},ez=(e,t,i)=>{let r,n=e.map(({id:e},r)=>({id:e,index:r,isMatch:t[e]??r===i}));return(r=({isMatch:e})=>e,[...n].reverse().find(r))?.index??i},eE=e=>Math.max(e.findIndex(({query:e})=>"*"===e),0),eI=["cfMargin","cfPadding","cfGap","cfWidth","cfHeight","cfBackgroundColor","cfBorder","cfBorderRadius","cfFontSize","cfLineHeight","cfLetterSpacing","cfTextColor","cfMaxWidth"],e$=e=>null!=e&&""!==e,eT=(e,t,i,r,n,a=!0)=>{let s=e=>a&&n&&eI.includes(n)?((e,t)=>{if(!e)return e;let i="",r=e.match(/(\${.+?}|\S+)/g);if(r)for(let e of r){let r=E.test(e)?I(e,t):e;i+=`${r} `}return i.trim()})(e,n):e;if(!(e instanceof Object))return e;{for(let r=i;r>=0;r--){let i=t[r]?.id;if(e$(e[i]))return s(e[i])}let n=t[r]?.id;if(e$(e[n]))return s(e[n])}};function eS(e,t){if(!e||!t)return e??t;let i={...e.valuesByBreakpoint};for(let[e,r]of Object.entries(t.valuesByBreakpoint))e$(r)&&(i[e]=r);return{type:"DesignValue",valuesByBreakpoint:i}}let ew="cf_debug",ek=()=>{try{if("undefined"==typeof localStorage||null===localStorage)return!1;let e="cf_test_local_storage";if(localStorage.setItem(e,"yes"),"yes"===localStorage.getItem(e))return localStorage.removeItem(e),!0;return!1}catch(e){return!1}},eV=["error","warn","log","debug"];class ej{constructor(){if(this.activeLevel="warn",this.error=this.logger("error"),this.warn=this.logger("warn"),this.log=this.logger("log"),this.debug=this.logger("debug"),!ek())return;"true"===localStorage.getItem(ew)&&(this.activeLevel="debug")}static getInstance(){return null===this.instance&&(this.instance=new ej),this.instance}getActiveLevel(){return this.activeLevel}setActiveLevel(e){this.activeLevel=e,ek()&&("debug"===this.activeLevel||"log"===this.activeLevel?localStorage.setItem(ew,"true"):localStorage.removeItem(ew))}logger(e){return(...t)=>{let i=eV.indexOf(e);i<=eV.indexOf(this.activeLevel)&&console[e](...t)}}}ej.instance=null;let eN=ej.getInstance(),eC=()=>{eN.setActiveLevel("debug"),console.log("Debug mode enabled")},eA=()=>{eN.setActiveLevel("warn"),console.log("Debug mode disabled")};function eO(e){return null!==e&&"object"==typeof e&&!!e.sys?.id&&e.sys?.type==="Link"&&!!e.sys?.linkType}let eB=e=>{let t=eM(e);return!!t&&t.fields.length>1},eM=e=>{let t=eD(e.split("/"),{startNextChunkOnElementEqualTo:"fields"});if(t.length<=1||2===t.length)return null;let[i,...r]=t;return/^\/([^/^~]+)$/.test(i.join("/"))&&r.every(e=>/^fields\/[^/^~]+\/~locale$/.test(e.join("/")))?{key:i[1],fields:r.map(e=>e[1])}:null},eD=(e,{startNextChunkOnElementEqualTo:t})=>{let i=[],r=[],n=e=>e===t;for(let t=0;t<e.length;t++){let a=0===t,s=e[t];a?r=[s]:n(s)?(i.push(r),r=[s]):r.push(s)}return i.push(r),i.filter(e=>e.length>0)},e_=(e,t,i)=>t&&i?function({template:e,context:t}){return e.replace(/{\s*locale\s*}/g,t.locale).replace(/{\s*([\S]+?)\s*}/g,(e,i)=>{let r=i+"_NOT_FOUND",n=function(e,t){let i=function(e,t){let i="fields",r=e.indexOf(i);if(-1!==r){let n=e.indexOf(".",r+i.length+1);if(-1!==n)return e.slice(0,n+1)+t+"."+e.slice(n+1)}return e}(t,e.locale),r=i.replace(/\[/g,".").replace(/\]/g,"").split(".").reduce((e,t)=>
2(e||{})[t],e);return"object"==typeof r&&null!==r?r[e.locale]:r}(t,i)??r;return String("function"==typeof n?n():n)})}({template:e,context:{entry:t,locale:i}}):null,eF=["cfImageAsset"],eR=g.filter(e=>!eF.includes(e)),eL=["cfSsrClassName","cfWrapColumns","cfWrapColumnsCount"],eW=e=>{let t=[...eR,...eL];return Object.fromEntries(Object.entries(e).filter(([e])=>!t.includes(e)))},eq=e=>!1===e?{display:"none !important"}:{},eU=e=>{let t=e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase());return t.replace(/\d+$/,"")},eZ=(e,t=!1)=>Object.entries(e).filter(([,e])=>void 0!==e).map(([e,i])=>t?`${eU(e)}: ${i};`:`${eU(e)}:${i};`).join(t?"\n":""),eP=e=>Object.fromEntries(Object.entries({margin:e.cfMargin,padding:e.cfPadding,backgroundColor:e.cfBackgroundColor,width:e.cfWidth||e.cfImageOptions?.width,height:e.cfHeight||e.cfImageOptions?.height,maxWidth:e.cfMaxWidth,...(e=>e?{gridColumn:`span ${e}`}:{})(e.cfColumnSpan),...(e=>{if(!e)return{};let t=e.split(" ");if(t.length<3)return{border:e};let[i,r,...n]=t,a=n.join(" ");return{border:`${i} ${r} ${a}`}})(e.cfBorder),borderRadius:e.cfBorderRadius,gap:e.cfGap,...((e,t,i="column")=>"row"===i?{alignItems:e,justifyContent:"center"===t?`safe ${t}`:t}:{alignItems:t,justifyContent:"center"===e?`safe ${e}`:e})(e.cfHorizontalAlignment,e.cfVerticalAlignment,e.cfFlexDirection),flexDirection:e.cfFlexReverse&&e.cfFlexDirection?`${e.cfFlexDirection}-reverse`:e.cfFlexDirection,flexWrap:e.cfFlexWrap,...((e,t)=>{let i,r;if(e){if("string"==typeof e)i=`url(${e})`;else{let t=e.srcSet?.join(",");i=`url(${e.url})`,r=`image-set(${t})`}return{backgroundImage:i,backgroundImage2:r,backgroundRepeat:t?.scaling==="tile"?"repeat":"no-repeat",backgroundPosition:(e=>{if(!e||"string"!=typeof e)return;let[t,i]=e.trim().split(/\s+/,2),r=["left","right","center"].includes(t),n=["top","bottom","center"].includes(i);return t=r?t:"left",i=n?i:"top",`${t} ${i}`})(t?.alignment),backgroundSize:(e=>"fill"===e?"cover":"fit"===e?"contain":void 0)(t?.scaling)}}})(e.cfBackgroundImageUrl,e.cfBackgroundImageOptions),fontSize:e.cfFontSize,fontWeight:e.cfTextBold?"bold":e.cfFontWeight,fontStyle:e.cfTextItalic?"italic":void 0,textDecoration:e.cfTextUnderline?"underline":void 0,lineHeight:e.cfLineHeight,letterSpacing:e.cfLetterSpacing,color:e.cfTextColor,textAlign:(e=>{if(e){if(!eb().__disableTextAlignmentTransform){if("left"===e)return"start";if("right"===e)return"end"}return e}})(e.cfTextAlign),textTransform:e.cfTextTransform,objectFit:e.cfImageOptions?.objectFit,objectPosition:e.cfImageOptions?.objectPosition}).filter(([,e])=>void 0!==e)),eH=(e,t)=>{let i,r;return!t.children.length&&(i=t.definitionId,r=e.height,h(i)&&!r?.toString().endsWith("px"))?{...e,minHeight:"80px"}:e},eJ=({componentId:e,usedComponents:t})=>!!t?.length&&t.some(t=>t.sys.id===e),eQ=e=>e?.category===f;function eG(e){let t=e.match(/^(\d+(\.\d+)?)(px|em|rem)$/);return t?{value:parseFloat(t[1]),unit:t[3]}:null}function eY(e){switch(e.unit){case"px":default:return e.value;case"em":case"rem":return 16*e.value}}let eK=e=>({id:e,name:"Component",variables:{},children:!0,category:f}),eX=e=>{let[t,i]=[e[0],e.substring(1)];return`(${"<"===t?"max-width":"min-width"}:${i})`},e0=({cssByClassName:e,condition:t,nextCondition:i})=>{let r=Object.entries(e).reduce((e,[t,i])=>""===i?e:`${e}.${t}{${i}}`,"");if(""===r)return"";let n=eX(t);if(!i)return"*"===t?r:`@media${n}{${r}}`;let a=eX(i);return"*"===t?`@media not ${a}{${r}}`:`@media${n} and (not ${a}){${r}}`};function e1(e,t,i,r){e.startsWith("//")&&(e="https:"+e);let n=new URLSearchParams;t&&n.append("w",t.toString()),i&&i>0&&i<100&&n.append("q",i.toString()),r&&n.append("fm",r);let a=n.toString();return`${e}${a?"?"+a:""}`}function e2(e,t,i){if(!e.details.image)throw Error("No image in file asset to transform");if(t<0||t>100)throw Error("Quality must be between 0 and 100");if(i&&!y.includes(i))throw Error(`Format must be one of ${y.join(", ")}`);return!0}let e3=(e,t,i="100%",r)=>{let n=Number(i.replace("%",""));e2(e,n,r),e2(e,n,r);let a=e.url,{width1x:s,width2x:o}=function(e,t){let i=0,r=0,n=t.details.image.width;return r=Math.min(2*(i=e.endsWith("px")?Math.min(Number(e.replace("px","")),n):Math.min(2e3,n)),n),{width1x:i,width2x:r}}(t,e),l=e1(a,s,n,r),d=e1(a,o,n,r),u=[`url(${l}) 1x`,`url(${d}) 2x`];return{url:e1(a,o,n,r),srcSet:u,file:e}},e9=e=>g.includes(e),e4=(e,t,i)=>"string"==typeof t&&e9(e)?t.replace(/\$\{(\w[^}]*)}/g,(t,r)=>{let n=i[r];if(!n)return b[e]?.defaultValue?String(b[e].defaultValue):v[e]?.defaultValue?String(v[e].defaultValue):"0px";if(("cfBorder"===e||e.startsWith("cfBorder_"))&&"object"==typeof n){let{width:e,style:t,color:i}=n;return`${e} ${t} ${i}`}return String(n)}).replace(/  +/g," "):t,e6=e=>{let t=(e,i="")=>Object.entries(e).reduce((e,[r,n])=>{let a=i?`${i}.${r}`:r;return!n||"object"!=typeof n||Array.isArray(n)||"object"==typeof n&&("width"in n||"style"in n||"color"in n)?{...e,[a]:n}:{...e,...t(n,a)}},{});return t(e)};function e5(e,t){if(!t.length)return e;try{let[i,...r]=t;return e5(e[i],r)}catch(e){return}}let e8=(e,t)=>
2{let i=e5(e,t.split("/").slice(2,-1));return i&&"object"==typeof i&&i.url?i.url:i},e7=(e,t)=>{if(e){if(e?.data?.target?.sys?.type==="Link"){let i=t.getEntityFromLink(e.data.target);i&&(e.data.target=i)}"content"in e&&Array.isArray(e.content)&&e.content.forEach(e=>e7(e,t))}},te=e=>e?.sys?.type==="Entry"&&!!e.fields?.title&&!!e.fields?.slug&&!!e.fields?.componentTree&&Array.isArray(e.fields.componentTree.breakpoints)&&Array.isArray(e.fields.componentTree.children)&&"string"==typeof e.fields.componentTree.schemaVersion,tt=e=>null!==e&&"object"==typeof e&&"sys"in e&&e.sys?.type==="Entry",ti=e=>null!==e&&"object"==typeof e&&"sys"in e&&e.sys?.type==="Asset",tr=e=>void 0!==e,tn=(e,t,i,r,n,a,s)=>{let o=t.getEntryOrAsset(i,s);if(o)switch(a){case"Media":if("Entry"===o.sys.type)return e8(o,s);return((e,t,i,r,n)=>{if(!eB(n)&&!((e,t)=>{let i=e.split("/");return i.length<2?(eN.warn(`[experiences-core::pathSchema] Attempting to check whether last named segment of the path (${e}) equals to '${t}', but the path doesn't have enough segments.`),!1):i[i.length-2]===t})(n,"file"))return e8(e,n);if("cfImageAsset"===r){let r="cfImageOptions",n=i(t[r]?.type==="DesignValue"?t[r].valuesByBreakpoint:{});if(!n)return void eN.error(`[experiences-core::transformMedia] Error transforming image asset: Required variable [${r}] missing from component definition`);try{return(({file:e,sizes:t,loading:i,quality:r="100%",format:n})=>{let a=Number(r.replace("%",""));e2(e,a,n);let s=e.url,o=Math.min(e.details.image.width,4e3),l=Math.max(2,Math.ceil(o/500)),d=Array.from({length:l},(e,t)=>Math.ceil(o/l*(t+1))),u=t?d.map(e=>`${e1(s,e,a,n)} ${e}w`):[],c=e.details.image.width;return c>4e3&&u.push(`${e1(s,void 0,a,n)} ${c}w`),{url:e1(s,e.details.image.width>2e3?2e3:void 0,a,n),srcSet:u,sizes:t,file:e,loading:i}})({file:e.fields.file,loading:n.loading,sizes:n.targetSize,quality:n.quality,format:n.format})}catch(e){eN.error("[experiences-core::transformMedia] Error transforming image asset",e)}return}if("cfBackgroundImageUrl"===r){let r=i(t.cfWidth?.type==="DesignValue"?t.cfWidth.valuesByBreakpoint:{},"cfWidth")||"100%",n="cfBackgroundImageOptions",a=i(t[n]?.type==="DesignValue"?t[n].valuesByBreakpoint:{});if(!a)return void eN.error(`[experiences-core::transformMedia] Error transforming image asset: Required variable [${n}] missing from component definition`);try{let t=e.fields.file?.details,i=t?.image?.width||0,n=eG(a.targetSize),s=n?eY(n):i;return s<i&&(r=`${s}px`),e3(e.fields.file,r,a.quality,a.format)}catch(e){eN.error("[experiences-core::transformMedia] Error transforming image asset",e)}return}return e.fields.file?.url})(o,e,r,n,s);case"RichText":return((e,t,i)=>{let r=e8(e,i);if("string"==typeof r)return{data:{},content:[{nodeType:d.nA.PARAGRAPH,data:{},content:[{data:{},nodeType:"text",value:r,marks:[]}]}],nodeType:d.nA.DOCUMENT};if("object"==typeof r&&r.nodeType===d.nA.DOCUMENT){let e=l(r);return e7(e,t),e}})(o,t,s);case"Array":return function(e,t,i){if("Asset"===e.sys.type)return e;let r=t.split("/").slice(2,-1),n=e5(e,r);if(!Array.isArray(n))return void eN.warn(`[experiences-core::getArrayValue] A field '${r}' of an entity was bound to an Array variable. Expected value of that field to be an array, but got: ${JSON.stringify(n)}`,{entity:e});let a=n.map(e=>{if("string"==typeof e)return e;if(e?.sys?.type!=="Link")return void eN.warn(`[experiences-core::getArrayValue] Expected value to be a string or Link, but got: ${JSON.stringify(e)}`);{let t=i.getEntityFromLink(e);if(!t)return;return t}}).filter(tr);return a.length>0?a:void 0}(o,s,t);case"Link":return function(e,t,i){let r;if(ti(e))return e;if(!tt(e))throw Error(`Expected an Entry or Asset, but got: ${JSON.stringify(e)}`);let n=t.split("/").slice(2,-1),a=e5(e,n);if(ti(a)||tt(a))r=a;else{if(a?.sys.type!=="Link")return void eN.warn(`[experiences-core::getResolvedEntryFromLink] When attempting to follow link in field '${n}' of entity, the value is expected to be a link, but got: ${JSON.stringify(a)}`,{entity:e});r=i.getEntityFromLink(a)}if(r)return r}(o,s,t);default:return e8(o,s)}};class ta extends Error{constructor(e){super(e)}}let ts=e=>{try{return to(e),!1}catch(e){if(e instanceof ta)return e.message;throw e}},to=e=>{if(!e.data)throw new ta("Field event.data is missing");if("string"!=typeof e.data)throw new ta(`Field event.data must be a string, instead of '${typeof e.data}'`);if(!(e=>{try{let t=JSON.parse(e);if("object"!=typeof t)return!1;return!0}catch(e){return!1}})(e.data))throw new ta("Field event.data must be a valid JSON object serialized as string");let t=JSON.parse(e.data);if(!t.source)throw new ta("Field eventData.source must be equal to 'composability-app'");
2if("composability-app"!==t.source)throw new ta(`Field eventData.source must be equal to 'composability-app', instead of '${t.source}'`);let i=Object.values(c);if(!i.includes(t.eventType)&&t.eventType!==n.REQUESTED_ENTITIES)throw new ta(`Field eventData.eventType must be one of the supported values: [${i.join(", ")}]`);return t},tl=({locale:e,mode:t})=>{if(t!==r.EDITOR&&t!==r.READ_ONLY&&!e)throw Error('Parameter "locale" is required for experience builder initialization outside of editor mode')},td=(e,t)=>{let i=e=>"data"in e?e.data.slotId:e.slotId,r={};for(let n in t.slots){let t=e.filter(e=>i(e)===n);r[n]=t.length?t:null}let n=e.filter(e=>void 0===i(e));return t.children&&n.length?{slotNodesMap:r,directChildNodes:n}:{slotNodesMap:r,directChildNodes:void 0}},tu=(e=[])=>{if(!e||!Array.isArray(e)||!e.length)return{dataSource:{},parameters:{}};let t=e[0],i={},r={};for(let[e,n]of Object.entries(t.parameterDefinitions??{}))if(n.defaultSource&&eO(n.defaultSource.link)){let t=n.defaultSource.link.sys.id;i[t]=n.defaultSource.link,r[e]={type:"BoundValue",path:`/${t}`}}return{dataSource:i,parameters:r}},tc=(e,t)=>{"undefined"!=typeof window&&(eN.debug(`[experiences-sdk-react::sendMessage] Sending message [${e}]`,{source:"customer-app",eventType:e,payload:t}),window.parent?.postMessage({source:"customer-app",eventType:e,payload:t},"*"))};function tp(e){for(let t of Object.getOwnPropertyNames(e)){let i=e[t];i&&"object"==typeof i&&tp(i)}return Object.freeze(e)}class tf{constructor({entities:e,locale:t}){for(let i of(this.entryMap=new Map,this.assetMap=new Map,this.locale=t,e))this.addEntity(i)}get entities(){return[...this.entryMap.values(),...this.assetMap.values()]}updateEntity(e){this.addEntity(e)}getEntryOrAsset(e,t){let i;if(eB(t))return this.getDeepEntry(e,t);if(eO(e)){let t="Entry"===e.sys.linkType?this.entryMap.get(e.sys.id):this.assetMap.get(e.sys.id);if(!t||t.sys.type!==e.sys.linkType)return void eN.warn(`[experiences-core::EntityStoreBase] Experience references unresolved entity: ${JSON.stringify(e)}`);i=t}else if(ti(e)||tt(e))i=e;else throw Error(`[experiences-core::EntityStoreBase] Unexpected object when resolving entity: ${JSON.stringify(e)}`);return i}getValue(e,t){let i=this.getEntity(e.sys.linkType,e.sys.id);return i?e5(i,t):void eN.warn(`Unresolved entity reference: ${e.sys.linkType} with ID ${e.sys.id}`)}getEntityFromLink(e){let t="Entry"===e.sys.linkType?this.entryMap.get(e.sys.id):this.assetMap.get(e.sys.id);return t&&t.sys.type===e.sys.linkType?t:void eN.warn(`[experiences-core::EntityStoreBase] Experience references unresolved entity: ${JSON.stringify(e)}`)}getAssetById(e){let t=this.assetMap.get(e);return t||void eN.warn(`[experiences-core::EntityStoreBase] Asset with ID "${e}" is not found in the store`)}getEntryById(e){let t=this.entryMap.get(e);return t||void eN.warn(`[experiences-core::EntityStoreBase] Entry with ID "${e}" is not found in the store`)}getEntitiesFromMap(e,t){let i=[],r=[];for(let n of t){let t=this.getEntity(e,n);t?i.push(t):r.push(n)}return{resolved:i,missing:r}}addEntity(e){if(ti(e))this.assetMap.set(e.sys.id,tp(l(e)));else if(tt(e))this.entryMap.set(e.sys.id,tp(l(e)));else throw Error(`Attempted to add an entity to the store that is neither Asset nor Entry: '${JSON.stringify(e)}'`)}async fetchAsset(e){let{resolved:t,missing:i}=this.getEntitiesFromMap("Asset",[e]);return i.length?void eN.warn(`[experiences-core::EntityStoreBase] Asset "${e}" is not in the store`):t[0]}async fetchAssets(e){let{resolved:t,missing:i}=this.getEntitiesFromMap("Asset",e);if(i.length)throw Error(`Missing assets in the store (${i.join(",")})`);return t}async fetchEntry(e){let{resolved:t,missing:i}=this.getEntitiesFromMap("Entry",[e]);return i.length?void eN.warn(`[experiences-core::EntityStoreBase] Entry "${e}" is not in the store`):t[0]}async fetchEntries(e){let{resolved:t,missing:i}=this.getEntitiesFromMap("Entry",e);if(i.length)throw Error(`Missing assets in the store (${i.join(",")})`);return t}getDeepEntry(e,t){let i=(e,t)=>{let i=[],r=t;for(let t=0;t<e.length;t++){let n=t===e.length-1,[,a,s]=e[t];if(!r)throw Error(`Logic Error: Cannot resolve field ${a} of a fieldset as there is no entity to resolve it from.`);if(n){i.push([r,a,s]);break}let o=e5(r,["fields",a]);if(void 0===o)return{resolvedFieldset:i,isFullyResolved:!1,reason:`Cannot resolve field Link<${r.sys.type}>(sys.id=${r.sys.id}).fields[${a}] as field value is not defined`};if(eO(o)){let e=this.getEntityFromLink(o);if(void 0===e)return{resolvedFieldset:i,isFullyResolved:!1,reason:`Field reference Link (sys.id=${o.sys.id}) not found in the EntityStore, waiting...`};i.push([r,a,s]),r=e}else{if(!(ti(o)||tt(o)))return{resolvedFieldset:i,isFullyResolved:!1,reason:`Deep path points to an invali
2d field value of type '${typeof o}' (value=${o})`};i.push([r,a,s]),r=o}}return{resolvedFieldset:i,isFullyResolved:!0}},r=eO(e)?this.getEntityFromLink(e):e;if(void 0===r)return;let{resolvedFieldset:n,isFullyResolved:a,reason:s}=i((e=>{let t=eM(e);if(null===t)throw Error(`Cannot parse path '${e}' as deep path`);return t.fields.map(e=>[null,e,"~locale"])})(t),r);if(!a){s&&eN.log(`[experiences-core::EntityStoreBase] Deep path wasn't resolved till leaf node, falling back to undefined, because: ${s}`);return}let[o]=n[n.length-1];return o}getEntity(e,t){return"Asset"===e?this.assetMap.get(t):this.entryMap.get(t)}toJSON(){return{entryMap:Object.fromEntries(this.entryMap),assetMap:Object.fromEntries(this.assetMap),locale:this.locale}}}let tg=({experienceEntryFields:e,parentComponents:t})=>{let i=[],r=e?.usedComponents;if(!r||0===r.length)return[];for(let e of r)if("fields"in e){if(i.push(e),t.has(e.sys.id))continue;i.push(...tg({experienceEntryFields:e.fields,parentComponents:new Set([...t,e.sys.id])}))}return i};class ty extends tf{constructor(e){let t;if("string"==typeof e){let t=JSON.parse(e).entityStore;super({entities:[...Object.values(t.entryMap),...Object.values(t.assetMap)],locale:t.locale}),this._hoistedParameterDefinitions={},this._hoistedVariableMappings={},this._experienceEntryFields=t._experienceEntryFields,this._experienceEntryId=t._experienceEntryId,this._unboundValues=t._unboundValues}else{let{experienceEntry:t,entities:i,locale:r}=e;if(!te(t))throw Error("Provided entry is not an experience entry");super({entities:i,locale:r}),this._hoistedParameterDefinitions={},this._hoistedVariableMappings={},this._experienceEntryFields=t.fields,this._experienceEntryId=t.sys.id,this._unboundValues=t.fields.unboundValues}this._isExperienceAPatternEntry=(t={fields:this._experienceEntryFields},!!t.fields?.componentSettings);{let e=(this._experienceEntryFields.usedComponents??[]).map(e=>eO(e)?this.getEntityFromLink(e):e).filter(e=>void 0!==e);this._hoistedParameterDefinitions=ty.calculateHoistedParameterDefinitions(this._experienceEntryFields,e),this._hoistedVariableMappings=ty.calculateHoistedVariableMappings(this._experienceEntryFields,e)}this._usedComponentsWithDeepReferences=tg({experienceEntryFields:this._experienceEntryFields,parentComponents:new Set([this._experienceEntryId])})}static calculateHoistedParameterDefinitions(e,t){let i={};return i=Object.assign(i,e.componentSettings?.prebindingDefinitions?.[0].parameterDefinitions||{}),t.forEach(e=>{i={...i,...e.fields.componentSettings?.prebindingDefinitions?.[0].parameterDefinitions}}),t.flatMap(e=>(e.fields.usedComponents||[]).filter(e=>void 0!==e&&te(e))).forEach(e=>{i={...i,...e.fields.componentSettings?.prebindingDefinitions?.[0].parameterDefinitions}}),i}static calculateHoistedVariableMappings(e,t){let i={};return i=Object.assign(i,e.componentSettings?.prebindingDefinitions?.[0].variableMappings||{}),t.forEach(e=>{i={...i,...e.fields.componentSettings?.prebindingDefinitions?.[0].variableMappings}}),t.flatMap(e=>(e.fields.usedComponents||[]).filter(e=>void 0!==e&&te(e))).forEach(e=>{i={...i,...e.fields.componentSettings?.prebindingDefinitions?.[0].variableMappings}}),i}getCurrentLocale(){return this.locale}get isExperienceAPatternEntry(){return this._isExperienceAPatternEntry}get hoistedVariableMappings(){return this._hoistedVariableMappings}get hoistedParameterDefinitions(){return this._hoistedParameterDefinitions}get experienceEntryFields(){return this._experienceEntryFields}get experienceEntryId(){return this._experienceEntryId}get schemaVersion(){return this._experienceEntryFields?.componentTree.schemaVersion}get breakpoints(){return this._experienceEntryFields?.componentTree.breakpoints??[]}get dataSource(){return this._experienceEntryFields?.dataSource??{}}get unboundValues(){return this._unboundValues??{}}get usedComponents(){return this._usedComponentsWithDeepReferences??[]}addAssemblyUnboundValues(e){this._unboundValues={...e,...this._unboundValues??{}}}getValue(e,t){var i;let r=eO(e)?this.getEntityFromLink(e):e;if(void 0!==r)return(i=e5(r,t))&&"object"==typeof i&&i.url?i.url:i}toJSON(){return{_experienceEntryFields:this._experienceEntryFields,_experienceEntryId:this._experienceEntryId,_unboundValues:this._unboundValues,...super.toJSON()}}}class tm extends tf{constructor(){super({entities:[],locale:"uninitialized-locale-in-uninitialized-entity-store"})}}let th=(0,u.vt)((e,t)=>({entityStore:new tm,areEntitiesFetched:!1,setEntitiesFetched(t){e({areEntitiesFetched:t})},resolveAssetById(e){if(!e)return;let{entityStore:i}=t();return i.getAssetById(e)},resolveEntryById(e){if(!e)return;let{entityStore:i}=t();return i.getEntryById(e)},resolveEntity(e){if(!e)return;let{entityStore:i}=t();return i.getEntityFromLink(e)},resetEntityStore(t){e({entityStore:t,areEntitiesFetched:!1})}}));function tb(e){let t;if("string"==typeof e)t=new ty(e);else{let{experienceEntry:i,referencedAssets:r,referencedEntries:n,locale:a}=e;if([i,...r,...n].some(tv))throw Error("Some of the provided content is not localized. Please localize every entity before passing it to this function. Note that this is solely determined by `sys.locale` being set respectively.");if(!te(i))throw Error("Provided entry is not an experience entry");t=new ty({experienceEntry:i,entities:[...n,...r],locale:a})}return th.getState().resetEntityStore(t),{entityStore:t}}!function(e){e.LazyLoad="lazyLoad",e.InjectScript="injectScript"}(s||(s={}));let tv=e=>!e.sys.locale}}]);

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.