1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8075],{1668:function(e,t,r){r.d(t,{Hr:function(){return t7},Pt:function(){return tV}});var n=r(53957),i=r(15311),a=r(20132),o=r(94434),l=r(72108),s=r(27143),d=r(19805),u=r(67331),c=r(95577),p=r(37485),h=r(1684),m=r(68298),v=r(4356),x=r(88636),y=r(12617),g=r(54866),f=r(53394),b=r(36484),_=r(96281),j=(0,n.Ee)({"../../node_modules/classnames/index.js"(e,t){(0,n.oX)(),function(){var e={}.hasOwnProperty;function r(){for(var t="",i=0;i<arguments.length;i++){var a=arguments[i];a&&(t=n(t,function(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return r.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var i="";for(var a in t)e.call(t,a)&&t[a]&&(i=n(i,a));return i}(a)))}return t}function n(e,t){return t?e?e+" "+t:e+t:e}void 0!==t&&t.exports?(r.default=r,t.exports=r):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return r}):window.classNames=r}()}});(0,n.oX)(),(0,n.oX)(),(0,n.oX)(),(0,n.oX)(),(0,n.oX)(),(0,n.oX)(),(0,n.oX)(),(0,n.oX)(),(0,n.oX)(),(0,n.oX)(),(0,n.oX)(),(0,n.oX)(),(0,n.oX)(),(0,n.oX)();var E=(0,n.v)(j()),k=(e,t,r={baseClass:""})=>(i={})=>
1{if("string"==typeof i)return t[`${e}-${i}`]&&r.baseClass+t[`${e}-${i}`]||"";if("object"!=typeof i)return r.baseClass+t[e]||"";{let a={};for(let r in i)a[t[`${e}--${r}`]]=i[r];let o=t[e];return r.baseClass+(0,E.default)((0,n.ih)({[o]:!!o},a))}};(0,n.oX)();var I=k("ActionBar",{ActionBar:"_ActionBar_rvadt_1","ActionBar-label":"_ActionBar-label_rvadt_18","ActionBar-action":"_ActionBar-action_rvadt_30","ActionBar-group":"_ActionBar-group_rvadt_38"}),S=({label:e,children:t})=>(0,i.jsxs)("div",{className:I(),onClick:e=>{e.stopPropagation()},children:[e&&(0,i.jsx)(S.Group,{children:(0,i.jsx)("div",{className:I("label"),children:e})}),t]});S.Action=({children:e,label:t,onClick:r})=>(0,i.jsx)("button",{type:"button",className:I("action"),onClick:r,title:t,children:e}),S.Label=({label:e})=>(0,i.jsx)("div",{className:I("label"),children:e}),S.Group=({children:e})=>(0,i.jsx)("div",{className:I("group"),children:e}),(0,n.oX)(),(0,n.oX)();var w={InputWrapper:"_InputWrapper_py9hf_1","Input-label":"_Input-label_py9hf_5","Input-labelIcon":"_Input-labelIcon_py9hf_14","Input-disabledIcon":"_Input-disabledIcon_py9hf_21","Input-input":"_Input-input_py9hf_26",Input:"_Input_py9hf_1","Input--readOnly":"_Input--readOnly_py9hf_76","Input-radioGroupItems":"_Input-radioGroupItems_py9hf_87","Input-radio":"_Input-radio_py9hf_87","Input-radioInner":"_Input-radioInner_py9hf_104","Input-radioInput":"_Input-radioInput_py9hf_149"};(0,n.oX)(),(0,n.oX)(),(0,n.oX)();var C={ArrayField:"_ArrayField_14u8o_5","ArrayField--isDraggingFrom":"_ArrayField--isDraggingFrom_14u8o_13","ArrayField-addButton":"_ArrayField-addButton_14u8o_18","ArrayField--hasItems":"_ArrayField--hasItems_14u8o_33","ArrayField-inner":"_ArrayField-inner_14u8o_59",ArrayFieldItem:"_ArrayFieldItem_14u8o_67","ArrayFieldItem--isDragging":"_ArrayFieldItem--isDragging_14u8o_78","ArrayFieldItem--isExpanded":"_ArrayFieldItem--isExpanded_14u8o_82","ArrayFieldItem-summary":"_ArrayFieldItem-summary_14u8o_97","ArrayField--addDisabled":"_ArrayField--addDisabled_14u8o_127","ArrayFieldItem-body":"_ArrayFieldItem-body_14u8o_166","ArrayFieldItem-fieldset":"_ArrayFieldItem-fieldset_14u8o_175","ArrayFieldItem-rhs":"_ArrayFieldItem-rhs_14u8o_183","ArrayFieldItem-actions":"_ArrayFieldItem-actions_14u8o_189"};(0,n.oX)(),(0,n.oX)(),(0,n.oX)();var z=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Z=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim();(0,n.oX)(),(0,n.oX)();var N={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},P=(0,a.forwardRef)((e,t)=>{var{color:r="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:l,className:s="",children:d,iconNode:u}=e,c=(0,n.S0)(e,["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"]);return(0,a.createElement)("svg",(0,n.ih)((0,n.EZ)((0,n.ih)({ref:t},N),{width:i,height:i,stroke:r,strokeWidth:l?24*Number(o)/Number(i):o,className:Z("lucide",s)}),c),[...u.map(([e,t])=>(0,a.createElement)(e,t)),...Array.isArray(d)?d:[d]])}),X=(e,t)=>{let r=(0,a.forwardRef)((r,i)=>{var{className:o}=r,l=(0,n.S0)(r,["className"]);return(0,a.createElement)(P,(0,n.ih)({ref:i,iconNode:t,className:Z(`lucide-${z(e)}`,o)},l))});return r.displayName=`${e}`,r};(0,n.oX)();var M=X("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);(0,n.oX)();var D=X("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);(0,n.oX)();var L=X("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);(0,n.oX)();var T=X("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);(0,n.oX)();var A=X("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);(0,n.oX)();var O=X("CornerLeftUp",[["polyline",{points:"14 9 9 4 4 9",key:"m9oyvo"}],["path",{d:"M20 20h-7a4 4 0 0 1-4-4V4",key:"1blwi3"}]]);(0,n.oX)();var B=X("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);(0,n.oX)();var F=X("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);(0,n.oX)();var R=X("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}
1]]);(0,n.oX)();var $=X("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);(0,n.oX)();var H=X("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);(0,n.oX)();var V=X("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);(0,n.oX)();var q=X("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);(0,n.oX)();var U=X("LockOpen",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]);(0,n.oX)();var W=X("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);(0,n.oX)();var K=X("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);(0,n.oX)();var Y=X("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);(0,n.oX)();var G=X("PanelRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);(0,n.oX)();var J=X("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);(0,n.oX)();var Q=X("Redo2",[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]]);(0,n.oX)();var ee=X("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);(0,n.oX)();var et=X("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);(0,n.oX)();var er=X("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);(0,n.oX)();var en=X("Tablet",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]]);(0,n.oX)();var ei=X("Trash",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]]);(0,n.oX)();var ea=X("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);(0,n.oX)();var eo=X("Undo2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);(0,n.oX)();var el=X("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);(0,n.oX)();var es=X("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);(0,n.oX)(),(0,n.oX)(),(0,n.oX)(),(0,n.oX)(),(0,n.oX)(),(0,n.oX)(),(0,n.oX)();var ed=(e,t,r)=>{let n=Array.from(e),[i]=n.splice(t,1);return n.splice(r,0,i),n};(0,n.oX)();var eu=(e,t,r)=>{let n=Array.from(e);return n.splice(t,1),n.splice(t,0,r),n};(0,n.oX)();
1var ec=k("Loader",{Loader:"_Loader_nacdm_13","loader-animation":"_loader-animation_nacdm_1"}),ep=e=>{var{color:t,size:r=16}=e,a=(0,n.S0)(e,["color","size"]);return(0,i.jsx)("span",(0,n.ih)({className:ec(),style:{width:r,height:r,color:t},"aria-label":"loading"},a))},eh=k("IconButton",{IconButton:"_IconButton_swpni_1","IconButton--disabled":"_IconButton--disabled_swpni_20","IconButton-title":"_IconButton-title_swpni_33"}),em=({children:e,href:t,onClick:r,variant:n="primary",type:o,disabled:l,tabIndex:s,newTab:d,fullWidth:u,title:c})=>{let[p,h]=(0,a.useState)(!1);return(0,i.jsxs)(t?"a":"button",{className:eh({primary:"primary"===n,secondary:"secondary"===n,disabled:l,fullWidth:u}),onClick:e=>{r&&(h(!0),Promise.resolve(r(e)).then(()=>{h(!1)}))},type:o,disabled:l||p,tabIndex:s,target:d?"_blank":void 0,rel:d?"noreferrer":void 0,href:t,title:c,children:[(0,i.jsx)("span",{className:eh("title"),children:c}),e,p&&(0,i.jsxs)(i.Fragment,{children:["\xa0\xa0",(0,i.jsx)(ep,{size:14})]})]})};(0,n.oX)(),(0,n.oX)();var ev=k("DragIcon",{DragIcon:"_DragIcon_17p8x_1","DragIcon--disabled":"_DragIcon--disabled_17p8x_8"}),ex=({isDragDisabled:e})=>(0,i.jsx)("div",{className:ev({disabled:e}),children:(0,i.jsx)("svg",{viewBox:"0 0 20 20",width:"12",fill:"currentColor",children:(0,i.jsx)("path",{d:"M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z"})})});(0,n.oX)(),(0,n.oX)(),(0,n.oX)();var ey=(e,t,r)=>{if("object"==typeof t.state){let i=(0,n.ih)((0,n.ih)({},e),t.state);return t.state.indexes?i:(console.warn("`set` is expensive and may cause unnecessary re-renders. Consider using a more atomic action instead."),(0,n.vV)(i,r.config))}return(0,n.ih)((0,n.ih)({},e),t.state(e))};(0,n.oX)(),(0,n.oX)();var eg=(e,t,r)=>{let n=Array.from(e||[]);return n.splice(t,0,r),n};(0,n.oX)();var ef=e=>e?`${e}-${(0,o.Z)()}`:(0,o.Z)();(0,n.oX)();var eb=(e,t)=>{let[r]=e.split(":"),n=t.indexes.nodes[r];return((null==n?void 0:n.path)||[]).map(e=>e.split(":")[0])};(0,n.oX)();var e_=(e,t,r=!1)=>{let i=ef(e.type);return(0,n.in)((0,n.EZ)((0,n.ih)({},e),{props:r?(0,n.EZ)((0,n.ih)({},e.props),{id:i}):(0,n.ih)({},e.props)}),t,e=>e.map(e=>{let t=ef(e.type);return(0,n.EZ)((0,n.ih)({},e),{props:r?(0,n.EZ)((0,n.ih)({},e.props),{id:t}):(0,n.ih)({id:t},e.props)})}))};function ej(e,t,r){let i=t.id||ef(t.componentType),a=e_({type:t.componentType,props:(0,n.EZ)((0,n.ih)({},r.config.components[t.componentType].defaultProps||{}),{id:i})},r.config),[o]=t.destinationZone.split(":"),l=eb(t.destinationZone,e);return(0,n.vV)(e,r.config,(e,r)=>r===t.destinationZone?eg(e||[],t.destinationIndex,a):e,(e,r)=>e.props.id===i||e.props.id===o||l.includes(e.props.id)||r.includes(t.destinationZone)?e:null)}(0,n.oX)();var eE=(e,t,r)=>{let[i]=t.destinationZone.split(":"),a=eb(t.destinationZone,e),o=e.indexes.zones[t.destinationZone].contentIds[t.destinationIndex];if(o!==t.data.props.id)throw Error('Can\'t change the id during a replace action. Please us "remove" and "insert" to define a new node.');let l=[],s=(0,n.in)(t.data,r.config,(e,t)=>(l.push(`${t.parentId}:${t.propName}`),e.map(e=>{let t=ef(e.type);return(0,n.EZ)((0,n.ih)({},e),{props:(0,n.ih)({id:t},e.props)})}))),d=(0,n.ih)({},e);return Object.keys(e.indexes.zones).forEach(e=>{e.split(":")[0]!==o||l.includes(e)||delete d.indexes.zones[e]}),(0,n.vV)(d,r.config,(e,r)=>{let n=[...e];return r===t.destinationZone&&(n[t.destinationIndex]=s),n},(e,t)=>{let r=t.map(e=>e.split(":")[0]);return e.props.id===s.props.id?s:e.props.id===i?e:a.indexOf(e.props.id)>-1?e:r.indexOf(s.props.id)>-1?e:null})};(0,n.oX)();var ek=(e,t,r)=>(0,n.vV)(e,r.config,e=>e,e=>"root"===e.props.id?(0,n.EZ)((0,n.ih)({},e),{props:(0,n.ih)((0,n.ih)({},e.props),t.root.props),readOnly:t.root.readOnly}):e);function eI(e,t){var r,i;let a=null==(r=t.indexes.zones)?void 0:r[e.zone||n.l9];return a?null==(i=t.indexes.nodes[a.contentIds[e.index]])?void 0:i.data:void 0}(0,n.oX)(),(0,n.oX)(),(0,n.oX)(),(0,n.oX)(),(0,n.oX)();var eS=(e,t)=>{let r=Array.from(e);return r.splice(t,1),r},ew=(e,t,r)=>{if(t.sourceZone===t.destinationZone&&t.sourceIndex===t.destinationIndex)return e;let i=eI({zone:t.sourceZone,index:t.sourceIndex},e);
1if(!i)return e;let a=eb(t.sourceZone,e),o=eb(t.destinationZone,e);return(0,n.vV)(e,r.config,(e,r)=>r===t.sourceZone&&r===t.destinationZone?eg(eS(e,t.sourceIndex),t.destinationIndex,i):r===t.sourceZone?eS(e,t.sourceIndex):r===t.destinationZone?eg(e,t.destinationIndex,i):e,(e,r)=>{let[n]=t.sourceZone.split(":"),[l]=t.destinationZone.split(":"),s=e.props.id;return n===s||l===s||i.props.id===s||a.indexOf(s)>-1||o.indexOf(s)>-1||r.includes(t.destinationZone)?e:null})},eC=(e,t,r)=>ew(e,{type:"move",sourceIndex:t.sourceIndex,sourceZone:t.destinationZone,destinationIndex:t.destinationIndex,destinationZone:t.destinationZone},r);(0,n.oX)();var ez=(e,t,r)=>{let i=eI({index:t.index,zone:t.zone},e),a=Object.entries(e.indexes.nodes).reduce((e,[t,r])=>r.path.map(e=>e.split(":")[0]).includes(i.props.id)?[...e,t]:e,[i.props.id]),o=(0,n.vV)(e,r.config,(e,r)=>r===t.zone?eS(e,t.index):e);return Object.keys(o.data.zones||{}).forEach(e=>{let t=e.split(":")[0];a.includes(t)&&o.data.zones&&delete o.data.zones[e]}),Object.keys(o.indexes.zones).forEach(e=>{let t=e.split(":")[0];a.includes(t)&&delete o.indexes.zones[e]}),a.forEach(e=>{delete o.indexes.nodes[e]}),o};(0,n.oX)();var eZ={};(0,n.oX)();var eN=(e,t,r)=>"object"==typeof t.data?(console.warn("`setData` is expensive and may cause unnecessary re-renders. Consider using a more atomic action instead."),(0,n.vV)((0,n.EZ)((0,n.ih)({},e),{data:(0,n.ih)((0,n.ih)({},e.data),t.data)}),r.config)):(0,n.vV)((0,n.EZ)((0,n.ih)({},e),{data:(0,n.ih)((0,n.ih)({},e.data),t.data(e.data))}),r.config);(0,n.oX)();var eP=(e,t)=>"object"==typeof t.ui?(0,n.EZ)((0,n.ih)({},e),{ui:(0,n.ih)((0,n.ih)({},e.ui),t.ui)}):(0,n.EZ)((0,n.ih)({},e),{ui:(0,n.ih)((0,n.ih)({},e.ui),t.ui(e.ui))});(0,n.oX)();var eX=e=>{let{data:t,ui:r}=e;return{data:t,ui:r}};function eM({record:e,onAction:t,appStore:r}){var i;return i=(e,t)=>"set"===t.type?ey(e,t,r):"insert"===t.type?ej(e,t,r):"replace"===t.type?eE(e,t,r):"replaceRoot"===t.type?ek(e,t,r):"duplicate"===t.type?function(e,t,r){let i=eI({index:t.sourceIndex,zone:t.sourceZone},e),a=eb(t.sourceZone,e),o=(0,n.EZ)((0,n.ih)({},i),{props:(0,n.EZ)((0,n.ih)({},i.props),{id:ef(i.type)})}),l=(0,n.vV)(e,r.config,(e,r)=>r===t.sourceZone?eg(e,t.sourceIndex+1,i):e,(e,r,i)=>{let l=r[r.length-1];if(r.map(e=>e.split(":")[0]).indexOf(o.props.id)>-1)return(0,n.EZ)((0,n.ih)({},e),{props:(0,n.EZ)((0,n.ih)({},e.props),{id:ef(e.type)})});if(l===t.sourceZone&&i===t.sourceIndex+1)return o;let[s]=t.sourceZone.split(":");return s===e.props.id||a.indexOf(e.props.id)>-1?e:null});return(0,n.EZ)((0,n.ih)({},l),{ui:(0,n.EZ)((0,n.ih)({},l.ui),{itemSelector:{index:t.sourceIndex+1,zone:t.sourceZone}})})}(e,t,r):"reorder"===t.type?eC(e,t,r):"move"===t.type?ew(e,t,r):"remove"===t.type?ez(e,t,r):"registerZone"===t.type?eZ[t.zone]?(0,n.EZ)((0,n.ih)({},e),{data:(0,n.EZ)((0,n.ih)({},e.data),{zones:(0,n.EZ)((0,n.ih)({},e.data.zones),{[t.zone]:eZ[t.zone]})}),indexes:(0,n.EZ)((0,n.ih)({},e.indexes),{zones:(0,n.EZ)((0,n.ih)({},e.indexes.zones),{[t.zone]:(0,n.EZ)((0,n.ih)({},e.indexes.zones[t.zone]),{contentIds:eZ[t.zone].map(e=>e.props.id),type:"dropzone"})})})}):(0,n.EZ)((0,n.ih)({},e),{data:(0,n.YA)(e.data,t.zone)}):"unregisterZone"===t.type?function(e,t){let r=(0,n.ih)({},e.data.zones||{}),i=(0,n.ih)({},e.indexes.zones||{});return r[t.zone]&&(eZ[t.zone]=r[t.zone],delete r[t.zone]),delete i[t.zone],(0,n.EZ)((0,n.ih)({},e),{data:(0,n.EZ)((0,n.ih)({},e.data),{zones:r}),indexes:(0,n.EZ)((0,n.ih)({},e.indexes),{zones:i})})}(e,t):"setData"===t.type?eN(e,t,r):"setUi"===t.type?eP(e,t):e,(r,n)=>{let a=i(r,n),o=!["registerZone","unregisterZone","setData","setUi","set"].includes(n.type);return(void 0!==n.recordHistory?n.recordHistory:o)&&e&&e(a),null==t||t(n,eX(a),eX(r)),a}}(0,n.oX)(),(0,n.oX)(),(0,n.oX)();var eD={ControlLeft:"ctrl",ControlRight:"ctrl",MetaLeft:"meta",MetaRight:"meta",ShiftLeft:"shift",ShiftRight:"shift",KeyA:"a",KeyB:"b",KeyC:"c",KeyD:"d",KeyE:"e",KeyF:"f",KeyG:"g",KeyH:"h",KeyI:"i",KeyJ:"j",KeyK:"k",KeyL:"l",KeyM:"m",KeyN:"n",KeyO:"o",KeyP:"p",KeyQ:"q",KeyR:"r",KeyS:"s",KeyT:"t",KeyU:"u",KeyV:"v",KeyW:"w",KeyX:"x",KeyY:"y",KeyZ:"z"},eL=(0,l.U)()((0,s.XR)(e=>({held:{},hold:t=>e(e=>e.held[t]?e:{held:(0,n.EZ)((0,n.ih)({},e.held),{[t]:!0})}),release:t=>e(e=>e.held[t]?{held:(0,n.EZ)((0,n.ih)({},e.held),{[t]:!1})}:e),reset:(t={})=>e(()=>({held:t})),triggers:{}}))),eT=e=>{let t=e=>{let t=eD[e.code];if(t){eL.getState().hold(t);let{held:r,triggers:n}=eL.getState();
1Object.values(n).forEach(({combo:t,cb:n})=>{Object.entries(t).every(([e,t])=>!!r[e]===t)&&Object.entries(r).every(([e,r])=>!!t[e]===r)&&(e.preventDefault(),n())}),"meta"!==t&&"ctrl"!==t&&"shift"!==t&&eL.getState().release(t)}},r=e=>{let t=eD[e.code];t&&("meta"===t?eL.getState().reset():eL.getState().release(t))},n=e=>{"hidden"===document.visibilityState&&eL.getState().reset()};return e.addEventListener("keydown",t),e.addEventListener("keyup",r),e.addEventListener("visibilitychange",n),()=>{e.removeEventListener("keydown",t),e.removeEventListener("keyup",r),e.removeEventListener("visibilitychange",n)}},eA=()=>{(0,a.useEffect)(()=>eT(document),[])},eO=(e,t)=>{(0,a.useEffect)(()=>eL.setState(r=>({triggers:(0,n.EZ)((0,n.ih)({},r.triggers),{[`${Object.keys(e).join("+")}`]:{combo:e,cb:t}})})),[])},eB=e=>(0,n.EZ)((0,n.ih)({},e),{ui:(0,n.EZ)((0,n.ih)({},e.ui),{field:{focus:null}})}),eF=(e,t)=>({initialAppState:{},index:0,histories:[],hasPast:()=>t().history.index>0,hasFuture:()=>t().history.index<t().history.histories.length-1,prevHistory:()=>{let{history:e}=t();
1return e.hasPast()?e.histories[e.index-1]:null},nextHistory:()=>{let e=t().history;return e.hasFuture()?e.histories[e.index+1]:null},currentHistory:()=>t().history.histories[t().history.index],back:()=>{var r;let{history:i,dispatch:a}=t();i.hasPast()&&(a({type:"set",state:eB((null==(r=i.prevHistory())?void 0:r.state)||i.initialAppState)}),e({history:(0,n.EZ)((0,n.ih)({},i),{index:i.index-1})}))},forward:()=>{var r;let{history:i,dispatch:a}=t();if(i.hasFuture()){let t=null==(r=i.nextHistory())?void 0:r.state;a({type:"set",state:t?eB(t):{}}),e({history:(0,n.EZ)((0,n.ih)({},i),{index:i.index+1})})}},setHistories:r=>{var i;let{dispatch:a,history:o}=t();a({type:"set",state:(null==(i=r[r.length-1])?void 0:i.state)||o.initialAppState}),e({history:(0,n.EZ)((0,n.ih)({},o),{histories:r,index:r.length-1})})},setHistoryIndex:r=>{var i;let{dispatch:a,history:o}=t();a({type:"set",state:(null==(i=o.histories[r])?void 0:i.state)||o.initialAppState}),e({history:(0,n.EZ)((0,n.ih)({},o),{index:r})})},record:function(e,t=300){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}}(r=>{let{histories:i,index:a}=t().history,o={state:r,id:ef("history")},l=[...i.slice(0,a+1),o];e({history:(0,n.EZ)((0,n.ih)({},t().history),{histories:l,index:l.length-1})})},250)});(0,n.oX)();var eR=(e,t)=>({nodes:{},registerNode:(r,i)=>{let a=t().nodes,o=a.nodes[r];e({nodes:(0,n.EZ)((0,n.ih)({},a),{nodes:(0,n.EZ)((0,n.ih)({},a.nodes),{[r]:(0,n.EZ)((0,n.ih)((0,n.ih)((0,n.ih)({},{id:r,methods:{sync:()=>null,hideOverlay:()=>null,showOverlay:()=>null},element:null}),o),i),{id:r})})})})},unregisterNode:r=>{let i=t().nodes;if(i.nodes[r]){let t=(0,n.ih)({},i.nodes);delete t[r],e({nodes:(0,n.EZ)((0,n.ih)({},i),{nodes:t})})}}});(0,n.oX)(),(0,n.oX)();var e$=(e,t)=>{let r=[];return(0,n.vV)(e,t,e=>e,e=>(r.push(e),null)),r},eH=(e,t)=>{let r=(...r)=>(0,n.Cr)(void 0,[...r],function*(r={},i){let{state:a,permissions:o,config:l}=t(),{cache:s,globalPermissions:d}=o,u=(r,i=!1)=>(0,n.Cr)(void 0,null,function*(){var a,o,l;let{config:u,state:c,setComponentLoading:p}=t(),h="root"===r.type?u.root:u.components[r.type];
1if(!h)return;let m=(0,n.ih)((0,n.ih)({},d),h.permissions);if(h.resolvePermissions){let d=(0,n.zY)(r,null==(a=s[r.props.id])?void 0:a.lastData);if(Object.values(d).some(e=>!0===e)||i){let i=p(r.props.id,!0,50),a=yield h.resolvePermissions(r,{changed:d,lastPermissions:(null==(o=s[r.props.id])?void 0:o.lastPermissions)||null,permissions:m,appState:eX(c),lastData:(null==(l=s[r.props.id])?void 0:l.lastData)||null}),u=t().permissions;e({permissions:(0,n.EZ)((0,n.ih)({},u),{cache:(0,n.EZ)((0,n.ih)({},u.cache),{[r.props.id]:{lastData:r,lastPermissions:a}}),resolvedPermissions:(0,n.EZ)((0,n.ih)({},u.resolvedPermissions),{[r.props.id]:a})})}),i()}}}),{item:c,type:p,root:h}=r;c?yield u(c,i):p?e$(a,l).filter(e=>e.type===p).map(e=>(0,n.Cr)(void 0,null,function*(){yield u(e,i)})):h?((e=!1)=>{let{state:r}=t();u({type:"root",props:(0,n.EZ)((0,n.ih)({},r.data.root.props),{id:"root"})},e)})(i):e$(a,l).map(e=>(0,n.Cr)(void 0,null,function*(){yield u(e,i)}))});return{cache:{},globalPermissions:{drag:!0,edit:!0,delete:!0,duplicate:!0,insert:!0},resolvedPermissions:{},getPermissions:({item:e,type:r,root:i}={})=>{let{config:a,permissions:o}=t(),{globalPermissions:l,resolvedPermissions:s}=o;if(e){let t=a.components[e.type],r=(0,n.ih)((0,n.ih)({},l),null==t?void 0:t.permissions),i=s[e.props.id];return i?(0,n.ih)((0,n.ih)({},l),i):r}if(r){let e=a.components[r];return(0,n.ih)((0,n.ih)({},l),null==e?void 0:e.permissions)}if(i){let e=a.root,t=(0,n.ih)((0,n.ih)({},l),null==e?void 0:e.permissions),r=s.root;return r?(0,n.ih)((0,n.ih)({},l),r):t}return l},resolvePermissions:r,refreshPermissions:e=>r(e,!0)}},eV=(e,t)=>{(0,a.useEffect)(()=>{let{permissions:r}=e.getState(),{globalPermissions:i}=r;e.setState({permissions:(0,n.EZ)((0,n.ih)({},r),{globalPermissions:(0,n.ih)((0,n.ih)({},i),t)})}),r.resolvePermissions()},[t]),(0,a.useEffect)(()=>e.subscribe(e=>e.state.data,()=>{e.getState().permissions.resolvePermissions()}),[]),(0,a.useEffect)(()=>e.subscribe(e=>e.config,()=>{e.getState().permissions.resolvePermissions()}),[])};(0,n.oX)();var eq=(e,t)=>({fields:{},loading:!1,lastResolvedData:{},id:void 0}),eU=(e,t)=>{let r=(0,a.useCallback)(r=>(0,n.Cr)(void 0,null,function*(){var i,a;let{fields:o,lastResolvedData:l}=e.getState().fields,s=e.getState().state.indexes.nodes,d=s[t||"root"],u=null==d?void 0:d.data,c=(null==d?void 0:d.parentId)?s[d.parentId]:null,p=(null==c?void 0:c.data)||null,{getComponentConfig:h,state:m}=e.getState(),v=h(null==u?void 0:u.type);if(!u||!v)return;let x=v.fields||{},y=v.resolveFields,g=o;if(r&&(e.setState(e=>({fields:(0,n.EZ)((0,n.ih)({},e.fields),{fields:x,id:t})})),g=x),y){let r=setTimeout(()=>{e.setState(e=>({fields:(0,n.EZ)((0,n.ih)({},e.fields),{loading:!0})}))},50),o=(null==(i=l.props)?void 0:i.id)===t?l:null,s=(0,n.zY)(u,o),d=yield y(u,{changed:s,fields:x,lastFields:g,lastData:o,appState:eX(m),parent:p});if(clearTimeout(r),(null==(a=e.getState().selectedItem)?void 0:a.props.id)!==t)return;e.setState({fields:{fields:d,loading:!1,lastResolvedData:u,id:t}})}else e.setState(e=>({fields:(0,n.EZ)((0,n.ih)({},e.fields),{fields:x,id:t})}))}),[t]);(0,a.useEffect)(()=>(r(!0),e.subscribe(e=>e.state.indexes.nodes[t||"root"],()=>r())),[t])};(0,n.oX)();var eW=e=>{if("type"in e&&"root"!==e.type)throw Error("Converting non-root item to root.");let{readOnly:t}=e;if(e.props){if("id"in e.props){let r=e.props,{id:i}=r;return{props:(0,n.S0)(r,["id"]),readOnly:t}}return{props:e.props,readOnly:t}}return{props:{},readOnly:t}},eK={title:{type:"text"}},eY=e=>(0,l.U)()((0,s.XR)((t,r)=>{var i,a;return(0,n.EZ)((0,n.ih)({state:n._8,config:{components:{}},componentState:{},plugins:[],overrides:{},viewports:n.f$,zoomConfig:{autoZoom:1,rootHeight:0,zoom:1},status:"LOADING",iframe:{},metadata:{}},e),{fields:eq(t,r),history:eF(t,r),nodes:eR(t,r),permissions:eH(t,r),getComponentConfig:e=>{var t;let{config:i,selectedItem:a}=r(),o=(null==(t=i.root)?void 0:t.fields)||eK;return e&&"root"!==e?i.components[e]:a?i.components[a.type]:(0,n.EZ)((0,n.ih)({},i.root),{fields:o})},selectedItem:(null==(i=null==e?void 0:e.state)?void 0:i.ui.itemSelector)?eI(null==(a=null==e?void 0:e.state)?void 0:a.ui.itemSelector,e.state):null,dispatch:e=>t(t=>{var i,a;let{record:o}=r().history,l=eM({record:o,appStore:t})(t.state,e),s=l.ui.itemSelector?eI(l.ui.itemSelector,l):null;return null==(a=(i=r()).onAction)||a.call(i,e,l,r().state),(0,n.EZ)((0,n.ih)({},t),{state:l,selectedItem:s})}),setZoomConfig:e=>t({zoomConfig:e}),setStatus:e=>t({status:e}),setComponentState:e=>t({componentState:e}),pendingLoadTimeouts:{},setComponentLoading:(e,i=!0,a=0)=>{let{setComponentState:o,pendingLoadTimeouts:l}=r(),s=ef(),d=()=>{var t;let{componentState:i}=r();o((0,n.EZ)((0,n.ih)({},i),{[e]:(0,n.EZ)((0,n.ih)({},i[e]),{loadingCount:((null==(t=i[e])?void 0:t.loadingCount)||0)+1})}
1))},u=()=>{var i;let{componentState:a}=r();clearTimeout(c),delete l[s],t({pendingLoadTimeouts:l}),o((0,n.EZ)((0,n.ih)({},a),{[e]:(0,n.EZ)((0,n.ih)({},a[e]),{loadingCount:Math.max(((null==(i=a[e])?void 0:i.loadingCount)||0)-1,0)})}))},c=setTimeout(()=>{i?d():u(),delete l[s],t({pendingLoadTimeouts:l})},a);return t({pendingLoadTimeouts:(0,n.EZ)((0,n.ih)({},l),{[e]:c})}),u},unsetComponentLoading:e=>{let{setComponentLoading:t}=r();t(e,!1)},setUi:(e,r)=>t(t=>{let i=eM({record:()=>{},appStore:t})(t.state,{type:"setUi",ui:e,recordHistory:r}),a=i.ui.itemSelector?eI(i.ui.itemSelector,i):null;return(0,n.EZ)((0,n.ih)({},t),{state:i,selectedItem:a})}),resolveComponentData:(e,t)=>(0,n.Cr)(void 0,null,function*(){let{config:i,metadata:a,setComponentLoading:o,permissions:l}=r(),s={};return yield(0,n.M2)(e,i,a,e=>{let t="id"in e.props?e.props.id:"root";s[t]=o(t,!0,50)},e=>(0,n.Cr)(void 0,null,function*(){let t="id"in e.props?e.props.id:"root";"type"in e?yield l.refreshPermissions({item:e}):yield l.refreshPermissions({root:!0}),s[t]()}),t)}),resolveAndCommitData:()=>(0,n.Cr)(void 0,null,function*(){let{config:e,state:t,dispatch:i,resolveComponentData:a}=r();(0,n.vV)(t,e,e=>e,e=>(a(e,"load").then(e=>{let{state:t}=r(),n=t.indexes.nodes[e.node.props.id];if(n&&e.didChange){if("root"===e.node.props.id)i({type:"replaceRoot",root:eW(e.node)});else{let r=`${n.parentId}:${n.zone}`,a=t.indexes.zones[r].contentIds.indexOf(e.node.props.id);i({type:"replace",data:e.node,destinationIndex:a,destinationZone:r})}}}),e))})})})),eG=(0,a.createContext)(eY());function eJ(e){let t=(0,a.useContext)(eG);return(0,l.o)(t,e)}function eQ(){return(0,a.useContext)(eG)}(0,n.oX)(),(0,n.oX)();var e0={delay:{value:200,tolerance:10}},e1={delay:{value:200,tolerance:10},distance:{value:5}},e2=({other:e=e1,mouse:t,touch:r=e0}={touch:e0,other:e1})=>{let[n]=(0,a.useState)(()=>[u.we.configure({activationConstraints(n,i){var a;let{pointerType:o,target:l}=n;return"mouse"===o&&(0,c.kK)(l)&&(i.handle===l||(null==(a=i.handle)?void 0:a.contains(l)))?t:"touch"===o?r:e}})]);return n};(0,n.oX)(),(0,n.oX)(),(0,n.oX)();var e4=(e,t,r,n,i)=>{},e8="increasing",e5=(e,t)=>{var r;let{dragOperation:n,droppable:i}=e,{shape:a}=i,{position:o}=n,l=null==(r=n.shape)?void 0:r.current;if(!l||!a)return null;let s=a.center,d=Math.sqrt(Math.pow(s.x-t.x,2)+Math.pow(s.y-t.y,2)),u=Math.sqrt(Math.pow(s.x-o.current.x,2)+Math.pow(s.y-o.current.y,2));return(e8=u===d?e8:u<d?"decreasing":"increasing",e4(l.center,s,i.id.toString(),"rebe
1ccapurple"),"decreasing"===e8)?{id:i.id,value:1,type:p.v2.Collision}:null};(0,n.oX)();var e3=(e,t)=>{if("dynamic"===e){if(!(Math.abs(t.y)>Math.abs(t.x)))return 0===t.x?null:t.x>0?"right":"left"}else if("x"===e)return 0===t.x?null:t.x>0?"right":"left";return 0===t.y?null:t.y>0?"down":"up"};(0,n.oX)();var e6=(e,t,r,n=0)=>{let i=e.boundingRectangle,a=t.center;if("down"===r){let e=n*t.boundingRectangle.height;return i.bottom>=a.y+e}if("up"===r){let e=n*t.boundingRectangle.height;return i.top<a.y-e}if("left"===r){let e=n*t.boundingRectangle.width;return a.x-e>=i.left}let o=n*t.boundingRectangle.width;return i.right-o>=a.x};(0,n.oX)();var e9={current:{x:0,y:0},delta:{x:0,y:0},previous:{x:0,y:0},direction:null},e7=(e,t="dynamic")=>(e9.current=e,e9.delta={x:e.x-e9.previous.x,y:e.y-e9.previous.y},e9.direction=e3(t,e9.delta)||e9.direction,(Math.abs(e9.delta.x)>10||Math.abs(e9.delta.y)>10)&&(e9.previous=h.E9.from(e)),e9);(0,n.oX)();var te=({dragOperation:e,droppable:t})=>{let r=e.position.current;if(!r)return null;let{id:n}=t;return t.shape&&t.shape.containsPoint(r)?{id:n,value:1/h.E9.distance(t.shape.center,r),type:p.v2.PointerIntersection,priority:p.l3.High}:null},tt=e=>{let{dragOperation:t,droppable:r}=e,{shape:n,position:i}=t;if(!r.shape)return null;let a=n?h.Ae.from(n.current.boundingRectangle).corners:void 0,o=h.Ae.from(r.shape.boundingRectangle).corners.reduce((e,t,r)=>{var n;return e+h.E9.distance(h.E9.from(t),null!=(n=null==a?void 0:a[r])?n:i.current)},0);return{id:r.id,value:1/(o/4),type:p.v2.Collision,priority:p.l3.Normal}};(0,n.oX)();var tr=(0,m.M)(()=>({fallbackEnabled:!1})),tn="",ti=(e,t=.05)=>r=>{var i,a,o,l,s;let{dragOperation:d,droppable:u}=r,{position:c}=d,h=null==(i=d.shape)?void 0:i.current,{shape:m}=u;if(!h||!m)return null;let{center:v}=h,{fallbackEnabled:x}=tr.getState(),y=e7(c.current,e),g={direction:y.direction},{center:f}=m,b=e6(h,m,y.direction,t);if((null==(a=d.source)?void 0:a.id)===u.id){let e=e5(r,y.previous);if(e4(v,f,u.id.toString(),"yellow"),e)return(0,n.EZ)((0,n.ih)({},e),{priority:p.l3.Highest,data:g})}let _=h.intersectionArea(m),j=_/m.area;if(_&&b){e4(v,f,u.id.toString(),"green",y.direction);let e={id:u.id,value:j,priority:p.l3.High,type:p.v2.Collision},t=tn===u.id;return tn="",(0,n.EZ)((0,n.ih)({},e),{id:t?"flush":e.id,data:g})}if(x&&(null==(o=d.source)?void 0:o.id)!==u.id){let t=m.boundingRectangle.right>h.boundingRectangle.left&&m.boundingRectangle.left<h.boundingRectangle.right,i=m.boundingRectangle.bottom>h.boundingRectangle.top&&m.boundingRectangle.top<h.boundingRectangle.bottom;if("y"===e&&t||i){let t=tt(r);if(t){let r=e3(e,{x:h.center.x-((null==(l=u.shape)?void 0:l.center.x)||0),y:h.center.y-((null==(s=u.shape)?void 0:s.center.y)||0)});return(g.direction=r,_)?(e4(v,f,u.id.toString(),"red",r||""),tn=u.id,(0,n.EZ)((0,n.ih)({},t),{priority:p.l3.Low,data:g})):(e4(v,f,u.id.toString(),"orange",r||""),(0,n.EZ)((0,n.ih)({},t),{priority:p.l3.Lowest,data:g}))}}}return e4(v,f,u.id.toString(),"hotpink"),null},ta=({children:e,onDragStart:t,onDragEnd:r,onMove:n})=>{let a=e2({mouse:{distance:{value:5}}});return(0,i.jsx)(d.wz,{sensors:a,onDragStart:e=>{var r,n;return t(null!=(n=null==(r=e.operation.source)?void 0:r.id.toString())?n:"")},onDragOver:(e,t)=>{var r;e.preventDefault();let{operation:i}=e,{source:a,target:o}=i;if(!a||!o)return;let l=a.data.index,s=o.data.index,d=null==(r=t.collisionObserver.collisions[0])?void 0:r.data;l!==s&&a.id!==o.id&&(s>=l&&(s-=1),"after"==((null==d?void 0:d.direction)==="up"?"before":"after")&&(s+=1),n({source:l,target:s}))},onDragEnd:()=>{setTimeout(()=>{r()},250)},children:e})},to=({id:e,index:t,disabled:r,children:n,type:i="item"})=>{let{ref:a,isDragging:o,isDropping:l,handleRef:s}=(0,v.n)({id:e,type:i,index:t,disabled:r,data:{index:t},collisionDetector:ti("y")});return n({isDragging:o,isDropping:l,ref:a,handleRef:s})};(0,n.oX)();var tl=(0,a.createContext)({}),ts=()=>{let e=(0,a.useContext)(tl);return(0,n.EZ)((0,n.ih)({},e),{readOnlyFields:e.readOnlyFields||{}})},td=({children:e,name:t,subName:r,wildcardName:o=t,readOnlyFields:l})=>{let s=`${t}.${r}`,d=`${o}.${r}`,u=(0,a.useMemo)(()=>Object.keys(l).reduce((e,r)=>{if(r.indexOf(s)>-1||r.indexOf(d)>-1){let i=new RegExp(`^(${t}|${o}).`.replace(/\[/g,"\\[").replace(/\]/g,"\\]").replace(/\./g,"\\.").replace(/\*/g,"\\*")),a=r.replace(i,"");return(0,n.EZ)((0,n.ih)({},e),{[a]:l[r]})}return e},{}),[t,r,o,l]);return(0,i.jsx)(tl.Provider,{value:{readOnlyFields:u,localName:r},children:e})},tu=k("ArrayField",C),tc=k("ArrayFieldItem",C),tp=({field:e,onChange:t,value:r,name:o,label:l,labelIcon:s,readOnly:d,id:u,L
1abel:c=e=>(0,i.jsx)("div",(0,n.ih)({},e))})=>{let p=eJ(e=>e.state.ui.arrayState[u]),h=eJ(e=>e.setUi),{readOnlyFields:m,localName:v=o}=ts(),x=p||{items:Array.from(r||[]).map((e,t)=>({_originalIndex:t,_arrayId:`${u}-${t}`})),openId:""},[y,g]=(0,a.useState)({arrayState:x,value:r});(0,a.useEffect)(()=>{var e;g({arrayState:null!=(e=f.getState().state.ui.arrayState[u])?e:x,value:r})},[r]);let f=eQ(),b=(0,a.useCallback)(e=>{let t=f.getState().state;return{arrayState:(0,n.EZ)((0,n.ih)({},t.ui.arrayState),{[u]:(0,n.ih)((0,n.ih)({},x),e)})}},[x,f]),_=(0,a.useCallback)(()=>x.items.reduce((e,t)=>t._originalIndex>e?t._originalIndex:e,-1),[x]),j=(0,a.useCallback)(e=>{let t=_(),r=Array.from(e||[]).map((e,r)=>{var n;let i=x.items[r],a={_originalIndex:void 0!==(null==i?void 0:i._originalIndex)?i._originalIndex:t+1,_arrayId:(null==(n=x.items[r])?void 0:n._arrayId)||`${u}-${t+1}`};return a._originalIndex>t&&(t=a._originalIndex),a});return(0,n.EZ)((0,n.ih)({},x),{items:r})},[x]);(0,a.useEffect)(()=>{x.items.length>0&&h(b(x))},[]);let[E,k]=(0,a.useState)(""),I=!!E,S=!eJ(e=>e.permissions.getPermissions({item:e.selectedItem}).edit),w=(0,a.useRef)(r),C=(0,a.useCallback)(t=>{if("array"!==e.type||!e.arrayFields)return;let r=f.getState().config;return(0,n.NP)({value:t,fields:e.arrayFields,map:e=>e.map(e=>e_(e,r,!0)),config:r})},[f,e]);if("array"!==e.type||!e.arrayFields)return null;let z=void 0!==e.max&&y.arrayState.items.length>=e.max||d;return(0,i.jsx)(c,{label:l||o,icon:s||(0,i.jsx)(q,{size:16}),el:"div",readOnly:d,children:(0,i.jsx)(ta,{onDragStart:e=>k(e),onDragEnd:()=>{k(""),t(w.current)},onMove:e=>{if(x.items[e.source]._arrayId!==E)return;let t=ed(y.value,e.source,e.target),r=ed(x.items,e.source,e.target),i=f.getState().state;h({arrayState:(0,n.EZ)((0,n.ih)({},i.ui.arrayState),{[u]:(0,n.EZ)((0,n.ih)({},x),{items:r})})},!1),g({value:t,arrayState:(0,n.EZ)((0,n.ih)({},x),{items:r})}),w.current=t},children:(0,i.jsxs)("div",{className:tu({hasItems:Array.isArray(r)&&r.length>0,addDisabled:z}),children:[y.arrayState.items.length>0&&(0,i.jsx)("div",{className:tu("inner"),"data-dnd-container":!0,children:y.arrayState.items.map((a,l)=>{let{_arrayId:s=`${u}-${l}`,_originalIndex:c=l}=a,p=Array.from(y.value||[])[l]||{};return(0,i.jsx)(to,{id:s,index:l,disabled:d,children:({isDragging:a,ref:u,handleRef:g})=>(0,i.jsxs)("div",{ref:u,className:tc({isExpanded:x.openId===s,isDragging:a,readOnly:d}),children:[(0,i.jsxs)("div",{ref:g,onClick:e=>{a||(e.preventDefault(),e.stopPropagation(),x.openId===s?h(b({openId:""})):h(b({openId:s})))},className:tc("summary"),children:[e.getItemSummary?e.getItemSummary(p,l):`Item #${c}`,(0,i.jsxs)("div",{className:tc("rhs"),children:[!d&&(0,i.jsxs)("div",{className:tc("actions"),children:[(0,i.jsx)("div",{className:tc("action"),children:(0,i.jsx)(em,{type:"button",disabled:!!z,onClick:e=>{e.stopPropagation();let n=[...r||[]],i=C(n[l]);n.splice(l,0,i),h(b(j(n)),!1),t(n)},title:"Duplicate",children:(0,i.jsx)(A,{size:16})})}),(0,i.jsx)("div",{className:tc("action"),children:(0,i.jsx)(em,{type:"button",disabled:void 0!==e.min&&e.min>=y.arrayState.items.length,onClick:e=>{e.stopPropagation();let n=[...r||[]],i=[...x.items||[]];n.splice(l,1),i.splice(l,1),h(b({items:i}),!1),t(n)},title:"Delete",children:(0,i.jsx)(ei,{size:16})})})]}),(0,i.jsx)("div",{children:(0,i.jsx)(ex,{})})]})]}),(0,i.jsx)("div",{className:tc("body"),children:(0,i.jsx)("fieldset",{className:tc("fieldset"),children:Object.keys(e.arrayFields).map(a=>{let d=e.arrayFields[a],u=`${o}[${l}]`,c=`${u}.${a}`,h=`${v}[${l}]`,x=`${v}[*]`,y=`${h}.${a}`,g=`${x}.${a}`,f=S||(void 0!==m[c]?m[y]:m[g]),b=d.label||a;return(0,i.jsx)(td,{name:h,wildcardName:x,subName:a,readOnlyFields:m,children:(0,i.jsx)(tH,{name:c,label:b,id:`${s}_${a}`,readOnly:f,field:(0,n.EZ)((0,n.ih)({},d),{label:b}),value:p[a],onChange:(e,i)=>{t(eu(r,l,(0,n.EZ)((0,n.ih)({},p),{[a]:e})),i)}})},c)})})})]})},s)})}),!z&&(0,i.jsx)("button",{type:"button",className:tu("addButton"),onClick:()=>{var i;if(I)return;let a=[...r||[],(0,n.c7)(C(null!=(i=e.defaultItemProps)?i:{}),e.arrayFields)];h(b(j(a)),!1),t(a)},children:(0,i.jsx)(J,{size:21})})]})})})};(0,n.oX)();var th=k("Input",w),tm=({field:e,onChange:t,readOnly:r,value:n,name:a,label:o,labelIcon:l,Label:s,id:d})=>(0,i.jsx)(s,{label:o||a,icon:l||(0,i.jsxs)(i.Fragment,{children:["text"===e.type&&(0,i.jsx)(ea,{size:16}),"number"===e.type&&(0,i.jsx)(R,{size:16})]}),readOnly:r,children:(0,i.jsx)("input",{className:th("input"),autoComplete:"off",type:e.type,title:o||a,name:a,value:(null==n?void 0:n.toString)?n.toString():"",onCh
1ange:r=>{if("number"===e.type){let n=Number(r.currentTarget.value);void 0!==e.min&&n<e.min||void 0!==e.max&&n>e.max||t(n)}else t(r.currentTarget.value)},readOnly:r,tabIndex:r?-1:void 0,id:d,min:"number"===e.type?e.min:void 0,max:"number"===e.type?e.max:void 0,placeholder:"text"===e.type||"number"===e.type?e.placeholder:void 0,step:"number"===e.type?e.step:void 0})});(0,n.oX)(),(0,n.oX)(),(0,n.oX)();var tv={"ExternalInput-actions":"_ExternalInput-actions_91ls0_1","ExternalInput-button":"_ExternalInput-button_91ls0_5","ExternalInput--dataSelected":"_ExternalInput--dataSelected_91ls0_24","ExternalInput--readOnly":"_ExternalInput--readOnly_91ls0_31","ExternalInput-detachButton":"_ExternalInput-detachButton_91ls0_35",ExternalInput:"_ExternalInput_91ls0_1",ExternalInputModal:"_ExternalInputModal_91ls0_79","ExternalInputModal-grid":"_ExternalInputModal-grid_91ls0_89","ExternalInputModal--filtersToggled":"_ExternalInputModal--filtersToggled_91ls0_100","ExternalInputModal-filters":"_ExternalInputModal-filters_91ls0_105","ExternalInputModal-masthead":"_ExternalInputModal-masthead_91ls0_124","ExternalInputModal-tableWrapper":"_ExternalInputModal-tableWrapper_91ls0_133","ExternalInputModal-table":"_ExternalInputModal-table_91ls0_133","ExternalInputModal-thead":"_ExternalInputModal-thead_91ls0_149","ExternalInputModal-th":"_ExternalInputModal-th_91ls0_149","ExternalInputModal-td":"_ExternalInputModal-td_91ls0_164","ExternalInputModal-tr":"_E
1xternalInputModal-tr_91ls0_169","ExternalInputModal-tbody":"_ExternalInputModal-tbody_91ls0_176","ExternalInputModal--hasData":"_ExternalInputModal--hasData_91ls0_202","ExternalInputModal-loadingBanner":"_ExternalInputModal-loadingBanner_91ls0_206","ExternalInputModal--isLoading":"_ExternalInputModal--isLoading_91ls0_223","ExternalInputModal-searchForm":"_ExternalInputModal-searchForm_91ls0_227","ExternalInputModal-search":"_ExternalInputModal-search_91ls0_227","ExternalInputModal-searchIcon":"_ExternalInputModal-searchIcon_91ls0_264","ExternalInputModal-searchIconText":"_ExternalInputModal-searchIconText_91ls0_289","ExternalInputModal-searchInput":"_ExternalInputModal-searchInput_91ls0_299","ExternalInputModal-searchActions":"_ExternalInputModal-searchActions_91ls0_313","ExternalInputModal-searchActionIcon":"_ExternalInputModal-searchActionIcon_91ls0_326","ExternalInputModal-footerContainer":"_ExternalInputModal-footerContainer_91ls0_330","ExternalInputModal-footer":"_ExternalInputModal-footer_91ls0_330","ExternalInputModal-field":"_ExternalInputModal-field_91ls0_343"};(0,n.oX)(),(0,n.oX)();var tx=k("Modal",{Modal:"_Modal_ikbaj_1","Modal--isOpen":"_Modal--isOpen_ikbaj_15","Modal-inner":"_Modal-inner_ikbaj_19"}),ty=({children:e,onClose:t,isOpen:r})=>{let[n,o]=(0,a.useState)(null);return((0,a.useEffect)(()=>{o(document.getElementById("puck-portal-root"))},[]),n)?(0,x.createPortal)((0,i.jsx)("div",{className:tx({isOpen:r}),onClick:t,children:(0,i.jsx)("div",{className:tx("inner"),onClick:e=>e.stopPropagation(),children:e})}),n):(0,i.jsx)("div",{})};(0,n.oX)(),(0,n.oX)();var tg=k("Heading",{Heading:"_Heading_qxrry_1","Heading--xxxxl":"_Heading--xxxxl_qxrry_12","Heading--xxxl":"_Heading--xxxl_qxrry_18","Heading--xxl":"_Heading--xxl_qxrry_22","Heading--xl":"_Heading--xl_qxrry_26","Heading--l":"_Heading--l_qxrry_30","Heading--m":"_Heading--m_qxrry_34","Heading--s":"_Heading--s_qxrry_38","Heading--xs":"_Heading--xs_qxrry_42"}),tf=({children:e,rank:t,size:r="m"})=>{let n=t?`h${t}`:"span";return(0,i.jsx)(n,{className:tg({[r]:!0}),children:e})};(0,n.oX)(),(0,n.oX)(),(0,n.oX)(),(0,n.oX)();var tb=/^(data-.*)$/,t_=e=>{let t={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&tb.test(r)&&(t[r]=e[r]);return t},tj=k("Button",{Button:"_Button_10byl_1","Button--medium":"_Button--medium_10byl_29","Button--large":"_Button--large_10byl_37","Button-icon":"_Button-icon_10byl_44","Button--primary":"_Button--primary_10byl_48","Button--secondary":"_Button--secondary_10byl_67","Button--flush":"_Button--flush_10byl_84","Button--disabled":"_Button--disabled_10byl_88","Button--fullWidth":"_Button--fullWidth_10byl_95","Button-spinner":"_Button-spinner_10byl_100"}),tE=e=>{var{children:t,href:r,onClick:o,variant:l="primary",type:s,disabled:d,tabIndex:u,newTab:c,fullWidth:p,icon:h,size:m="medium",loading:v=!1}=e,x=(0,n.S0)(e,["children","href","onClick","variant","type","disabled","tabIndex","newTab","fullWidth","icon","size","loading"]);let[y,g]=(0,a.useState)(v);(0,a.useEffect)(()=>g(v),[v]);let f=t_(x);return(0,i.jsxs)(r?"a":s?"button":"span",(0,n.EZ)((0,n.ih)({className:tj({primary:"primary"===l,secondary:"secondary"===l,disabled:d,fullWidth:p,[m]:!0}),onClick:e=>{o&&(g(!0),Promise.resolve(o(e)).then(()=>{g(!1)}))},type:s,disabled:d||y,tabIndex:u,target:c?"_blank":void 0,rel:c?"noreferrer":void 0,href:r},f),{children:[h&&(0,i.jsx)("div",{className:tj("icon"),children:h}),t,y&&(0,i.jsx)("div",{className:tj("spinner"),children:(0,i.jsx)(ep,{size:14})})]}))},tk=k("ExternalInput",tv),tI=k("ExternalInputModal",tv),tS={},tw=({field:e,onChange:t,value:r=null,name:o,id:l,readOnly:s})=>{let{mapProp:d=e=>e,mapRow:u=e=>e,filterFields:c}=e||{},[p,h]=(0,a.useState)([]),[m,v]=(0,a.useState)(!1),[x,y]=(0,a.useState)(!0),g=!!c,[f,b]=(0,a.useState)(e.initialFilters||{}),[_,j]=(0,a.useState)(g),E=(0,a.useMemo)(()=>p.map(u),[p]),k=(0,a.useMemo)(()=>{let e=new Set;for(let t of E)for(let r of Object.keys(t))("string"==typeof t[r]||"number"==typeof t[r]||(0,a.isValidElement)(t[r]))&&e.add(r);return Array.from(e)},[E]),[I,S]=(0,a.useState)(e.initialQuery||""),w=(0,a.useCallback)((t,r)=>(0,n.Cr)(void 0,null,function*(){y(!0);let n=`${l}-${t}-${JSON.stringify(r)}`,i=tS[n]||(yield e.fetchList({query:t,filters:r}));i&&(h(i),y(!1),tS[n]=i)}),[l,e]),C=(0,a.useCallback)(t=>e.renderFooter?e.renderFooter(t):(0,i.jsxs)("span",{className:tI("footer"),children:[t.items.length," result",1===t.items.length?"":"s"]}),[e.renderFooter]);return(0,a.useEffect)(()=>{w(I,f)},[]),(0,i.jsxs)("div",{className:tk({dataSelected:!!r,modalVisible:m,readOnly:s}),id:l,children:[(0,i.jsxs)("div",{className:tk("actions"),children:[(0,i.jsx)("button",{type:"button",onClick:()=>v(!0),className:tk("button"),disabled:s,children:r?e.getItemSummary?e.getItemSummary(r):"External item":(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(V,{size:"16"}),(0,i.jsx)("span",{children:e.placeholder})]})}),r&&(0,i.jsx)("button",{type:"button",className:tk("detachButton"),onClick:()=>{t(null)},disabled:s,children:(0,i.jsx)(U,{size:16})})]}),(0,i.jsx)(ty,{onClose:()=>v(!1),isOpen:m,children:(0,i.jsxs)("form",{className:tI({isLoading:x,loaded:!x,hasData:E.length>0,filtersToggled:_}),onSubmit:e=>{e.preventDefault(),w(I,f)},children:[(0,i.jsx)("div",{className:tI("masthead"),children:e.showSearch?(0,i.jsxs)("div",{className:tI("searchForm"),children:[(0,i.jsxs)("label",{className:tI("search"),children:[(0,i.jsx)("span",{className:tI("searchIconText"),children:"Search"}
1),(0,i.jsx)("div",{className:tI("searchIcon"),children:(0,i.jsx)(ee,{size:"18"})}),(0,i.jsx)("input",{className:tI("searchInput"),name:"q",type:"search",placeholder:e.placeholder,onChange:e=>{S(e.currentTarget.value)},autoComplete:"off",value:I})]}),(0,i.jsxs)("div",{className:tI("searchActions"),children:[(0,i.jsx)(tE,{type:"submit",loading:x,fullWidth:!0,children:"Search"}),g&&(0,i.jsx)("div",{className:tI("searchActionIcon"),children:(0,i.jsx)(em,{type:"button",title:"Toggle filters",onClick:e=>{e.preventDefault(),e.stopPropagation(),j(!_)},children:(0,i.jsx)(et,{size:20})})})]})]}):(0,i.jsx)(tf,{rank:"2",size:"xs",children:e.placeholder||"Select data"})}),(0,i.jsxs)("div",{className:tI("grid"),children:[g&&(0,i.jsx)("div",{className:tI("filters"),children:g&&Object.keys(c).map(e=>{let t=c[e];return(0,i.jsx)("div",{className:tI("field"),children:(0,i.jsx)(tH,{field:t,name:e,id:`external_field_${e}_filter`,label:t.label||e,value:f[e],onChange:t=>{let r=(0,n.EZ)((0,n.ih)({},f),{[e]:t});b(r),w(I,r)}})},e)})}),(0,i.jsxs)("div",{className:tI("tableWrapper"),children:[(0,i.jsxs)("table",{className:tI("table"),children:[(0,i.jsx)("thead",{className:tI("thead"),children:(0,i.jsx)("tr",{className:tI("tr"),children:k.map(e=>(0,i.jsx)("th",{className:tI("th"),style:{textAlign:"left"},children:e},e))})}),(0,i.jsx)("tbody",{className:tI("tbody"),children:E.map((e,r)=>(0,i.jsx)("tr",{style:{whiteSpace:"nowrap"},className:tI("tr"),onClick:()=>{t(d(p[r])),v(!1)},children:k.map(t=>(0,i.jsx)("td",{className:tI("td"),children:e[t]},t))},r))})]}),(0,i.jsx)("div",{className:tI("loadingBanner"),children:(0,i.jsx)(ep,{size:24})})]})]}),(0,i.jsx)("div",{className:tI("footerContainer"),children:(0,i.jsx)(C,{items:E})})]})})]})},tC=({field:e,onChange:t,value:r,name:o,label:l,labelIcon:s,Label:d,id:u,readOnly:c})=>{var p,h,m;return((0,a.useEffect)(()=>{e.adaptor&&console.error("Warning: The `adaptor` API is deprecated. Please use updated APIs on the `external` field instead. This will be a breaking change in a future release.")},[]),"external"!==e.type)?null:(0,i.jsx)(d,{label:l||o,icon:s||(0,i.jsx)(V,{size:16}),el:"div",children:(0,i.jsx)(tw,{name:o,field:(0,n.EZ)((0,n.ih)({},e),{placeholder:(null==(p=e.adaptor)?void 0:p.name)?`Select from ${e.adaptor.name}`:e.placeholder||"Select data",mapProp:(null==(h=e.adaptor)?void 0:h.mapProp)||e.mapProp,mapRow:e.mapRow,fetchList:(null==(m=e.adaptor)?void 0:m.fetchList)?()=>(0,n.Cr)(void 0,null,function*(){return yield e.adaptor.fetchList(e.adaptorParams)}):e.fetchList}),onChange:t,value:r,id:u,readOnly:c})})};(0,n.oX)(),(0,n.oX)();var tz=e=>{try{return JSON.parse(e)}catch(t){return e}},tZ=k("Input",w),tN=({field:e,onChange:t,readOnly:r,value:n,name:o,id:l,label:s,labelIcon:d,Label:u})=>{let c=(0,a.useMemo)(()=>"radio"===e.type?e.options.map(({value:e})=>e):[],[e]);return"radio"===e.type&&e.options?(0,i.jsx)(u,{icon:d||(0,i.jsx)(T,{size:16}),label:s||o,readOnly:r,el:"div",children:(0,i.jsx)("div",{className:tZ("radioGroupItems"),id:l,children:e.options.map(e=>(0,i.jsxs)("label",{className:tZ("radio"),children:[(0,i.jsx)("input",{type:"radio",className:tZ("radioInput"),value:e.value,name:o,onChange:e=>{var r;let n=null!=(r=tz(e.target.value))?r:e.target.value;c.indexOf(n)>-1?t(n):t(e.target.value)},disabled:r,checked:n===e.value}),(0,i.jsx)("div",{className:tZ("radioInner"),children:e.label||e.value})]},e.label+e.value))})}):null};(0,n.oX)();var tP=k("Input",w),tX=({field:e,onChange:t,label:r,labelIcon:n,Label:o,value:l,name:s,readOnly:d,id:u})=>{let c=(0,a.useMemo)(()=>"select"===e.type?e.options.map(({value:e})=>e):[],[e]);return"select"===e.type&&e.options?(0,i.jsx)(o,{label:r||s,icon:n||(0,i.jsx)(M,{size:16}),readOnly:d,children:(0,i.jsx)("select",{id:u,title:r||s,className:tP("input"),disabled:d,onChange:e=>{var r;let n=null!=(r=tz(e.target.value))?r:e.target.value;c.indexOf(n)>-1?t(n):t(e.target.value)},value:l,children:e.options.map(e=>(0,i.jsx)("option",{label:e.label,value:e.value},e.label+e.value))})}):null};(0,n.oX)();var tM=k("Input",w),tD=({field:e,onChange:t,readOnly:r,value:n,name:a,label:o,labelIcon:l,Label:s,id:d})=>(0,i.jsx)(s,{label:o||a,icon:l||(0,i.jsx)(ea,{size:16}),readOnly:r,children:(0,i.jsx)("textarea",{id:d,className:tM("input"),autoComplete:"off",name:a,value:void 0===n?"":n,onChange:e=>t(e.currentTarget.value),readOnly:r,tabIndex:r?-1:void 0,rows:5,placeholder:"textarea"===e.type?e.placeholder:void 0})});(0,n.oX)(),(0,n.oX)();var tL=k("ObjectField",{ObjectField:"_ObjectField_1ua3y_5","ObjectField-fieldset":"_ObjectField-fieldset_1ua3y_13"}
1),tT=({field:e,onChange:t,value:r,name:a,label:o,labelIcon:l,Label:s,readOnly:d,id:u})=>{let{readOnlyFields:c,localName:p=a}=ts();if("object"!==e.type||!e.objectFields)return null;let h=r||{};return(0,i.jsx)(s,{label:o||a,icon:l||(0,i.jsx)(B,{size:16}),el:"div",readOnly:d,children:(0,i.jsx)("div",{className:tL(),children:(0,i.jsx)("fieldset",{className:tL("fieldset"),children:Object.keys(e.objectFields).map(r=>{let o=e.objectFields[r],l=`${a}.${r}`,s=`${p||a}.${r}`,m=d||c[s],v=o.label||r;return(0,i.jsx)(td,{name:p||u,subName:r,readOnlyFields:c,children:(0,i.jsx)(tH,{name:l,label:l,id:`${u}_${r}`,readOnly:m,field:(0,n.EZ)((0,n.ih)({},o),{label:v}),value:h[r],onChange:(e,i)=>{t((0,n.EZ)((0,n.ih)({},h),{[r]:e}),i)}})},l)})})})})};(0,n.oX)();var tA=()=>{if(void 0!==a.useId)return a.useId();let[e]=(0,a.useState)(ef());return e},tO=k("Input",w),tB=k("InputWrapper",w),tF=({children:e,icon:t,label:r,el:n="label",readOnly:a,className:o})=>(0,i.jsxs)(n,{className:o,children:[(0,i.jsxs)("div",{className:tO("label"),children:[t?(0,i.jsx)("div",{className:tO("labelIcon"),children:t}):(0,i.jsx)(i.Fragment,{}),r,a&&(0,i.jsx)("div",{className:tO("disabledIcon"),title:"Read-only",children:(0,i.jsx)(W,{size:"12"})})]}),e]}),tR=({children:e,icon:t,label:r,el:n="label",readOnly:o})=>{let l=eJ(e=>e.overrides),s=(0,a.useMemo)(()=>l.fieldLabel||tF,[l]);return r?(0,i.jsx)(s,{label:r,icon:t,className:tO({readOnly:o}),readOnly:o,el:n,children:e}):(0,i.jsx)(i.Fragment,{children:e})};function t$(e){var t,r,o,l,s,d,u,c;let p=eJ(e=>e.dispatch),h=eJ(e=>e.overrides),m=eJ(e=>{var t;return null==(t=e.selectedItem)?void 0:t.readOnly}),v=(0,a.useContext)(tl),{id:x,Label:y=tR}=e,g=e.field,f=g.label,b=g.labelIcon,_=tA(),j={array:tp,external:tC,object:tT,select:tX,textarea:tD,radio:tN,text:tm,number:tm},E=(0,n.EZ)((0,n.ih)({},h.fieldTypes),{array:(null==(t=h.fieldTypes)?void 0:t.array)||j.array,external:(null==(r=h.fieldTypes)?void 0:r.external)||j.external,object:(null==(o=h.fieldTypes)?void 0:o.object)||j.object,select:(null==(l=h.fieldTypes)?void 0:l.select)||j.select,textarea:(null==(s=h.fieldTypes)?void 0:s.textarea)||j.textarea,radio:(null==(d=h.fieldTypes)?void 0:d.radio)||j.radio,text:(null==(u=h.fieldTypes)?void 0:u.text)||j.text,number:(null==(c=h.fieldTypes)?void 0:c.number)||j.number}),k=(0,n.EZ)((0,n.ih)({},e),{field:g,label:f,labelIcon:b,Label:y,id:x||_}),I=(0,a.useCallback)(e=>{k.name&&("INPUT"===e.target.nodeName||"TEXTAREA"===e.target.nodeName)&&(e.stopPropagation(),p({type:"setUi",ui:{field:{focus:k.name}}}))},[k.name]),S=(0,a.useCallback)(e=>{"name"in e.target&&p({type:"setUi",ui:{field:{focus:null}}})},[]),{visible:w=!0}=e.field;if(!w||"slot"===g.type)return null;if("custom"===g.type){if(!g.render)return null;let e=g.render;return(0,i.jsx)("div",{className:tB(),onFocus:I,onBlur:S,children:(0,i.jsx)("div",{className:tO(),children:(0,i.jsx)(e,(0,n.ih)({},k))})})}let C=j[g.type](k),z=E[g.type];return(0,i.jsx)(tl.Provider,{value:{readOnlyFields:v.readOnlyFields||m||{},localName:v.localName},children:(0,i.jsx)("div",{className:tB(),onFocus:I,onBlur:S,onClick:e=>{e.stopPropagation()},children:(0,i.jsx)(z,(0,n.EZ)((0,n.ih)({},k),{children:C}))})})}function tH(e){let t=eJ(t=>t.state.ui.field.focus===e.name),{value:r,onChange:o}=e,[l,s]=(0,a.useState)(r),d=(0,a.useCallback)((e,t)=>{s(e),o(e,t)},[o]);return(0,a.useEffect)(()=>{t||s(r)},[r]),(0,a.useEffect)(()=>{t||r===l||s(r)},[t,r,l]),(0,i.jsx)(t$,(0,n.ih)((0,n.ih)({},e),{value:l,onChange:d}))}function tV(e){let t=(0,a.useMemo)(()=>t=>(0,i.jsx)("div",(0,n.EZ)((0,n.ih)({},t),{className:tO({readOnly:e.readOnly})})),[e.readOnly]);return"slot"===e.field.type?null:(0,i.jsx)(t$,(0,n.EZ)((0,n.ih)({},e),{Label:t}))}(0,n.oX)(),(0,n.oX)();var tq={Drawer:"_Drawer_pl7z0_1","Drawer-draggable":"_Drawer-draggable_pl7z0_8","Drawer-draggableBg":"_Drawer-draggableBg_pl7z0_12","DrawerItem-draggable":"_DrawerItem-draggable_pl7z0_22","DrawerItem--disabled":"_DrawerItem--disabled_pl7z0_35",DrawerItem:"_DrawerItem_pl7z0_22","Drawer--isDraggingFrom":"_Drawer--isDraggingFrom_pl7z0_45","DrawerItem-name":"_DrawerItem-name_pl7z0_63"};function tU(e){let t={x:0,y:0},r=e;for(;r&&r!==document.documentElement;){let e=r.parentElement;e&&(t.x+=e.scrollLeft,t.y+=e.scrollTop),r=e}return t}(0,n.oX)(),(0,n.oX)(),(0,n.oX)(),(0,n.oX)(),(0,n.oX)(),(0,n.oX)();var tW=(0,a.createContext)(null),tK=(0,a.createContext)((0,m.M)(()=>({zoneDepthIndex:{},nextZoneDepthIndex:{},areaDepthIndex:{},nextAreaDepthIndex:{},draggedItem:null,previewIndex:{},enabledIndex:{},hoveringComponent:null}))),tY=({children:e,store:t})=>(0,i.jsx)(tK.Provider,{value:t,children:e}),tG=({children:e,value:t})=>{let r=eJ(e=>e.dispatch),o=(0,a.useCallback)(e=>{r({type:"registerZone",zone:e})},[r]),l=(0,a.useCallback)(e=>{r({type:"unregisterZone",zone:e})},[r]),s=(0,a.useMemo)(()=>(0,n.ih)({registerZone:o,unregisterZone:l},t),[t]);return(0,i.jsx)(i.Fragment,{children:s&&(0,i.jsx)(tW.Provider,{value:s,children:e})})};function tJ(e,t){let r=(0,a.useContext)(e);if(!r)throw Error("useContextStore must be used inside context");return(0,l.o)(r,(0,y.N)(t))}(0,n.oX)(),(0,n.oX)(),(0,n.oX)();var tQ=(e,t=[])=>{let r=eQ();return(0,a.useCallback)(()=>{let t=()=>{},n=r=>{r?e(!1):(setTimeout(()=>{e(!0)},0),t&&t())},i=r.getState().state.ui.isDragging;return n(i),i&&(t=r.subscribe(e=>e.state.ui.isDragging,e=>{n(e)})),t},[r,...t])},t0=k("DraggableComponent",{DraggableComponent:"_DraggableComponent_qzbgx_1","DraggableComponent-overlay":"_DraggableComponent-overlay_qzbgx_12","DraggableComponent-loadingOverlay":"_DraggableComponent-loadingOverlay_qzbgx_29","DraggableComponent--hover":"_DraggableComponent--hover_qzbgx_45","DraggableComponent--isLocked":"_DraggableComponent--isLocked_qzbgx_45","DraggableComponent--isSelected":"_DraggableComponent--isSelected_qzbgx_54","DraggableComponent-actionsOverlay":"_DraggableComponent-actionsOverlay_qzbgx_66","DraggableComponent-actions":"_DraggableComponent-actions_qzbgx_66"}),t1=({label:e,children:t,parentAction:r})=>(0,i.jsxs)(S,{children:[(0,i.jsxs)(S.Group,{children:[r,e&&(0,i.jsx)(S.Label,{label:e})]}),(0,i.jsx)(S.Group,{children:t})]}),t2=({children:e,depth:t,componentType:r,id:o,index:l,zoneCompound:s,isLoading:d=!1,isSelected:u=!1,debug:c,label:p,autoDragAxis:h,userDragAxis:m,inDroppableZone:g=!0})=>{let f=eJ(e=>{var t;return(null==(t=e.selectedItem)?void 0:t.props.id)===o?e.zoomConfig.zoom:1}),b=eJ(e=>e.overrides),_=eJ(e=>e.dispatch),j=eJ(e=>e.iframe),E=(0,a.useContext)(tW),[k,I]=(0,a.useState)({}),w=(0,a.useCallback)((e,t)=>{var r;null==(r=null==E?void 0:E.registerLocalZone)||r.call(E,e,t),I(r=>(0,n.EZ)((0,n.ih)({},r),{[e]:t}))},[I]),C=(0,a.useCallback)(e=>{var t;null==(t=null==E?void 0:E.unregisterLocalZone)||t.call(E,e),I(t=>{let r=(0,n.ih)({},t);return delete r[e],r})}
1,[I]),z=Object.values(k).filter(Boolean).length>0,Z=eJ((0,y.N)(e=>{var t;return null==(t=e.state.indexes.nodes[o])?void 0:t.path})),N=eJ((0,y.N)(e=>{let t=eI({index:l,zone:s},e.state);return e.permissions.getPermissions({item:t})})),P=(0,a.useContext)(tK),[X,M]=(0,a.useState)(m||h),D=(0,a.useMemo)(()=>ti(X),[X]),{ref:L,isDragging:T,sortable:B}=(0,v.n)({id:o,index:l,group:s,type:"component",data:{areaId:null==E?void 0:E.areaId,zone:s,index:l,componentType:r,containsActiveZone:z,depth:t,path:Z||[],inDroppableZone:g},collisionPriority:t,collisionDetector:D,transition:{duration:200,easing:"cubic-bezier(0.2, 0, 0, 1)"},feedback:"clone"});(0,a.useEffect)(()=>{let e=P.getState().enabledIndex[s];B.droppable.disabled=!e,B.draggable.disabled=!N.drag;let t=P.subscribe(e=>{B.droppable.disabled=!e.enabledIndex[s]});return F.current&&!N.drag?(F.current.setAttribute("data-puck-disabled",""),()=>{var e;null==(e=F.current)||e.removeAttribute("data-puck-disabled"),t()}):t},[N.drag,s]);let F=(0,a.useRef)(null),R=(0,a.useCallback)(e=>{L(e),e&&(F.current=e)},[L]),[$,H]=(0,a.useState)();(0,a.useEffect)(()=>{var e,t,r;H(j.enabled?null==(e=F.current)?void 0:e.ownerDocument.body:null!=(r=null==(t=F.current)?void 0:t.closest("[data-puck-preview]"))?r:document.body)},[j.enabled,F.current]);let V=(0,a.useCallback)(()=>{var e,t,r;if(!F.current)return;let n=F.current.getBoundingClientRect(),i=tU(F.current),a=j.enabled?null:null==(e=F.current)?void 0:e.closest("[data-puck-preview]"),o=null==a?void 0:a.getBoundingClientRect(),l=a?tU(a):{x:0,y:0},s={x:i.x-l.x-(null!=(t=null==o?void 0:o.left)?t:0),y:i.y-l.y-(null!=(r=null==o?void 0:o.top)?r:0)},d={height:F.current.offsetHeight,width:F.current.offsetWidth},u=function(e){let t=new DOMMatrixReadOnly,r=e.parentElement;for(;r&&r!==document.documentElement;){let e=getComputedStyle(r).transform;e&&"none"!==e&&(t=new DOMMatrixReadOnly(e).multiply(t)),r=r.parentElement}return{scaleX:t.a,scaleY:t.d}}(F.current);return{left:`${(n.left+s.x)/u.scaleX}px`,top:`${(n.top+s.y)/u.scaleY}px`,height:`${d.height}px`,width:`${d.width}px`}},[F.current]),[q,U]=(0,a.useState)(),W=(0,a.useCallback)(()=>{U(V())},[F.current,j]);(0,a.useEffect)(()=>{if(F.current){let e=new ResizeObserver(W);return e.observe(F.current),()=>{e.disconnect()}}},[F.current]);let K=eJ(e=>e.nodes.registerNode),Y=(0,a.useCallback)(()=>{ed(!1)},[]),G=(0,a.useCallback)(()=>{ed(!0)},[]);(0,a.useEffect)(()=>{var e;return K(o,{methods:{sync:W,showOverlay:G,hideOverlay:Y},element:null!=(e=F.current)?e:null}),()=>{K(o,{methods:{sync:()=>null,hideOverlay:()=>null,showOverlay:()=>null},element:null})}},[o,s,l,r,W]);let J=(0,a.useMemo)(()=>b.actionBar||t1,[b.actionBar]),Q=(0,a.useCallback)(e=>{e.stopPropagation(),_({type:"setUi",ui:{itemSelector:{index:l,zone:s}}})},[l,s,o]),ee=eQ(),et=(0,a.useCallback)(()=>{let{nodes:e,zones:t}=ee.getState().state.indexes,r=e[o],n=(null==r?void 0:r.parentId)?e[null==r?void 0:r.parentId]:null;if(!n||!r.parentId)return;let i=`${n.parentId}:${n.zone}`,a=t[i].contentIds.indexOf(r.parentId);_({type:"setUi",ui:{itemSelector:{zone:i,index:a}}})},[E,Z]),er=(0,a.useCallback)(()=>{_({type:"duplicate",sourceIndex:l,sourceZone:s})},[l,s]),en=(0,a.useCallback)(()=>{_({type:"remove",index:l,zone:s})},[l,s]),[ea,eo]=(0,a.useState)(!1),el=tJ(tK,e=>e.hoveringComponent===o);(0,a.useEffect)(()=>{if(!F.current)return;let e=F.current,t=e=>{P.getState().draggedItem?T?eo(!0):eo(!1):eo(!0),e.stopPropagation()},r=e=>{e.stopPropagation(),eo(!1)};return e.setAttribute("data-puck-component",o),e.setAttribute("data-puck-dnd",o),e.style.position="relative",e.addEventListener("click",Q),e.addEventListener("mouseover",t),e.addEventListener("mouseout",r),()=>{e.removeAttribute("data-puck-component"),e.removeAttribute("data-puck-dnd"),e.removeEventListener("click",Q),e.removeEventListener("mouseover",t),e.removeEventListener("mouseout",r)}},[F,Q,z,s,o,T,g]);let[es,ed]=(0,a.useState)(!1),[eu,ec]=(0,a.useState)(!0),[eh,em]=(0,a.useTransition)();(0,a.useEffect)(()=>{em(()=>{ea||el||u?(W(),ed(!0),ex(!1)):ed(!1)})},[ea,el,u,j]);let[ev,ex]=(0,a.useState)(!1),ey=tQ(e=>{e?em(()=>{W(),ec(!0)}):ec(!1)});(0,a.useEffect)(()=>{T&&ex(!0)},[T]),(0,a.useEffect)(()=>
1{if(ev)return ey()},[ev,ey]);let eg=(0,a.useCallback)(e=>{if(e&&e.ownerDocument.defaultView){let t=e.getBoundingClientRect(),r=t.x<0,n=t.y;r&&(e.style.transformOrigin="left top",e.style.left="0px"),n<0&&(e.style.top="12px",r||(e.style.transformOrigin="right top"))}},[f]);(0,a.useEffect)(()=>{if(m){M(m);return}if(F.current){let e=window.getComputedStyle(F.current);if("inline"===e.display||"inline-block"===e.display){M("x");return}}M(h)},[F,m,h]);let ef=(0,a.useMemo)(()=>(null==E?void 0:E.areaId)&&(null==E?void 0:E.areaId)!=="root"&&(0,i.jsx)(S.Action,{onClick:et,label:"Select parent",children:(0,i.jsx)(O,{size:16})}),[null==E?void 0:E.areaId]),eb=(0,a.useMemo)(()=>(0,n.EZ)((0,n.ih)({},E),{areaId:o,zoneCompound:s,index:l,depth:t+1,registerLocalZone:w,unregisterLocalZone:C}),[E,o,s,l,t,w,C]);return(0,i.jsxs)(tG,{value:eb,children:[eu&&es&&(0,x.createPortal)((0,i.jsxs)("div",{className:t0({isSelected:u,isDragging:T,hover:ea||el}),style:(0,n.ih)({},q),"data-puck-overlay":!0,children:[c,d&&(0,i.jsx)("div",{className:t0("loadingOverlay"),children:(0,i.jsx)(ep,{})}),(0,i.jsx)("div",{className:t0("actionsOverlay"),style:{top:52/f},children:(0,i.jsx)("div",{className:t0("actions"),style:{transform:`scale(${1/f}`,top:-44/f,right:0,paddingLeft:8,paddingRight:8},ref:eg,children:(0,i.jsxs)(J,{parentAction:ef,label:p,children:[N.duplicate&&(0,i.jsx)(S.Action,{onClick:er,label:"Duplicate",children:(0,i.jsx)(A,{size:16})}),N.delete&&(0,i.jsx)(S.Action,{onClick:en,label:"Delete",children:(0,i.jsx)(ei,{size:16})})]})})}),(0,i.jsx)("div",{className:t0("overlay")})]}),$||document.body),e(R)]})};(0,n.oX)(),(0,n.oX)();var t4=(e,t)=>e.getState().state.indexes.zones[t].contentIds.length,t8=({zoneCompound:e,userMinEmptyHeight:t,ref:r})=>{let n=eQ(),[i,o]=(0,a.useState)(0),[l,s]=(0,a.useState)(!1),{draggedItem:d,isZone:u}=tJ(tK,t=>{var r,n;return{draggedItem:(null==(r=t.draggedItem)?void 0:r.data.zone)===e?t.draggedItem:null,isZone:(null==(n=t.draggedItem)?void 0:n.data.zone)===e}}),c=(0,a.useRef)(0),p=tQ(t=>{var r;if(t){let t=t4(n,e);if(o(0),t||0===c.current){s(!1);return}let i=n.getState().selectedItem,a=n.getState().state.indexes.zones,l=n.getState().nodes;null==(r=l.nodes[null==i?void 0:i.props.id])||r.methods.hideOverlay(),setTimeout(()=>{var t;((null==(t=a[e])?void 0:t.contentIds)||[]).forEach(e=>{let t=l.nodes[e];null==t||t.methods.sync()}),i&&setTimeout(()=>{var e,t;null==(e=l.nodes[i.props.id])||e.methods.sync(),null==(t=l.nodes[i.props.id])||t.methods.showOverlay()},200),s(!1)},100)}},[n,i,e]);return(0,a.useEffect)(()=>{if(d&&r.current&&u){let t=r.current.getBoundingClientRect();return c.current=t4(n,e),o(t.height),s(!0),p()}},[r.current,d,p]),[i||t,l]};(0,n.oX)(),(0,n.oX)(),(0,n.oX)();var t5=(e,t)=>{let r=(0,a.useContext)(tK),i=tJ(tK,e=>e.previewIndex[t]),o=eJ(e=>e.state.ui.isDragging),[l,s]=(0,a.useState)(e),[u,c]=(0,a.useState)(i),p=function(e,t){let r=(0,d.Nx)();return(0,a.useCallback)((...t)=>(0,n.Cr)(this,null,function*(){return yield null==r?void 0:r.renderer.rendering,e(...t)}),[...t,r])}((e,t,r,n,i)=>{(!r||i)&&(t?"insert"===t.type?s(eg(e.filter(e=>e!==t.props.id),t.index,t.props.id)):s(eg(e.filter(e=>e!==t.props.id),t.index,t.props.id)):s(i?e.filter(e=>e!==n):e),c(t))},[]);return(0,a.useEffect)(()=>{var t;let n=r.getState();p(e,i,o,null==(t=n.draggedItem)?void 0:t.id,Object.keys(n.previewIndex||{}).length>0)},[e,i,o]),[l,u]};(0,n.oX)();var t3=(e,t)=>{let r=eJ(e=>e.status),[n,i]=(0,a.useState)(t||"y"),o=(0,a.useCallback)(()=>{if(e.current){let t=window.getComputedStyle(e.current);"grid"===t.display?i("dynamic"):"flex"===t.display&&"row"===t.flexDirection?i("x"):i("y")}},[e.current]);return(0,a.useEffect)(()=>{let e=()=>{o()};return window.addEventListener("viewportchange",e),()=>{window.removeEventListener("viewportchange",e)}},[]),(0,a.useEffect)(o,[r,t]),[n,o]};(0,n.oX)(),(0,n.oX)();var t6=({componentId:e,zone:t})=>{let r=eJ(e=>e.config),a=eJ(e=>e.metadata),o=eJ((0,y.N)(r=>{var n,i;let a=r.state.indexes;return(null!=(i=null==(n=a.zones[`${e}:${t}`])?void 0:n.contentIds)?i:[]).map(e=>a.nodes[e].flatData)}));return(0,i.jsx)(n.jB,{content:o,zone:t,config:r,metadata:a})},t9=a.createContext({config:{components:{}},data:{root:{},content:[]},metadata:{}});function t7({config:e,data:t,metadata:r={}}){var o;let l=(0,n.EZ)((0,n.ih)({},t),{root:t.root||{},content:t.content||[]}),s="props"in l.root?l.root.props:l.root,d=(null==s?void 0:s.title)||"",u=(0,n.EZ)((0,n.ih)({},s),{puck:{renderDropZone:rl,isEditing:!1,dragRef:null,metadata:r},title:d,editMode:!1,id:"puck-root"}),c=(0,n.Rr)(e,{type:"root",props:u},t=>(0,i.jsx)(n.CJ,(0,n.EZ)((0,n.ih)({},t),{config:e,metadata:r}))),p=(0,a.useMemo)(()=>({mode:"render",depth:0}),[]);return(null==(o=e.root)?void 0:o.render)?(0,i.jsx)(t9.Provider,{value:{config:e,data:l,metadata:r},children:(0,i.jsx)(tG,{value:p,children:(0,i.jsx)(e.root.render,(0,n.EZ)((0,n.ih)({},c),{children:(0,i.jsx)(ra,{zone:n.xW})}))})}):(0,i.jsx)(t9.Provider,{value:{config:e,data:l,metadata:r},children:(0,i.jsx)(tG,{value:p,children:(0,i.jsx)(ra,{zone:n.xW})})})}var re=k("DropZone",{DropZone:"_DropZone_1i2sv_1","DropZone--hasChildren":"_DropZone--hasChildren_1i2sv_11","DropZone--isAreaSelected":"_DropZone--isAreaSelected_1i2sv_24","DropZone--hoveringOverArea":"_DropZone--hoveringOverArea_1i2sv_25","DropZone--isRootZone":"_DropZone--isRootZone_1i2sv_25","DropZone--isDestination":"_DropZone--isDestination_1i2sv_35","DropZone-item":"_DropZone-item_1i2sv_47","DropZone-hitbox":"_DropZone-hitbox_1i2sv_51","DropZone--isEnabled":"_DropZone--isEnabled_1i2sv_59","DropZone--isAnimating":"_DropZone--isAnimating_1i2sv_68"}),rt=e=>(0,i.jsx)(rn,(0,n.ih)({},e)),rr=(0,a.memo)(({zoneCompound:e,componentId:t,index:r,dragAxis:o,collisionAxis:l,inDroppableZone:s})=>{var d,u;let c=eJ(e=>e.metadata),p=(0,a.useContext)(tW),{depth:h=1}=null!=p?p:{},m=(0,a.useContext)(tK),v=eJ((0,y.N)(e=>{var r;return null==(r=e.state.indexes.nodes[t])?void 0:r.flatData.props})),x=eJ(e=>{var r;return null==(r=e.state.indexes.nodes[t])?void 0:r.data.type}),g=eJ((0,y.N)(e=>{var r;return null==(r=e.state.indexes.nodes[t])?void 0:r.data.readOnly})),f=eQ(),b=(0,a.useMemo)(()=>
1{if(v)return(0,n.A2)({type:x,props:v});let r=m.getState().previewIndex[e];return t===(null==r?void 0:r.props.id)?{type:r.componentType,props:r.props,previewType:r.type}:null},[f,t,e,x,v]),_=eJ(e=>(null==b?void 0:b.type)?e.config.components[b.type]:null),j=(0,a.useMemo)(()=>({renderDropZone:rt,isEditing:!0,dragRef:null,metadata:(0,n.ih)((0,n.ih)({},c),null==_?void 0:_.metadata)}),[c,null==_?void 0:_.metadata]),E=eJ(e=>e.overrides),k=eJ(e=>{var r;return(null==(r=e.componentState[t])?void 0:r.loadingCount)>0}),I=eJ(e=>{var r;return(null==(r=e.selectedItem)?void 0:r.props.id)===t}),S=null!=(u=null!=(d=null==_?void 0:_.label)?d:null==b?void 0:b.type.toString())?u:"Component",w=(0,a.useMemo)(()=>function(){return(0,i.jsx)(rI,{name:S,children:E.componentItem})},[t,S,E]),C=(0,a.useMemo)(()=>(0,n.EZ)((0,n.ih)((0,n.ih)({},null==_?void 0:_.defaultProps),null==b?void 0:b.props),{puck:j,editMode:!0}),[null==_?void 0:_.defaultProps,null==b?void 0:b.props,j]),z=(0,a.useMemo)(()=>{var e;return{type:null!=(e=null==b?void 0:b.type)?e:x,props:C}},[null==b?void 0:b.type,x,C]),Z=eJ(e=>e.config),N=(0,n.Rr)(Z,z,rt,e=>(0,i.jsx)(t6,{componentId:t,zone:e.zone}),g,k);if(!b)return;let P=_?_.render:()=>(0,i.jsxs)("div",{style:{padding:48,textAlign:"center"},children:["No configuration for ",b.type]}),X=b.type,M="previewType"in b&&"insert"===b.previewType;return M&&(P=w),(0,i.jsx)(t2,{id:t,componentType:X,zoneCompound:e,depth:h+1,index:r,isLoading:k,isSelected:I,label:S,autoDragAxis:o,userDragAxis:l,inDroppableZone:s,children:e=>(null==_?void 0:_.inline)&&!M?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(P,(0,n.EZ)((0,n.ih)({},N),{puck:(0,n.EZ)((0,n.ih)({},N.puck),{dragRef:e})}))}):(0,i.jsx)("div",{ref:e,children:(0,i.jsx)(P,(0,n.ih)({},N))})})}),rn=(0,a.forwardRef)(function({zone:e,allow:t,disallow:r,style:o,className:l,minEmptyHeight:s=128,collisionAxis:u},c){let p=(0,a.useContext)(tW),{areaId:h,depth:m=0,registerLocalZone:v,unregisterLocalZone:x}=null!=p?p:{},g=eJ((0,y.N)(e=>{var t;return h?null==(t=e.state.indexes.nodes[h])?void 0:t.path:null})),f=n.l9;h&&e!==n.l9&&(f=`${h}:${e}`);let b=f===n.l9||e===n.l9||"root"===h,_=tJ(tK,e=>e.nextAreaDepthIndex[h||""]),j=eJ((0,y.N)(e=>{var t;return null==(t=e.state.indexes.zones[f])?void 0:t.contentIds})),E=eJ((0,y.N)(e=>{var t;return null==(t=e.state.indexes.zones[f])?void 0:t.type}));(0,a.useEffect)(()=>{if(!E||"dropzone"===E)return(null==p?void 0:p.registerZone)&&(null==p||p.registerZone(f)),()=>{(null==p?void 0:p.unregisterZone)&&(null==p||p.unregisterZone(f))}},[E]),(0,a.useEffect)(()=>{"dropzone"===E&&f!==n.l9&&console.warn("DropZones have been deprecated in favor of slot fields and will be removed in a future version of Puck. Please see the migration guide: https://www.puckeditor.com/docs/guides/migrations/dropzones-to-slots")},[E]);let k=(0,a.useMemo)(()=>j||[],[j]),I=(0,a.useRef)(null),S=(0,a.useCallback)(e=>{if(!e)return!0;if(r){let n=t||[];if(-1!==(r||[]).filter(e=>-1===n.indexOf(e)).indexOf(e))return!1}else if(t&&-1===t.indexOf(e))return!1;return!0},[t,r]),w=tJ(tK,e=>{var t;return S(null==(t=e.draggedItem)?void 0:t.data.componentType)}),C=_||b,z=tJ(tK,e=>{var t;let r=!0;return(r=null!=(t=e.zoneDepthIndex[f])&&t)&&(r=w),r});(0,a.useEffect)(()=>(v&&v(f,w||z),()=>{x&&x(f)}),[w,z,f]);let[Z,N]=t5(k,f),P=z&&(N?1===Z.length:0===Z.length),X=(0,a.useContext)(tK);(0,a.useEffect)(()=>{let{enabledIndex:e}=X.getState();X.setState({enabledIndex:(0,n.EZ)((0,n.ih)({},e),{[f]:z})})},[z,X,f]);let M={id:f,collisionPriority:z?m:0,disabled:!P,collisionDetector:te,type:"dropzone",data:{areaId:h,depth:m,isDroppableTarget:w,path:g||[]}},{ref:D}=(0,d.Zj)(M),L=eJ(e=>(null==e?void 0:e.selectedItem)&&h===(null==e?void 0:e.selectedItem.props.id)),[T]=t3(I,u),[A,O]=t8({zoneCompound:f,userMinEmptyHeight:s,ref:I});return(0,i.jsx)("div",{className:`${re({isRootZone:b,hoveringOverArea:C,isEnabled:z,isAreaSelected:L,hasChildren:k.length>0,isAnimating:O})}${l?` ${l}`:""}`,ref:e=>{!function(e,t){e.forEach(e=>{"function"==typeof e?e(t):e&&"object"==typeof e&&"current"in e&&(e.current=t)})}([I,D,c],e)},"data-testid":`dropzone:${f}`,"data-puck-dropzone":f,style:(0,n.EZ)((0,n.ih)({},o),{"--min-empty-height":`${A}px`,backgroundColor:null==o?void 0:o.backgroundColor}),children:Z.map((e,t)=>(0,i.jsx)(rr,{zoneCompound:f,componentId:e,dragAxis:T,index:t,collisionAxis:u,inDroppableZone:w},e))})}),ri=({config:e,item:t,metadata:r})=>{let o=e.components[t.type],l=(0,n.Rr)(e,t,t=>(0,i.jsx)(n.jB,(0,n.EZ)((0,n.ih)({},t),{config:e,metadata:r}))),s=(0,a.useMemo)(()=>({areaId:l.id,depth:1}),[l]);return(0,i.jsx)(tG,{value:s,children:(0,i.jsx)(o.render,(0,n.EZ)((0,n.ih)({},l),{puck:(0,n.EZ)((0,n.ih)({},l.puck),{renderDropZone:ra,metadata:(0,n.ih)((0,n.ih)({},r),o.metadata)})}))},l.id)},ra=e=>(0,i.jsx)(ro,(0,n.ih)({},e)),ro=(0,a.forwardRef)(function({className:e,style:t,zone:r},o){let l=(0,a.useContext)(tW),{areaId:s="root"}=l||{},{config:d,data:u,metadata:c}=(0,a.useContext)(t9),p=`${s}:${r}`,h=(null==u?void 0:u.content)||[];return((0,a.useEffect)(()=>
1{if(!h)return(null==l?void 0:l.registerZone)&&(null==l||l.registerZone(p)),()=>{(null==l?void 0:l.unregisterZone)&&(null==l||l.unregisterZone(p))}},[h]),u&&d)?(p!==n.l9&&(h=(0,n.YA)(u,p).zones[p]),(0,i.jsx)("div",{className:e,style:t,ref:o,children:h.map(e=>d.components[e.type]?(0,i.jsx)(ri,{config:d,item:e,metadata:c},e.props.id):null)})):null}),rl=e=>(0,i.jsx)(rs,(0,n.ih)({},e)),rs=(0,a.forwardRef)(function(e,t){let r=(0,a.useContext)(tW);return(null==r?void 0:r.mode)==="edit"?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(rn,(0,n.EZ)((0,n.ih)({},e),{ref:t}))}):(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(ro,(0,n.EZ)((0,n.ih)({},e),{ref:t}))})});(0,n.oX)(),(0,n.oX)(),(0,n.oX)();var rd=()=>{if("undefined"==typeof window)return;let e=document.querySelector("#preview-frame");return(null==e?void 0:e.tagName)==="IFRAME"?e.contentDocument||document:(null==e?void 0:e.ownerDocument)||document};(0,n.oX)();var ru=class{constructor(e,t){var r;this.scaleFactor=1,this.frameEl=null,this.frameRect=null,this.target=e,this.original=t,this.frameEl=document.querySelector("iframe#preview-frame"),this.frameEl&&(this.frameRect=this.frameEl.getBoundingClientRect(),this.scaleFactor=this.frameRect.width/((null==(r=this.frameEl.contentWindow)?void 0:r.innerWidth)||1))}get x(){return this.original.x}get y(){return this.original.y}get global(){return document!==this.target.ownerDocument&&this.frameRect?{x:this.x*this.scaleFactor+this.frameRect.left,y:this.y*this.scaleFactor+this.frameRect.top}:this.original}get frame(){return document===this.target.ownerDocument&&this.frameRect?{x:(this.x-this.frameRect.left)/this.scaleFactor,y:(this.y-this.frameRect.top)/this.scaleFactor}:this.original}};(0,n.oX)();var rc="undefined"!=typeof PointerEvent?PointerEvent:Event,rp=class extends rc{constructor(e,t){super(e,t),this._originalTarget=null,this.originalTarget=t.originalTarget}set originalTarget(e){this._originalTarget=e}get originalTarget(){return this._originalTarget}},rh=e=>e.sort((e,t)=>{let r=e.data,n=t.data;return r.depth>n.depth?1:n.depth>r.depth?-1:0}),rm=e=>{let t=null==e?void 0:e.id;if(!e)return null;if("component"===e.type){let r=e.data;t=r.containsActiveZone?null:r.zone}else if("void"===e.type)return"void";return t},rv=(e,t)=>{let r=[],n=e.target.ownerDocument.elementsFromPoint(e.x,e.y),i=n.find(e=>e.getAttribute("data-puck-preview")),a=n.find(e=>e.getAttribute("data-puck-drawer"));if(a&&(n=[a]),i){let t=rd();t&&(n=t.elementsFromPoint(e.frame.x,e.frame.y))}if(n)for(let i=0;i<n.length;i++){let a=n[i],o=a.getAttribute("data-puck-dropzone"),l=a.getAttribute("data-puck-dnd"),s=a.hasAttribute("data-puck-dnd-void");if((o||l)&&!s){let t=a.getBoundingClientRect(),r={left:t.left+6,right:t.right-6,top:t.top+6,bottom:t.bottom-6};if(e.frame.x<r.left||e.frame.x>r.right||e.frame.y>r.bottom||e.frame.y<r.top)continue}if(o){let e=t.registry.droppables.get(o);e&&r.push(e)}if(l){let e=t.registry.droppables.get(l);e&&r.push(e)}}return r},rx=(e,t)=>{var r;let i=rv(e,t);if(i.length>0){let e=rh(i),n=t.dragOperation.source,a=e.findIndex(e=>e.id===(null==n?void 0:n.id)),o=null==n?void 0:n.id,l=[...e];o&&a>-1&&l.splice(a,1),(l=l.filter(e=>{let t=e.data;if(o&&a>-1&&t.path.indexOf(o)>-1)return!1;if("dropzone"===e.type){let t=e.data;if(!t.isDroppableTarget||t.areaId===o)return!1}else if("component"===e.type&&!e.data.inDroppableZone)return!1;return!0})).reverse();let s=l[0],d=s.data;return{zone:rm(s),area:"containsActiveZone"in d&&d.containsActiveZone?l[0].id:null==(r=l[0])?void 0:r.data.areaId}}return{zone:n.l9,area:n.l4}},ry=({onChange:e},t)=>class extends p.Sy{constructor(r,n){if(super(r),"undefined"==typeof window)return;this.registerEffect(()=>{let n=function(e,t){let r;let n=()=>performance.now(),i=0;return function(...t){let a=n(),o=this;a-i>=50?(e.apply(o,t),i=a):(null==r||r(),r=function(e,t){let r=setTimeout(e,t);return()=>clearTimeout(r)}(()=>{e.apply(o,t),i=n()},50-(a-i)))}}(n=>{let i=new ru(n instanceof rp&&n.originalTarget||n.target,{x:n.clientX,y:n.clientY});document.elementsFromPoint(i.global.x,i.global.y).some(e=>e.id===t)&&e(rx(i,r),r)},0),i=e=>{n(e)};return document.body.addEventListener("pointermove",i,{capture:!0}),()=>{document.body.removeEventListener("pointermove",i,{capture:!0})}})}};(0,n.oX)();var rg=(e,t,r,i)=>(0,n.Cr)(void 0,null,function*(){let a=ef(e),o={type:"insert",componentType:e,destinationIndex:r,destinationZone:t,id:a},{state:l,dispatch:s,resolveComponentData:d}=i,u=ej(l,o,i);s((0,n.EZ)((0,n.ih)({},o),{recordHistory:!0}));let c={index:r,zone:t};s({type:"setUi",ui:{itemSelector:c}});let p=eI(c,u);if(p){let e=yield d(p,"insert");e.didChange&&s({type:"replace",destinationZone:c.zone,destinationIndex:c.index,data:e.node})}});(0,n.oX)();var rf=(0,a.createContext)({dragListeners:{}}),rb=e=>{let t=(0,a.useRef)(null);return(0,a.useCallback)(r=>{tr.setState({fallbackEnabled:!1});let n=ef();t.current=n,setTimeout(()=>{t.current===n&&(tr.setState({fallbackEnabled:!0}),r.collisionObserver.forceUpdate(!0))},e)},[])},r_=({children:e,disableAutoScroll:t})=>{let r=eJ(e=>e.dispatch),n=eQ(),o=tA(),l=(0,a.useRef)(null),s=rb(100),[c]=(0,a.useState)(()=>(0,m.M)(()=>({zoneDepthIndex:{},nextZoneDepthIndex:{},areaDepthIndex:{},nextAreaDepthIndex:{},draggedItem:null,previewIndex:{},enabledIndex:{},hoveringComponent:null}))),p=(0,a.useCallback)((e,t)=>{let{zoneDepthIndex:r={},areaDepthIndex:n={}}=c.getState()||{},i=Object.keys(r).length>0,a=Object.keys(n).length>0,o=!1,l=!1;return e.zone&&!r[e.zone]?o=!0:!e.zone&&i&&(o=!0),e.area&&!n[e.area]?l=!0:!e.area&&a&&(l=!0),{zoneChanged:o,areaChanged:l}},[c]),h=(0,a.useCallback)((e,t)=>{let{zoneChanged:r,areaChanged:n}=p(e,o);(r||n)&&(c.setState({zoneDepthIndex:e.zone?{[e.zone]:!0}:{},areaDepthIndex:e.area?{[e.area]:!0}:{}}),s(t),setTimeout(()=>{t.collisionObserver.forceUpdate(!0)},50),l.current=null)},[c]),v=(0,g.y1)(h,100),x=()=>{v.cancel(),l.current=null};(0,a.useEffect)(()=>{},[]);let[y]=(0,a.useState)(()=>[...t?u.RQ.plugins.filter(e=>e!==u.hY):u.RQ.plugins,ry({onChange:(e,t)=>
1{let r=c.getState(),{zoneChanged:n,areaChanged:i}=p(e,o),a=t.dragOperation.status.dragging;if(i||n){let t={},r={};e.zone&&(t={[e.zone]:!0}),e.area&&(r={[e.area]:!0}),c.setState({nextZoneDepthIndex:t,nextAreaDepthIndex:r})}if("void"!==e.zone&&(null==r?void 0:r.zoneDepthIndex.void)){h(e,t);return}if(i){if(a){let r=l.current;r&&r.area===e.area&&r.zone===e.zone||(x(),v(e,t),l.current=e)}else x(),h(e,t);return}n&&h(e,t),x()}},o)]),b=e2(),[_,j]=(0,a.useState)({}),E=(0,a.useRef)(null),k=(0,a.useRef)(void 0),I=(0,a.useMemo)(()=>({mode:"edit",areaId:"root",depth:0}),[]);return(0,i.jsx)("div",{id:o,children:(0,i.jsx)(rf.Provider,{value:{dragListeners:_,setDragListeners:j},children:(0,i.jsx)(d.wz,{plugins:y,sensors:b,onDragEnd:(e,t)=>{var i,a;let o;let l=null==(i=rd())?void 0:i.querySelector("[data-puck-entry]");null==l||l.removeAttribute("data-puck-dragging");let{source:s,target:d}=e.operation;if(!s){c.setState({draggedItem:null});return}let{zone:u,index:p}=s.data,{previewIndex:h={}}=c.getState()||{},m=(null==(a=h[u])?void 0:a.props.id)===s.id?h[u]:null,v=()=>{var i,a;if(c.setState({draggedItem:null}),e.canceled||(null==d?void 0:d.type)==="void"){c.setState({previewIndex:{}}),null==(i=_.dragend)||i.forEach(r=>{r(e,t)}),r({type:"setUi",ui:{itemSelector:null,isDragging:!1}});return}m&&(c.setState({previewIndex:{}}),"insert"===m.type?rg(m.componentType,m.zone,m.index,n.getState()):k.current&&r({type:"move",sourceIndex:k.current.index,sourceZone:k.current.zone,destinationIndex:m.index,destinationZone:m.zone,recordHistory:!1})),r({type:"setUi",ui:{itemSelector:{index:p,zone:u},isDragging:!1},recordHistory:!0}),null==(a=_.dragend)||a.forEach(r=>{r(e,t)})};o=(0,f.cE)(()=>{"idle"===s.status&&(v(),null==o||o())})},onDragOver:(e,t)=>{var r,i,a,o,l;if(e.preventDefault(),!(null==(r=c.getState())?void 0:r.draggedItem))return;x();let{source:s,target:d}=e.operation;if(!d||!s||"void"===d.type)return;let[u]=s.id.split(":"),[p]=d.id.split(":"),h=s.data,m=h.zone,v=h.index,y="",g=0;if("component"===d.type){let e=d.data;y=e.zone,g=e.index;let r=null==(i=t.collisionObserver.collisions[0])?void 0:i.data,n=(l=d.element)?function e(t){return t?t.getAttribute("dir")||e(t.parentElement):"ltr"}(l):"ltr";g>=v&&m===y&&(g-=1),"after"==((null==r?void 0:r.direction)==="up"||"ltr"===n&&(null==r?void 0:r.direction)==="left"||"rtl"===n&&(null==r?void 0:r.direction)==="right"?"before":"after")&&(g+=1)}else y=d.id.toString(),g=0;let f=(null==(a=n.getState().state.indexes.nodes[d.id])?void 0:a.path)||[];if(!(p===u||f.find(e=>{let[t]=e.split(":");return t===u}))){if("new"===E.current)c.setState({previewIndex:{[y]:{componentType:h.componentType,type:"insert",index:g,zone:y,props:{id:s.id.toString()}}}});else{k.current||(k.current={zone:h.zone,index:h.index});let e=eI(k.current,n.getState().state);e&&c.setState({previewIndex:{[y]:{componentType:h.componentType,type:"move",index:g,zone:y,props:e.props}}})}null==(o=_.dragover)||o.forEach(r=>{r(e,t)})}},onDragStart:(e,t)=>{var r;let{source:i}=e.operation;if(i&&"void"!==i.type){let e=i.data,t=eI({zone:e.zone,index:e.index},n.getState().state);t&&c.setState({previewIndex:{[e.zone]:{componentType:e.componentType,type:"move",index:e.index,zone:e.zone,props:t.props}}})}null==(r=_.dragstart)||r.forEach(r=>{r(e,t)})},onBeforeDragStart:e=>{var t,i,a,o;let l=(null==(t=e.operation.source)?void 0:t.type)==="drawer";E.current=l?"new":"existing",k.current=void 0,c.setState({draggedItem:e.operation.source}),(null==(i=n.getState().selectedItem)?void 0:i.props.id)!==(null==(a=e.operation.source)?void 0:a.id)?r({type:"setUi",ui:{itemSelector:null,isDragging:!0},recordHistory:!1}):r({type:"setUi",ui:{isDragging:!0},recordHistory:!1});let s=null==(o=rd())?void 0:o.querySelector("[data-puck-entry]");null==s||s.setAttribute("data-puck-dragging","true")},children:(0,i.jsx)(tY,{store:c,children:(0,i.jsx)(tG,{value:I,children:e})})})})})},rj=({children:e,disableAutoScroll:t})=>"LOADING"===eJ(e=>e.status)?e:(0,i.jsx)(r_,{disableAutoScroll:t,children:e}),rE=k("Drawer",tq),rk=k("DrawerItem",tq),rI=({children:e,name:t,label:r,dragRef:n,isDragDisabled:o})=>{let l=(0,a.useMemo)(()=>e||(({children:e})=>(0,i.jsx)("div",{className:rk("default"),children:e})),[e]);return(0,i.jsx)("div",{className:rk({disabled:o}),ref:n,onMouseDown:e=>e.preventDefault(),"data-testid":n?`drawer-item:${t}`:"","data-puck-drawer-item":!0,children:(0,i.jsx)(l,{name:t,children:(0,i.jsx)("div",{className:rk("draggableWrapper"),children:(0,i.jsxs)("div",{className:rk("draggable"),children:[(0,i.jsx)("div",{className:rk("name"),children:null!=r?r:t}),(0,i.jsx)("div",{className:rk("icon"),children:(0,i.jsx)(ex,{})})]})})})})},rS=({children:e,name:t,label:r,id:n,isDragDisabled:a})=>{let{ref:o}=(0,d.O1)({id:n,data:{componentType:t},disabled:a,type:"drawer"});return(0,i.jsxs)("div",{className:rE("draggable"),children:[(0,i.jsx)("div",{className:rE("draggableBg"),children:(0,i.jsx)(rI,{name:t,label:r,children:e})}),(0,i.jsx)("div",{className:rE("draggableFg"),children:(0,i.jsx)(rI,{name:t,label:r,dragRef:o,isDragDisabled:a,children:e})})]})},rw=({children:e,droppableId:t,direction:r})=>{t&&console.error("Warning: The `droppableId` prop on Drawer is deprecated and no longer required."),r&&console.error("Warning: The `direction` prop on Drawer is deprecated and no longer required to achieve multi-directional dragging.");let n=tA(),{ref:a}=(0,d.Zj)({id:n,type:"void",collisionPriority:0});return(0,i.jsx)("div",{className:rE(),ref:a,"data-puck-dnd":n,"data-puck-drawer":!0,"data-puck-dnd-void":!0,children:e})};rw.Item=({name:e,children:t,id:r,label:o,index:l,isDragDisabled:s})=>{let d=r||e,[u,c]=(0,a.useState)(ef(d));return void 0!==l&&console.error("Warning: The `index` prop on Drawer.Item is deprecated and no longer required."),function(e,t,r=[]){let{setDragListeners:i}=(0,a.useContext)(rf);(0,a.useEffect)(()=>{i&&i(r=>(0,n.EZ)((0,n.ih)({},r),{[e]:[...r[e]||[],t]}))},r)}("dragend",()=>{c(ef(d))},[d]),(0,i.jsx)("div",{children:(0,i.jsx)(rS,{name:e,label:o,id:u,isDragDisabled:s,children:t})},u)},(0,n.oX)(),(0,n.oX)(),(0,n.oX)(),(0,n.oX)();var rC=e=>{let t=eJ(e=>{var t;return null==(t=e.selectedItem)?void 0:t.props.id}),r=eJ(e=>e.config),n=eJ(e=>{var r;return null==(r=e.state.indexes.nodes[t])?void 0:r.path}),i=eQ();return(0,a.useMemo)(()=>{let t=(null==n?void 0:n.map(e=>{var t,n,a;let[o]=e.split(":");if("root"===o)return{label:"Page",selector:null};let l=i.getState().state.indexes.nodes[o],s=l.path[l.path.length-1],d=((null==(t=i.getState().state.indexes.zones[s])?void 0:t.contentIds)||[]).indexOf(o);return{label:l?null!=(a=null==(n=r.components[l.data.type])?void 0:n.label)?a:l.data.type:"C
1omponent",selector:l?{index:d,zone:l.path[l.path.length-1]}:null}}))||[];return e?t.slice(t.length-e):t},[n,e])},rz=k("SidebarSection",{SidebarSection:"_SidebarSection_8boj8_1","SidebarSection-title":"_SidebarSection-title_8boj8_12","SidebarSection--noBorderTop":"_SidebarSection--noBorderTop_8boj8_20","SidebarSection-content":"_SidebarSection-content_8boj8_24","SidebarSection--noPadding":"_SidebarSection--noPadding_8boj8_28","SidebarSection-breadcrumbLabel":"_SidebarSection-breadcrumbLabel_8boj8_41","SidebarSection-breadcrumbs":"_SidebarSection-breadcrumbs_8boj8_70","SidebarSection-breadcrumb":"_SidebarSection-breadcrumb_8boj8_41","SidebarSection-heading":"_SidebarSection-heading_8boj8_82","SidebarSection-loadingOverlay":"_SidebarSection-loadingOverlay_8boj8_86"}),rZ=({children:e,title:t,background:r,showBreadcrumbs:n,noBorderTop:a,noPadding:o,isLoading:l})=>{let s=eJ(e=>e.setUi),d=rC(1);return(0,i.jsxs)("div",{className:rz({noBorderTop:a,noPadding:o}),style:{background:r},children:[(0,i.jsx)("div",{className:rz("title"),children:(0,i.jsxs)("div",{className:rz("breadcrumbs"),children:[n?d.map((e,t)=>(0,i.jsxs)("div",{className:rz("breadcrumb"),children:[(0,i.jsx)("button",{type:"button",className:rz("breadcrumbLabel"),onClick:()=>s({itemSelector:e.selector}),children:e.label}),(0,i.jsx)(D,{size:16})]},t)):null,(0,i.jsx)("div",{className:rz("heading"),children:(0,i.jsx)(tf,{rank:"2",size:"xs",children:t})})]})}),(0,i.jsx)("div",{className:rz("content"),children:e}),l&&(0,i.jsx)("div",{className:rz("loadingOverlay"),children:(0,i.jsx)(ep,{size:32})})]})};(0,n.oX)();var rN={Puck:"_Puck_dnlfp_19","Puck-portal":"_Puck-portal_dnlfp_31","PuckLayout-inner":"_PuckLayout-inner_dnlfp_38","PuckLayout--mounted":"_PuckLayout--mounted_dnlfp_50","PuckLayout--leftSideBarVisible":"_PuckLayout--leftSideBarVisible_dnlfp_54","PuckLayout--rightSideBarVisible":"_PuckLayout--rightSideBarVisible_dnlfp_60","PuckLayout-mounted":"_PuckLayout-mounted_dnlfp_74",PuckLayout:"_PuckLayout_dnlfp_38","PuckLayout-leftSideBar":"_PuckLayout-leftSideBar_dnlfp_115","PuckLayout-rightSideBar":"_PuckLayout-rightSideBar_dnlfp_124"};(0,n.oX)(),(0,n.oX)();var rP=k("PuckFields",{PuckFields:"_PuckFields_10bh7_1","PuckFields--isLoading":"_PuckFields--isLoading_10bh7_6","PuckFields-loadingOverlay":"_PuckFields-loadingOverlay_10bh7_10","PuckFields-loadingOverlayInner":"_PuckFields-loadingOverlayInner_10bh7_25","PuckFields-field":"_PuckFields-field_10bh7_32","PuckFields--wrapFields":"_PuckFields--wrapFields_10bh7_36"}),rX=({children:e})=>(0,i.jsx)(i.Fragment,{children:e}),rM=(e,t)=>(r,i)=>(0,n.Cr)(void 0,null,function*(){let a;let{dispatch:o,state:l,selectedItem:s,resolveComponentData:d}=t.getState(),{data:u,ui:c}=l,{itemSelector:p}=c,h=u.root.props||u.root;a=s?s.props:h;let m=(0,n.EZ)((0,n.ih)({},a),{[e]:r});o(s&&p?{type:"replace",destinationIndex:p.index,destinationZone:p.zone||n.l9,data:(yield d((0,n.EZ)((0,n.ih)({},s),{props:m}),"replace")).node,ui:i}:u.root.props?{type:"replaceRoot",root:(yield d((0,n.EZ)((0,n.ih)({},u.root),{props:m}),"replace")).node,ui:(0,n.ih)((0,n.ih)({},c),i),recordHistory:!0}:{type:"setData",data:{root:m}})}),rD=(0,a.memo)(({fieldName:e})=>{let t=eJ(t=>t.fields.fields[e]),r=eJ(t=>((t.selectedItem?t.selectedItem.readOnly:t.state.data.root.readOnly)||{})[e]),n=eJ(t=>{let r=t.state.data.root.props||t.state.data.root;return t.selectedItem?t.selectedItem.props[e]:r[e]}),o=eJ(r=>t?r.selectedItem?`${r.selectedItem.props.id}_${t.type}_${e}`:`root_${t.type}_${e}`:null),l=eJ((0,y.N)(e=>{let{selectedItem:t,permissions:r}=e;return t?r.getPermissions({item:t}):r.getPermissions({root:!0})})),s=eQ(),d=(0,a.useCallback)(rM(e,s),[e]),{visible:u=!0}=null!=t?t:{};return t&&o&&u&&"slot"!==t.type?(0,i.jsx)("div",{className:rP("field"),children:(0,i.jsx)(tH,{field:t,name:e,id:o,readOnly:!l.edit||r,value:n,onChange:d})},o):null}),rL=(0,a.memo)(({wrapFields:e=!0})=>{let t=eJ(e=>e.overrides),r=eJ(e=>{var t,r;let n=e.selectedItem?null==(t=e.componentState[e.selectedItem.props.id])?void 0:t.loadingCount:null==(r=e.componentState.root)?void 0:r.loadingCount;return(null!=n?n:0)>0}),n=eJ((0,y.N)(e=>e.state.ui.itemSelector)),o=eJ(e=>{var t;return null==(t=e.selectedItem)?void 0:t.props.id});eU(eQ(),o);let l=eJ(e=>e.fields.loading),s=eJ((0,y.N)(e=>e.fields.id===o?Object.keys(e.fields.fields):[])),d=l||r,u=(0,a.useMemo)(()=>t.fields||rX,[t]);return(0,i.jsxs)("form",{className:rP({wrapFields:e}),onSubmit:e=>{e.preventDefault()},children:[(0,i.jsx)(u,{isLoading:d,itemSelector:n,children:s.map(e=>(0,i.jsx)(rD,{fieldName:e},e))}),d&&(0,i.jsx)("div",{className:rP("loadingOverlay"),children:(0,i.jsx)("div",{className:rP("loadingOverlayInner"),children:(0,i.jsx)(ep,{size:16})})})]})});(0,n.oX)(),(0,n.oX)(),(0,n.oX)(),(0,n.oX)();var rT=k("ComponentList",{ComponentList:"_ComponentList_1rrlt_1","ComponentList--isExpanded":"_ComponentList--isExpanded_1rrlt_5","ComponentList-content":"_ComponentList-content_1rrlt_9","ComponentList-title":"_ComponentList-title_1rrlt_17","ComponentList-titleIcon":"_ComponentList-titleIcon_1rrlt_53"}),rA=({name:e,label:t})=>{let r=eJ(e=>e.overrides),n=eJ(t=>t.permissions.getPermissions({type:e}).insert);return(0,i.jsx)(rw.Item,{label:t,name:e,isDragDisabled:!n,children:r.componentItem})},rO=({children:e,title:t,id:r})=>{let a=eJ(e=>e.config),o=eJ(e=>e.setUi),l=eJ(e=>
1e.state.ui.componentList),{expanded:s=!0}=l[r]||{};return(0,i.jsxs)("div",{className:rT({isExpanded:s}),children:[t&&(0,i.jsxs)("button",{type:"button",className:rT("title"),onClick:()=>o({componentList:(0,n.EZ)((0,n.ih)({},l),{[r]:(0,n.EZ)((0,n.ih)({},l[r]),{expanded:!s})})}),title:s?`Collapse${t?` ${t}`:""}`:`Expand${t?` ${t}`:""}`,children:[(0,i.jsx)("div",{children:t}),(0,i.jsx)("div",{className:rT("titleIcon"),children:s?(0,i.jsx)(L,{size:12}):(0,i.jsx)(M,{size:12})})]}),(0,i.jsx)("div",{className:rT("content"),children:(0,i.jsx)(rw,{children:e||Object.keys(a.components).map(e=>{var t;return(0,i.jsx)(rA,{label:null!=(t=a.components[e].label)?t:e,name:e},e)})})})]})};rO.Item=rA;var rB=()=>{let[e,t]=(0,a.useState)(),r=eJ(e=>e.config),n=eJ(e=>e.state.ui.componentList);return(0,a.useEffect)(()=>{var e,a,o;if(Object.keys(n).length>0){let l;let s=[];l=Object.entries(n).map(([e,t])=>!1!==t.visible&&t.components?(0,i.jsx)(rO,{id:e,title:t.title||e,children:t.components.map((e,t)=>{var n;s.push(e);let a=r.components[e]||{};return(0,i.jsx)(rO.Item,{label:null!=(n=a.label)?n:e,name:e,index:t},e)})},e):null);let d=Object.keys(r.components).filter(e=>-1===s.indexOf(e));!(d.length>0)||(null==(e=n.other)?void 0:e.components)||(null==(a=n.other)?void 0:a.visible)===!1||l.push((0,i.jsx)(rO,{id:"other",title:(null==(o=n.other)?void 0:o.title)||"Other",children:d.map((e,t)=>{var n;let a=r.components[e]||{};return(0,i.jsx)(rO.Item,{name:e,label:null!=(n=a.label)?n:e,index:t},e)})},"other")),t(l)}},[r.categories,r.components,n]),e},rF=()=>{let e=eJ(e=>e.overrides),t=rB(),r=(0,a.useMemo)(()=>e.components||"div",[e]);return(0,i.jsx)(r,{children:t||(0,i.jsx)(rO,{id:"all"})})};(0,n.oX)(),(0,n.oX)();var rR='style, link[rel="stylesheet"]',r$=e=>{let t=[];return e.querySelectorAll(rR).forEach(e=>{t.push(e)}),t},rH=e=>Array.from(document.styleSheets).find(t=>t.ownerNode.href===e.href),rV=e=>{if(e)try{return[...e.cssRules].map(e=>e.cssText).join("")}catch(t){console.warn("Access to stylesheet %s is denied. Ignoring…",e.href)}return""},rq=(e,t)=>
1{let r=e.attributes;(null==r?void 0:r.length)>0&&Array.from(r).forEach(e=>{t.setAttribute(e.name,e.value)})},rU=e=>setTimeout(e,0),rW=({children:e,debug:t=!1,onStylesLoaded:r=()=>null})=>{let{document:o,window:l}=rY();return(0,a.useEffect)(()=>{if(!l||!o)return()=>{};let e=[],i={},a=t=>e.findIndex(e=>e.original===t),s=(e,r=!1)=>(0,n.Cr)(void 0,null,function*(){let n;if("LINK"===e.nodeName&&r){(n=document.createElement("style")).type="text/css";let r=rH(e);r||(yield new Promise(t=>{let r=()=>{t(),e.removeEventListener("load",r)};e.addEventListener("load",r)}),r=rH(e));let i=rV(r);if(!i){t&&console.warn("Tried to load styles for link element, but couldn't find them. Skipping...");return}n.innerHTML=i,n.setAttribute("data-href",e.getAttribute("href"))}else n=e.cloneNode(!0);return n}),d=r=>(0,n.Cr)(void 0,null,function*(){let n=a(r);if(n>-1){t&&console.log("Tried to add an element that was already mirrored. Updating instead..."),e[n].mirror.innerText=r.innerText;return}let l=yield s(r);if(!l)return;let d=b(l.outerHTML);if(i[d]){t&&console.log("iframe already contains element that is being mirrored. Skipping...");return}i[d]=!0,o.head.append(l),e.push({original:r,mirror:l}),t&&console.log(`Added style node ${r.outerHTML}`)}),u=r=>{var n,o;let l=a(r);if(-1===l){t&&console.log("Tried to remove an element that did not exist. Skipping...");return}let s=b(r.outerHTML);null==(o=null==(n=e[l])?void 0:n.mirror)||o.remove(),delete i[s],t&&console.log(`Removed style node ${r.outerHTML}`)},c=new MutationObserver(e=>{e.forEach(e=>{"childList"===e.type&&(e.addedNodes.forEach(e=>{if(e.nodeType===Node.TEXT_NODE||e.nodeType===Node.ELEMENT_NODE){let t=e.nodeType===Node.TEXT_NODE?e.parentElement:e;t&&t.matches(rR)&&rU(()=>d(t))}}),e.removedNodes.forEach(e=>{if(e.nodeType===Node.TEXT_NODE||e.nodeType===Node.ELEMENT_NODE){let t=e.nodeType===Node.TEXT_NODE?e.parentElement:e;t&&t.matches(rR)&&rU(()=>u(t))}}))})}),p=l.parent.document,h=r$(p),m=[],v=0;return rq(p.getElementsByTagName("html")[0],o.documentElement),rq(p.getElementsByTagName("body")[0],o.body),Promise.all(h.map((t,r)=>(0,n.Cr)(void 0,null,function*(){if("LINK"===t.nodeName){let e=t.href;if(m.indexOf(e)>-1)return;m.push(e)}let r=yield s(t);if(r)return e.push({original:t,mirror:r}),r}))).then(t=>{let n=t.filter(e=>void 0!==e);n.forEach(t=>{t.onload=()=>{(v+=1)>=e.length&&r()},t.onerror=()=>{console.warn("AutoFrame couldn't load a stylesheet"),(v+=1)>=e.length&&r()}}),o.head.innerHTML="",o.head.append(...n),c.observe(p.head,{childList:!0,subtree:!0}),n.forEach(e=>{i[b(e.outerHTML)]=!0})}),()=>{c.disconnect()}},[]),(0,i.jsx)(i.Fragment,{children:e})},rK=(0,a.createContext)({}),rY=()=>(0,a.useContext)(rK);function rG(e){var{children:t,className:r,debug:o,id:l,onReady:s=()=>{},onNotReady:d=()=>{},frameRef:u}=e,c=(0,n.S0)(e,["children","className","debug","id","onReady","onNotReady","frameRef"]);let[p,h]=(0,a.useState)(!1),[m,v]=(0,a.useState)({}),[y,g]=(0,a.useState)(),[f,b]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{var e;if(u.current){let t=u.current.contentDocument,r=u.current.contentWindow;v({document:t||void 0,window:r||void 0}),g(null==(e=u.current.contentDocument)?void 0:e.getElementById("frame-root")),t&&r&&f?s():d()}},[u,p,f]),(0,i.jsx)("iframe",(0,n.EZ)((0,n.ih)({},c),{className:r,id:l,srcDoc:'<!DOCTYPE html><html><head></head><body><div id="frame-root" data-puck-entry></div></body></html>',ref:u,onLoad:()=>{h(!0)},children:(0,i.jsx)(rK.Provider,{value:m,children:p&&y&&(0,i.jsx)(rW,{debug:o,onStylesLoaded:()=>b(!0),children:(0,x.createPortal)(t,y)})})}))}rG.displayName="AutoFrame",(0,n.oX)();var rJ=k("PuckPreview",{PuckPreview:"_PuckPreview_z2rgu_1","PuckPreview-frame":"_PuckPreview-frame_z2rgu_6"}),rQ=e=>{let t=eJ(e=>e.status);(0,a.useEffect)(()=>{if(e.current&&"READY"===t){var r;let t=e.current,i=e=>{let r=new rp("pointermove",(0,n.EZ)((0,n.ih)({},e),{bubbles:!0,cancelable:!1,clientX:e.clientX,clientY:e.clientY,originalTarget:e.target}));t.dispatchEvent(r)},a=()=>{var e;null==(e=t.contentDocument)||e.removeEventListener("pointermove",i)};return a(),null==(r=t.contentDocument)||r.addEventListener("pointermove",i,{capture:!0}),()=>{a()}}},[t])},r0=({id:e="puck-preview"})=>{let t=eJ(e=>e.dispatch),r=eJ(e=>e.state.data.root),o=eJ(e=>e.config),l=eJ(e=>e.setStatus),s=eJ(e=>e.iframe),d=eJ(e=>e.overrides),u=eJ(e=>e.metadata),c=eJ(e=>"edit"===e.state.ui.previewMode?null:e.state.data),p=(0,a.useCallback)(e=>{var t,r;
1let a=(0,n.Rr)(o,{type:"root",props:e},rt);return(null==(t=o.root)?void 0:t.render)?null==(r=o.root)?void 0:r.render((0,n.ih)({id:"puck-root"},a)):(0,i.jsx)(i.Fragment,{children:a.children})},[o]),h=(0,a.useMemo)(()=>d.iframe,[d]),m=r.props||r,v=(0,a.useRef)(null);rQ(v);let x=c?(0,i.jsx)(t7,{data:c,config:o}):(0,i.jsx)(p,(0,n.EZ)((0,n.ih)({},m),{puck:{renderDropZone:rl,isEditing:!0,dragRef:null,metadata:u},editMode:!0,children:(0,i.jsx)(rl,{zone:n.l9})}));return(0,a.useEffect)(()=>{s.enabled||l("READY")},[s.enabled]),(0,i.jsx)("div",{className:rJ(),id:e,"data-puck-preview":!0,onClick:()=>{t({type:"setUi",ui:{itemSelector:null}})},children:s.enabled?(0,i.jsx)(rG,{id:"preview-frame",className:rJ("frame"),"data-rfd-iframe":!0,onReady:()=>{l("READY")},onNotReady:()=>{l("MOUNTED")},frameRef:v,children:(0,i.jsx)(rK.Consumer,{children:({document:e})=>h?(0,i.jsx)(h,{document:e,children:x}):x})}):(0,i.jsx)("div",{id:"preview-frame",className:rJ("frame"),ref:v,"data-puck-entry":!0,children:x})})};(0,n.oX)(),(0,n.oX)(),(0,n.oX)();var r1={LayerTree:"_LayerTree_7rx04_1","LayerTree-zoneTitle":"_LayerTree-zoneTitle_7rx04_11","LayerTree-helper":"_LayerTree-helper_7rx04_17",Layer:"_Layer_7rx04_1","Layer-inner":"_Layer-inner_7rx04_29","Layer--containsZone":"_Layer--containsZone_7rx04_35","Layer-clickable":"_Layer-clickable_7rx04_39","Layer--isSelected":"_Layer--isSelected_7rx04_61","Layer-chevron":"_Layer-chevron_7rx04_77","Layer--childIsSelected":"_Layer--childIsSelected_7rx04_78","Layer-zones":"_Layer-zones_7rx04_82","Layer-title":"_Layer-title_7rx04_96","Layer-name":"_Layer-name_7rx04_105","Layer-icon":"_Layer-icon_7rx04_111","Layer-zoneIcon":"_Layer-zoneIcon_7rx04_116"};(0,n.oX)();var r2=e=>{let t=(0,n.ih)({},e.style);e.style.scrollMargin="256px",e&&(null==e||e.scrollIntoView({behavior:"smooth"}),e.style.scrollMargin=t.scrollMargin||"")};(0,n.oX)();var r4=(e,t)=>{let r;let n=function(){clearTimeout(r),r=setTimeout(function(){t(),null==e||e.removeEventListener("scroll",n)},50)};null==e||e.addEventListener("scroll",n),setTimeout(()=>{r||t()},50)},r8=k("LayerTree",r1),r5=k("Layer",r1),r3=({index:e,itemId:t,zoneCompound:r})=>{var o;let l=eJ(e=>e.config),s=eJ(e=>e.state.ui.itemSelector),d=eJ(e=>e.dispatch),u=(0,a.useCallback)(e=>{d({type:"setUi",ui:{itemSelector:e}})},[d]),c=eJ(e=>{var t;return null==(t=e.selectedItem)?void 0:t.props.id})===t||s&&s.zone===n.l9&&!r,p=eJ(e=>e.state.indexes.nodes[t]),h=eJ((0,y.N)(e=>Object.keys(e.state.indexes.zones).filter(e=>e.split(":")[0]===t))),m=h.length>0,v=(0,a.useContext)(tK),x=tJ(tK,e=>e.hoveringComponent===t),g=eJ(e=>{var r,n;let i=e.state.indexes.nodes[null==(r=e.selectedItem)?void 0:r.props.id];return null!=(n=null==i?void 0:i.path.some(e=>{let[r]=e.split(":");return r===t}))&&n}),f=l.components[p.data.type],b=null!=(o=null==f?void 0:f.label)?o:p.data.type.toString();return(0,i.jsxs)("li",{className:r5({isSelected:c,isHovering:x,containsZone:m,childIsSelected:g}),children:[(0,i.jsx)("div",{className:r5("inner"),children:(0,i.jsxs)("button",{type:"button",className:r5("clickable"),onClick:()=>{if(c){u(null);return}
1let n=rd(),i=null==n?void 0:n.querySelector(`[data-puck-component="${t}"]`);if(!i){u({index:e,zone:r});return}r2(i),r4(n,()=>{u({index:e,zone:r})})},onMouseEnter:e=>{e.stopPropagation(),v.setState({hoveringComponent:t})},onMouseLeave:e=>{e.stopPropagation(),v.setState({hoveringComponent:null})},children:[m&&(0,i.jsx)("div",{className:r5("chevron"),title:c?"Collapse":"Expand",children:(0,i.jsx)(M,{size:"12"})}),(0,i.jsxs)("div",{className:r5("title"),children:[(0,i.jsx)("div",{className:r5("icon"),children:"Text"===p.data.type||"Heading"===p.data.type?(0,i.jsx)(ea,{size:"16"}):(0,i.jsx)(H,{size:"16"})}),(0,i.jsx)("div",{className:r5("name"),children:b})]})]})}),m&&h.map(e=>(0,i.jsx)("div",{className:r5("zones"),children:(0,i.jsx)(r6,{zoneCompound:e})},e))]})},r6=({label:e,zoneCompound:t})=>{let r=eJ(r=>{var i,a,o,l;if(e)return e;if(t===n.l9)return;let[s,d]=t.split(":"),u=null==(i=r.state.indexes.nodes[s])?void 0:i.data.type,c=u&&u!==n.l4?r.config.components[u]:r.config.root;return null!=(l=null==(o=null==(a=null==c?void 0:c.fields)?void 0:a[d])?void 0:o.label)?l:d}),a=eJ((0,y.N)(e=>{var r,n;return t&&null!=(n=null==(r=e.state.indexes.zones[t])?void 0:r.contentIds)?n:[]}));return(0,i.jsxs)(i.Fragment,{children:[r&&(0,i.jsxs)("div",{className:r8("zoneTitle"),children:[(0,i.jsx)("div",{className:r8("zoneIcon"),children:(0,i.jsx)($,{size:"16"})}),r]}),(0,i.jsxs)("ul",{className:r8(),children:[0===a.length&&(0,i.jsx)("div",{className:r8("helper"),children:"No items"}),a.map((e,r)=>(0,i.jsx)(r3,{index:r,itemId:e,zoneCompound:t},e))]})]})};(0,n.oX)();var r9=(e,t)=>Object.keys(e.indexes.zones).filter(e=>e.split(":")[0]===t),r7=()=>{let e=eJ(e=>e.overrides.outline),t=eJ((0,y.N)(e=>r9(e.state,"root"))),r=(0,a.useMemo)(()=>e||"div",[e]);return(0,i.jsx)(r,{children:t.map(e=>(0,i.jsx)(r6,{label:1===t.length?"":e.split(":")[1],zoneCompound:e},e))})};(0,n.oX)(),(0,n.oX)(),(0,n.oX)();var ne=function(e){var t=e.top,r=e.right,n=e.bottom,i=e.left;return{top:t,right:r,bottom:n,left:i,width:r-i,height:n-t,x:i,y:t,center:{x:(r+i)/2,y:(n+t)/2}}},nt=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},nr={top:0,right:0,bottom:0,left:0},nn=function(e){var t=e.borderBox,r=e.margin,n=void 0===r?nr:r,i=e.border,a=void 0===i?nr:i,o=e.padding,l=void 0===o?nr:o,s=ne({top:t.top-n.top,left:t.left-n.left,bottom:t.bottom+n.bottom,right:t.right+n.right}),d=ne(nt(t,a)),u=ne(nt(d,l));return{marginBox:s,borderBox:ne(t),paddingBox:d,contentBox:u,margin:n,border:a,padding:l}},ni=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var r=Number(t);return isNaN(r)&&function(e,t){if(!e)throw Error("Invariant failed")}(!1),r},na=function(e){var t,r;return t=e.getBoundingClientRect(),nn({borderBox:t,margin:{top:ni((r=window.getComputedStyle(e)).marginTop),right:ni(r.marginRight),bottom:ni(r.marginBottom),left:ni(r.marginLeft)},padding:{top:ni(r.paddingTop),right:ni(r.paddingRight),bottom:ni(r.paddingBottom),left:ni(r.paddingLeft)},border:{top:ni(r.borderTopWidth),right:ni(r.borderRightWidth),bottom:ni(r.borderBottomWidth),left:ni(r.borderLeftWidth)}})};(0,n.oX)(),(0,n.oX)();var no={ViewportControls:"_ViewportControls_gejzr_1","ViewportControls-divider":"_ViewportControls-divider_gejzr_15","ViewportControls-zoomSelect":"_ViewportControls-zoomSelect_gejzr_21","ViewportButton--isActive":"_ViewportButton--isActive_gejzr_38","ViewportButton-inner":"_ViewportButton-inner_gejzr_38"},nl={Smartphone:(0,i.jsx)(er,{size:16}),Tablet:(0,i.jsx)(en,{size:16}),Monitor:(0,i.jsx)(K,{size:16})},ns=k("ViewportControls",no),nd=k("ViewportButton",no),nu=({children:e,height:t="auto",title:r,width:n,onClick:o})=>{let l=eJ(e=>e.state.ui.viewports),[s,d]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{d(n===l.current.width)},[n,l.current.width]),(0,i.jsx)("span",{className:nd({isActive:s}),children:(0,i.jsx)(em,{type:"button",title:r,disabled:s,onClick:e=>{e.stopPropagation(),o({width:n,height:t})},children:(0,i.jsx)("span",{className:nd("inner"),children:e})})})},nc=[{label:"25%",value:.25},{label:"50%",value:.5},{label:"75%",value:.75},{label:"100%",value:1},{label:"125%",value:1.25},{label:"150%",value:1.5},{label:"200%",value:2}],np=({autoZoom:e,zoom:t,onViewportChange:r,onZoom:n})=>{var o,l;let s=eJ(e=>e.viewports),d=nc.find(t=>t.value===e),u=(0,a.useMemo)(()=>[...nc,...d?[]:[{value:e,label:`${(100*e).toFixed(0)}% (Auto)`}]].filter(t=>t.value<=e).sort((e,t)=>
1e.value>t.value?1:-1),[e]);return(0,i.jsxs)("div",{className:ns(),children:[s.map((e,t)=>(0,i.jsx)(nu,{height:e.height,width:e.width,title:e.label?`Switch to ${e.label} viewport`:"Switch viewport",onClick:r,children:"string"==typeof e.icon?nl[e.icon]||e.icon:e.icon||nl.Smartphone},t)),(0,i.jsx)("div",{className:ns("divider")}),(0,i.jsx)(em,{type:"button",title:"Zoom viewport out",disabled:t<=(null==(o=u[0])?void 0:o.value),onClick:e=>{e.stopPropagation(),n(u[Math.max(u.findIndex(e=>e.value===t)-1,0)].value)},children:(0,i.jsx)(es,{size:16})}),(0,i.jsx)(em,{type:"button",title:"Zoom viewport in",disabled:t>=(null==(l=u[u.length-1])?void 0:l.value),onClick:e=>{e.stopPropagation(),n(u[Math.min(u.findIndex(e=>e.value===t)+1,u.length-1)].value)},children:(0,i.jsx)(el,{size:16})}),(0,i.jsx)("div",{className:ns("divider")}),(0,i.jsx)("select",{className:ns("zoomSelect"),value:t.toString(),onChange:e=>{n(parseFloat(e.currentTarget.value))},children:u.map(e=>(0,i.jsx)("option",{value:e.value,label:e.label},e.label))})]})};(0,n.oX)(),(0,n.oX)();var nh=(e,t,r)=>{let{width:n,height:i}=na(t).contentBox,a="auto"===e.height?i:e.height,o=0,l=1;if(e.width>n||a>i){let t=Math.min(n/e.width,1),s=Math.min(i/a,1);r=t,t<s?o=a/r:(o=a,r=s),l=r}else l=1,r=1,o=a;return{autoZoom:l,rootHeight:o,zoom:r}},nm=k("PuckCanvas",{PuckCanvas:"_PuckCanvas_18jay_1","PuckCanvas-controls":"_PuckCanvas-controls_18jay_16","PuckCanvas-inner":"_PuckCanvas-inner_18jay_21","PuckCanvas-root":"_PuckCanvas-root_18jay_30","PuckCanvas--ready":"_PuckCanvas--ready_18jay_55","PuckCanvas-loader":"_PuckCanvas-loader_18jay_60","PuckCanvas--showLoader":"_PuckCanvas--showLoader_18jay_70"}),nv=()=>{let{dispatch:e,overrides:t,setUi:r,zoomConfig:o,setZoomConfig:l,status:s,iframe:d}=eJ((0,y.N)(e=>({dispatch:e.dispatch,overrides:e.overrides,setUi:e.setUi,zoomConfig:e.zoomConfig,setZoomConfig:e.setZoomConfig,status:e.status,iframe:e.iframe}))),{leftSideBarVisible:u,rightSideBarVisible:c,viewports:p}=eJ((0,y.N)(e=>({leftSideBarVisible:e.state.ui.leftSideBarVisible,rightSideBarVisible:e.state.ui.rightSideBarVisible,viewports:e.state.ui.viewports}))),h=(0,a.useRef)(null),[m,v]=(0,a.useState)(!1),x=(0,a.useMemo)(()=>({children:e})=>(0,i.jsx)(i.Fragment,{children:e}),[]),g=(0,a.useMemo)(()=>t.preview||x,[t]),f=(0,a.useCallback)(()=>{if(h.current){let e=na(h.current);return{width:e.contentBox.width,height:e.contentBox.height}}return{width:0,height:0}},[h]),b=(0,a.useCallback)((e=p)=>{h.current&&l(nh(null==e?void 0:e.current,h.current,o.zoom))},[h,o,p]);(0,a.useEffect)(()=>{v(!1),b(p)},[h,u,c]),(0,a.useEffect)(()=>{let{height:e}=f();"auto"===p.current.height&&l((0,n.EZ)((0,n.ih)({},o),{rootHeight:e/o.zoom}))},[o.zoom]),(0,a.useEffect)(()=>{v(!0),b(p)},[p.current.width]),(0,a.useEffect)(()=>{let e=()=>{v(!1),b()};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]);let[_,j]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{setTimeout(()=>{j(!0)},500)},[]),(0,i.jsxs)("div",{className:nm({ready:"READY"===s||!d.enabled||!d.waitForStyles,showLoader:_}),onClick:()=>e({type:"setUi",ui:{itemSelector:null},recordHistory:!0}),children:[p.controlsVisible&&d.enabled&&(0,i.jsx)("div",{className:nm("controls"),children:(0,i.jsx)(np,{auto
1Zoom:o.autoZoom,zoom:o.zoom,onViewportChange:e=>{v(!0);let t=(0,n.EZ)((0,n.ih)({},e),{height:e.height||"auto",zoom:o.zoom});r({viewports:(0,n.EZ)((0,n.ih)({},p),{current:t}),itemSelector:null}),b((0,n.EZ)((0,n.ih)({},p),{current:t}))},onZoom:e=>{v(!0),l((0,n.EZ)((0,n.ih)({},o),{zoom:e}))}})}),(0,i.jsxs)("div",{className:nm("inner"),ref:h,children:[(0,i.jsx)("div",{className:nm("root"),style:{width:d.enabled?p.current.width:"100%",height:o.rootHeight,transform:d.enabled?`scale(${o.zoom})`:void 0,transition:m?"width 150ms ease-out, height 150ms ease-out, transform 150ms ease-out":"",overflow:d.enabled?void 0:"auto"},suppressHydrationWarning:!0,id:"puck-canvas-root",onTransitionEnd:()=>{window.dispatchEvent(new CustomEvent("viewportchange",{bubbles:!0,cancelable:!1}))},children:(0,i.jsx)(g,{children:(0,i.jsx)(r0,{})})}),(0,i.jsx)("div",{className:nm("loader"),children:(0,i.jsx)(ep,{size:24})})]})]})};(0,n.oX)(),(0,n.oX)();var nx=({overrides:e,plugins:t})=>{let r=(0,n.ih)({},e);return null==t||t.forEach(e=>{Object.keys(e.overrides).forEach(t=>{if("fieldTypes"===t){let t=e.overrides.fieldTypes;Object.keys(t).forEach(e=>{r.fieldTypes=r.fieldTypes||{};let i=r.fieldTypes[e];r.fieldTypes[e]=r=>t[e]((0,n.EZ)((0,n.ih)({},r),{children:i?i(r):r.children}))});return}let i=r[t];r[t]=r=>e.overrides[t]((0,n.EZ)((0,n.ih)({},r),{children:i?i(r):r.children}))})}),r},ny=({overrides:e,plugins:t})=>(0,a.useMemo)(()=>nx({overrides:e,plugins:t}),[t,e]);(0,n.oX)();var ng=({children:e})=>(0,i.jsx)(i.Fragment,{children:e});(0,n.oX)();var nf=(e,t)=>{let[r,n]=(0,a.useState)();return(0,a.useEffect)(()=>{n(document.createElement("style"))},[]),(0,a.useEffect)(()=>{var n;if(r&&"undefined"!=typeof window){if(r.innerHTML=e,t){let e=rd();null==(n=null==e?void 0:e.head)||n.appendChild(r)}document.head.appendChild(r)}},[t,r]),r},nb=e=>nf("",e);(0,n.oX)();var n_=()=>{let e=eQ(),t=(0,a.useCallback)(()=>{(0,e.getState().dispatch)({type:"setUi",ui:e=>({previewMode:"edit"===e.previewMode?"interactive":"edit"})})},[e]);eO({meta:!0,i:!0},t),eO({ctrl:!0,i:!0},t)};(0,n.oX)();var nj=e=>{let t={back:e.history.back,forward:e.history.forward,setHistories:e.history.setHistories,setHistoryIndex:e.history.setHistoryIndex,hasPast:e.history.hasPast(),hasFuture:e.history.hasFuture(),histories:e.history.histories,index:e.history.index},r={appState:eX(e.state),config:e.config,dispatch:e.dispatch,getPermissions:e.permissions.getPermissions,refreshPermissions:e.permissions.refreshPermissions,history:t,selectedItem:e.selectedItem||null,getItemBySelector:t=>eI(t,e.state),getItemById:t=>e.state.indexes.nodes[t].data,getSelectorForId:t=>{let r=e.state.indexes.nodes[t];if(!r)return;let n=`${r.parentId}:${r.zone}`,i=e.state.indexes.zones[n].contentIds.indexOf(t);return{zone:n,index:i}}};return(0,n.EZ)((0,n.ih)({},r),{get:()=>r})},nE=(0,a.createContext)(null),nk=e=>({state:e.state,config:e.config,dispatch:e.dispatch,permissions:e.permissions,history:e.history,selectedItem:e.selectedItem}),nI=e=>{let[t]=(0,a.useState)(()=>(0,m.M)(()=>nj(nk(e.getState()))));return(0,a.useEffect)(()=>e.subscribe(e=>nk(e),e=>{t.setState(nj(e))}),[]),t};(0,n.oX)(),(0,n.oX)(),(0,n.oX)();var nS=k("MenuBar",{MenuBar:"_MenuBar_8pf8c_1","MenuBar--menuOpen":"_MenuBar--menuOpen_8pf8c_14","MenuBar-inner":"_MenuBar-inner_8pf8c_29","MenuBar-history":"_MenuBar-history_8pf8c_45"});function nw({menuOpen:e=!1,renderHeaderActions:t,setMenuOpen:r}){let n=eJ(e=>e.history.back),a=eJ(e=>e.history.forward),o=eJ(e=>e.history.hasFuture()),l=eJ(e=>e.history.hasPast());return(0,i.jsx)("div",{className:nS({menuOpen:e}),onClick:e=>{var t;let n=e.target;!window.matchMedia("(min-width: 638px)").matches&&"A"===n.tagName&&(null==(t=n.getAttribute("href"))?void 0:t.startsWith("#"))&&r(!1)},children:(0,i.jsxs)("div",{className:nS("inner"),children:[(0,i.jsxs)("div",{className:nS("history"),children:[(0,i.jsx)(em,{type:"button",title:"undo",disabled:!l,onClick:n,children:(0,i.jsx)(eo,{size:21})}),(0,i.jsx)(em,{type:"button",title:"redo",disabled:!o,onClick:a,children:(0,i.jsx)(Q,{size:21})})]}),(0,i.jsx)(i.Fragment,{children:t&&t()})]})})}(0,n.oX)();var nC=k("PuckHeader",{PuckHeader:"_PuckHeader_15xnq_1","PuckHeader-inner":"_PuckHeader-inner_15xnq_10","PuckHeader-toggle":"_PuckHeader-toggle_15xnq_20","PuckHeader--rightSideBarVisible":"_PuckHeader--rightSideBarVisible_15xnq_27","PuckHeader-rightSideBarToggle":"_PuckHeader-rightSideBarToggle_15xnq_27","PuckHeader--leftSideBarVisible":"_PuckHeader--leftSideBarVisible_15xnq_28","PuckHeader-leftSideBarToggle":"_PuckHeader-leftSideBarToggle_15xnq_28","PuckHeader-title":"_PuckHeader-title_15xnq_32","PuckHeader-path":"_PuckHeader-path_15xnq_36","PuckHeader-tools":"_PuckHeader-tools_15xnq_43","PuckHeader-menuButton":"_PuckHeader-menuButton_15xnq_49","PuckHeader--menuOpen":"_PuckHeader--menuOpen_15xnq_54"}),nz=(0,a.memo)(()=>{let{onPublish:e,renderHeader:t,renderHeaderActions:r,headerTitle:o,headerPath:l,iframe:s}=nD(),d=eJ(e=>e.dispatch),u=eQ(),c=(0,a.useMemo)(()=>t?(console.warn("`renderHeader` is deprecated. Please use `overrides.header` and the `usePuck` hook instead"),e=>{var{actions:r}=e,a=(0,n.S0)(e,["actions"]);let o=eJ(e=>e.state);return(0,i.jsx)(t,(0,n.EZ)((0,n.ih)({},a),{dispatch:d,state:o,children:r}))}):ng,[t]),p=(0,a.useMemo)(()=>r?(console.warn("`renderHeaderActions` is deprecated. Please use `overrides.headerActions` and the `usePuck` hook instead."),e=>{let t=eJ(e=>e.state);return(0,i.jsx)(r,(0,n.EZ)((0,n.ih)({},e),{dispatch:d,state:t}))}):ng,[t]),h=eJ(e=>e.overrides.header||c),m=eJ(e=>e.overrides.headerActions||p),[v,x]=(0,a.useState)(!1),y=eJ(e=>{var t,r;return null!=(r=(null==(t=e.state.indexes.nodes.root)?void 0:t.data).props.title)?r:""}),g=eJ(e=>e.state.ui.leftSideBarVisible),f=eJ(e=>e.state.ui.rightSideBarVisible),b=(0,a.useCallback)(e=>
1{let t=window.matchMedia("(min-width: 638px)").matches,r="left"===e?g:f;d({type:"setUi",ui:(0,n.ih)({[`${e}SideBarVisible`]:!r},t?{}:{["left"===e?"rightSideBarVisible":"leftSideBarVisible"]:!1})})},[d,g,f]);return(0,i.jsx)(h,{actions:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(m,{children:(0,i.jsx)(tE,{onClick:()=>{let t=u.getState().state.data;e&&e(t)},icon:(0,i.jsx)(F,{size:"14px"}),children:"Publish"})})}),children:(0,i.jsx)("header",{className:nC({leftSideBarVisible:g,rightSideBarVisible:f}),children:(0,i.jsxs)("div",{className:nC("inner"),children:[(0,i.jsxs)("div",{className:nC("toggle"),children:[(0,i.jsx)("div",{className:nC("leftSideBarToggle"),children:(0,i.jsx)(em,{type:"button",onClick:()=>{b("left")},title:"Toggle left sidebar",children:(0,i.jsx)(Y,{focusable:"false"})})}),(0,i.jsx)("div",{className:nC("rightSideBarToggle"),children:(0,i.jsx)(em,{type:"button",onClick:()=>{b("right")},title:"Toggle right sidebar",children:(0,i.jsx)(G,{focusable:"false"})})})]}),(0,i.jsx)("div",{className:nC("title"),children:(0,i.jsxs)(tf,{rank:"2",size:"xs",children:[o||y||"Page",l&&(0,i.jsxs)(i.Fragment,{children:[" ",(0,i.jsx)("code",{className:nC("path"),children:l})]})]})}),(0,i.jsxs)("div",{className:nC("tools"),children:[(0,i.jsx)("div",{className:nC("menuButton"),children:(0,i.jsx)(em,{type:"button",onClick:()=>x(!v),title:"Toggle menu bar",children:v?(0,i.jsx)(L,{focusable:"false"}):(0,i.jsx)(M,{focusable:"false"})})}),(0,i.jsx)(nw,{dispatch:d,onPublish:e,menuOpen:v,renderHeaderActions:()=>(0,i.jsx)(m,{children:(0,i.jsx)(tE,{onClick:()=>{let t=u.getState().state.data;e&&e(t)},icon:(0,i.jsx)(F,{size:"14px"}),children:"Publish"})}),setMenuOpen:x})]})]})})})}),nZ=k("Puck",rN),nN=k("PuckLayout",rN),nP=()=>{let e=eJ(e=>{var t,r;return e.selectedItem?null!=(r=null==(t=e.config.components[e.selectedItem.type])?void 0:t.label)?r:e.selectedItem.type.toString():"Page"});return(0,i.jsx)(rZ,{noPadding:!0,noBorderTop:!0,showBreadcrumbs:!0,title:e,children:(0,i.jsx)(rL,{})})},nX=(0,a.createContext)({});function nM(e){return(0,i.jsx)(nX.Provider,{value:e,children:e.children})}var nD=()=>(0,a.useContext)(nX);function nL({children:e}){let{config:t,data:r,ui:o,onChange:l,permissions:s={},plugins:d,overrides:u,viewports:c=n.f$,iframe:p,initialHistory:h,metadata:m,onAction:v}=nD(),x=(0,a.useMemo)(()=>(0,n.ih)({enabled:!0,waitForStyles:!0},p),[p]),[y]=(0,a.useState)(()=>{var e,i,a,l,s,d,u,p,h;let m=(0,n.ih)((0,n.ih)({},n._8.ui),o),v={};if("undefined"!=typeof window){window.matchMedia("(max-width: 638px)").matches&&(v=(0,n.EZ)((0,n.ih)({},v),{leftSideBarVisible:!1,rightSideBarVisible:!1}));let t=window.innerWidth,r=Object.entries(c).map(([e,r])=>({key:e,diff:Math.abs(t-r.width)})).sort((e,t)=>e.diff>t.diff?1:-1)[0].key;x.enabled&&(v=(0,n.EZ)((0,n.ih)({},v),{viewports:(0,n.EZ)((0,n.ih)({},m.viewports),{current:(0,n.EZ)((0,n.ih)({},m.viewports.current),{height:(null==(i=null==(e=null==o?void 0:o.viewports)?void 0:e.current)?void 0:i.height)||(null==(a=c[r])?void 0:a.height)||"auto",width:(null==(s=null==(l=null==o?void 0:o.viewports)?void 0:l.current)?void 0:s.width)||(null==(d=c[r])?void 0:d.width)})})}))}!(Object.keys((null==r?void 0:r.root)||{}).length>0)||(null==(u=null==r?void 0:r.root)?void 0:u.props)||console.error("Warning: Defining props on `root` is deprecated. Please use `root.props`, or republish this page to migrate automatically.");let y=(null==(p=null==r?void 0:r.root)?void 0:p.props)||(null==r?void 0:r.root)||{},g=(0,n.ih)((0,n.ih)({},null==(h=t.root)?void 0:h.defaultProps),y),f=(0,n.EZ)((0,n.ih)({},n._8),{data:(0,n.EZ)((0,n.ih)({},r),{root:(0,n.EZ)((0,n.ih)({},null==r?void 0:r.root),{props:g}),content:r.content||[]}),ui:(0,n.EZ)((0,n.ih)((0,n.ih)({},m),v),{componentList:t.categories?Object.entries(t.categories).reduce((e,[t,r])=>(0,n.EZ)((0,n.ih)({},e),{[t]:{title:r.title,components:r.components,expanded:r.defaultExpanded,visible:r.visible}}),{}):{}})});return(0,n.vV)(f,t)}),{appendData:g=!0}=h||{},[f]=(0,a.useState)([...(null==h?void 0:h.histories)||[],...g?[{state:y}]:[]].map(e=>{let r=(0,n.ih)((0,n.ih)({},y),e.state);return e.state.indexes||(r=(0,n.vV)(r,t)),(0,n.EZ)((0,n.ih)({},e),{state:r})})),b=(null==h?void 0:h.index)||f.length-1,j=f[b].state,E=ny({overrides:u,plugins:d}),k=(0,a.useCallback)(e=>({state:e,config:t,plugins:d||[],overrides:E,viewports:c,iframe:x,onAction:v,metadata:m}),[j,t,d,E,c,x,v,m]),[I]=(0,a.useState)(()=>eY(k(j)));(0,a.useEffect)(()=>{},[I]),(0,a.useEffect)(()=>{let e=I.getState().state;I.setState((0,n.ih)({},k(e)))},[t,d,E,c,x,v,m]),function(e,{histories:t,index:r,initialAppState:i}){(0,a.useEffect)(()=>e.setState({history:(0,n.EZ)((0,n.ih)({},e.getState().history),{histories:t,index:r,initialAppState:i})}),[t,r,i]);let o=()=>{e.getState().history.back()},l=()=>{e.getState().history.forward()};eO({meta:!0,z:!0},o),eO({meta:!0,shift:!0,z:!0},l),eO({meta:!0,y:!0},l),eO({ctrl:!0,z:!0},o),eO({ctrl:!0,shift:!0,z:!0},l),eO({ctrl:!0,y:!0},l)}(I,{histories:f,index:b,initialAppState:j});let S=(0,a.useRef)(null);(0,a.useEffect)(()=>{I.subscribe(e=>e.state.data,e=>{l&&!_(e,S.current)&&(l(e),S.current=e)})},[]),eV(I,s);let w=nI(I);return(0,a.useEffect)(()=>{let{resolveAndCommitData:e}=I.getState();e()},[]),(0,i.jsx)(eG.Provider,{value:I,children:(0,i.jsx)(nE.Provider,{value:w,children:e})})}function nT({children:e}){let{iframe:t,dnd:r,initialHistory:o}=nD(),l=(0,a.useMemo)(()=>(0,n.ih)({enabled:!0,waitForStyles:!0},t),[t]);nb(l.enabled);let s=eJ(e=>e.state.ui.leftSideBarVisible),d=eJ(e=>e.state.ui.rightSideBarVisible),u=eJ(e=>e.dispatch);(0,a.useEffect)(()=>{window.matchMedia("(min-width: 638px)").matches||u({type:"setUi",ui:{leftSideBarVisible:!1,rightSideBarVisible:!1}});let e=()=>{window.matchMedia("(min-width: 638px)").matches||u({type:"setUi",ui:e=>(0,n.ih)((0,n.ih)({},e),e.rightSideBarVisible?{leftSideBarVisible:!1}:{})})};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]);let c=eJ(e=>e.overrides),p=(0,a.useMemo)(()=>c.puck||ng,[c]),[h,m]=(0,a.useState)(!1);(0,a.useEffect)(()=>{m(!0)},[]);let v=eJ(e=>"READY"===e.status);return eA(),(0,a.useEffect)(()=>
1{if(v&&l.enabled){let e=rd();if(e)return eT(e)}},[v,l.enabled]),n_(),(0,i.jsxs)("div",{className:`Puck ${nZ()}`,children:[(0,i.jsx)(rj,{disableAutoScroll:null==r?void 0:r.disableAutoScroll,children:(0,i.jsx)(p,{children:e||(0,i.jsx)("div",{className:nN({leftSideBarVisible:s,mounted:h,rightSideBarVisible:d}),children:(0,i.jsxs)("div",{className:nN("inner"),children:[(0,i.jsx)(nz,{}),(0,i.jsxs)("div",{className:nN("leftSideBar"),children:[(0,i.jsx)(rZ,{title:"Components",noBorderTop:!0,children:(0,i.jsx)(rF,{})}),(0,i.jsx)(rZ,{title:"Outline",children:(0,i.jsx)(r7,{})})]}),(0,i.jsx)(nv,{}),(0,i.jsx)("div",{className:nN("rightSideBar"),children:(0,i.jsx)(nP,{})})]})})})}),(0,i.jsx)("div",{id:"puck-portal-root",className:nZ("portal")})]})}function nA(e){return(0,i.jsx)(nM,(0,n.EZ)((0,n.ih)({},e),{children:(0,i.jsx)(nL,(0,n.EZ)((0,n.ih)({},e),{children:(0,i.jsx)(nT,(0,n.ih)({},e))}))}))}nA.Components=rF,nA.Fields=rL,nA.Outline=r7,nA.Preview=r0;/*! Bundled license information: 2 3classnames/index.js: 4 (*! 5 Copyright (c) 2018 Jed Watson. 6 Licensed under the MIT License (MIT), see 7 http://jedwatson.github.io/classnames 8 *) 9 10lucide-react/dist/esm/shared/src/utils.js: 11 (** 12 * @license lucide-react v0.468.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 *) 17 18lucide-react/dist/esm/defaultAttributes.js: 19 (** 20 * @license lucide-react v0.468.0 - ISC 21 * 22 * This source code is licensed under the ISC license. 23 * See the LICENSE file in the root directory of this source tree. 24 *) 25 26lucide-react/dist/esm/Icon.js: 27 (** 28 * @license lucide-react v0.468.0 - ISC 29 * 30 * This source code is licensed under the ISC license. 31 * See the LICENSE file in the root directory of this source tree. 32 *) 33 34lucide-react/dist/esm/createLucideIcon.js: 35 (** 36 * @license lucide-react v0.468.0 - ISC 37 * 38 * This source code is licensed under the ISC license. 39 * See the LICENSE file in the root directory of this source tree. 40 *) 41 42lucide-react/dist/esm/icons/chevron-down.js: 43 (** 44 * @license lucide-react v0.468.0 - ISC 45 * 46 * This source code is licensed under the ISC license. 47 * See the LICENSE file in the root directory of this source tree. 48 *) 49 50lucide-react/dist/esm/icons/chevron-right.js: 51 (** 52 * @license lucide-react v0.468.0 - ISC 53 * 54 * This source code is licensed under the ISC license. 55 * See the LICENSE file in the root directory of this source tree. 56 *) 57 58lucide-react/dist/esm/icons/chevron-up.js: 59 (** 60 * @license lucide-react v0.468.0 - ISC 61 * 62 * This source code is licensed under the ISC license. 63 * See the LICENSE file in the root directory of this source tree. 64 *) 65 66lucide-react/dist/esm/icons/circle-check-big.js: 67 (** 68 * @license lucide-react v0.468.0 - ISC 69 * 70 * This source code is licensed under the ISC license. 71 * See the LICENSE file in the root directory of this source tree. 72 *) 73 74lucide-react/dist/esm/icons/copy.js: 75 (** 76 * @license lucide-react v0.468.0 - ISC 77 * 78 * This source code is licensed under the ISC license. 79 * See the LICENSE file in the root directory of this source tree. 80 *) 81 82lucide-react/dist/esm/icons/corner-left-up.js: 83 (** 84 * @license lucide-react v0.468.0 - ISC 85 * 86 * This source code is licensed under the ISC license. 87 * See the LICENSE file in the root directory of this source tree. 88 *) 89 90lucide-react/dist/esm/icons/ellipsis-vertical.js: 91 (** 92 * @license lucide-react v0.468.0 - ISC 93 * 94 * This source code is licensed under the ISC license. 95 * See the LICENSE file in the root directory of this source tree. 96 *) 97 98lucide-react/dist/esm/icons/globe.js: 99 (** 100 * @license lucide-react v0.468.0 - ISC 101 * 102 * This source code is licensed under the ISC license. 103 * See the LICENSE file in the root directory of this source tree. 104 *) 105 106lucide-react/dist/esm/icons/hash.js: 107 (** 108 * @license lucide-react v0.468.0 - ISC 109 * 110 * This source code is licensed under the ISC license. 111 * See the LICENSE file in the root directory of this source tree. 112 *) 113 114lucide-react/dist/esm/icons/layers.js: 115 (** 116 * @license lucide-react v0.468.0 - ISC 117 * 118 * This source code is licensed under the ISC license. 119 * See the LICENSE file in the root directory of this source tree. 120 *) 121 122lucide-react/dist/esm/icons/layout-grid.js: 123 (** 124 * @license lucide-react v0.468.0 - ISC 125 * 126 * This source code is licensed under the ISC license. 127 * See the LICENSE file in the root directory of this source tree. 128 *) 129 130lucide-react/dist/esm/icons/link.js: 131 (** 132 * @license lucide-react v0.468.0 - ISC 133 * 134 * This source code is licensed under the ISC license. 135 * See the LICENSE file in the root directory of this source tree. 136 *) 137 138lucide-react/dist/esm/icons/list.js: 139 (** 140 * @license lucide-react v0.468.0 - ISC 141 * 142 * This source code is licensed under the ISC license. 143 * See the LICENSE file in the root directory of this source tree. 144 *) 145 146lucide-react/dist/esm/icons/lock-open.js: 147 (** 148 * @license lucide-react v0.468.0 - ISC 149 * 150 * This source code is licensed under the ISC license. 151 * See the LICENSE file in the root directory of this source tree. 152 *) 153 154lucide-react/dist/esm/icons/lock.js: 155 (** 156 * @license lucide-react v0.468.0 - ISC 157 * 158 * This source code is licensed under the ISC license. 159 * See the LICENSE file in the root directory of this source tree. 160 *) 161 162lucide-react/dist/esm/icons/monitor.js: 163 (** 164 * @license lucide-react v0.468.0 - ISC 165 * 166 * This source code is licensed under the ISC license. 167 * See the LICENSE file in the root directory of this source tree. 168 *) 169 170lucide-react/dist/esm/icons/panel-left.js: 171 (** 172 * @license lucide-react v0.468.0 - ISC 173 * 174 * This source code is licensed under the ISC license. 175 * See the LICENSE file in the root directory of this source tree. 176 *) 177 178lucide-react/dist/esm/icons/panel-right.js: 179 (** 180 * @license lucide-react v0.468.0 - ISC 181 * 182 * This source code is licensed under the ISC license. 183 * See the LICENSE file in the root directory of this source tree. 184 *) 185 186lucide-react/dist/esm/icons/plus.js: 187 (** 188 * @license lucide-react v0.468.0 - ISC 189 * 190 * This source code is licensed under the ISC license. 191 * See the LICENSE file in the root directory of this source tree. 192 *) 193 194lucide-react/dist/esm/icons/redo-2.js: 195 (** 196 * @license lucide-react v0.468.0 - ISC 197 * 198 * This source code is licensed under the ISC license. 199 * See the LICENSE file in the root directory of this source tree. 200 *) 201 202lucide-react/dist/esm/icons/search.js: 203 (** 204 * @license lucide-react v0.468.0 - ISC 205 * 206 * This source code is licensed under the ISC license. 207 * See the LICENSE file in the root directory of this source tree. 208 *) 209 210lucide-react/dist/esm/icons/sliders-horizontal.js: 211 (** 212 * @license lucide-react v0.468.0 - ISC 213 * 214 * This source code is licensed under the ISC license. 215 * See the LICENSE file in the root directory of this source tree. 216 *) 217 218lucide-react/dist/esm/icons/smartphone.js: 219 (** 220 * @license lucide-react v0.468.0 - ISC 221 * 222 * This source code is licensed under the ISC license. 223 * See the LICENSE file in the root directory of this source tree. 224 *) 225 226lucide-react/dist/esm/icons/tablet.js: 227 (** 228 * @license lucide-react v0.468.0 - ISC 229 * 230 * This source code is licensed under the ISC license. 231 * See the LICENSE file in the root directory of this source tree. 232 *) 233 234lucide-react/dist/esm/icons/trash.js: 235 (** 236 * @license lucide-react v0.468.0 - ISC 237 * 238 * This source code is licensed under the ISC license. 239 * See the LICENSE file in the root directory of this source tree. 240 *) 241 242lucide-react/dist/esm/icons/type.js: 243 (** 244 * @license lucide-react v0.468.0 - ISC 245 * 246 * This source code is licensed under the ISC license. 247 * See the LICENSE file in the root directory of this source tree. 248 *) 249 250lucide-react/dist/esm/icons/undo-2.js: 251 (** 252 * @license lucide-react v0.468.0 - ISC 253 * 254 * This source code is licensed under the ISC license. 255 * See the LICENSE file in the root directory of this source tree. 256 *) 257 258lucide-react/dist/esm/icons/zoom-in.js: 259 (** 260 * @license lucide-react v0.468.0 - ISC 261 * 262 * This source code is licensed under the ISC license. 263 * See the LICENSE file in the root directory of this source tree. 264 *) 265 266lucide-react/dist/esm/icons/zoom-out.js: 267 (** 268 * @license lucide-react v0.468.0 - ISC 269 * 270 * This source code is licensed under the ISC license. 271 * See the LICENSE file in the root directory of this source tree. 272 *) 273 274lucide-react/dist/esm/lucide-react.js: 275 (** 276 * @license lucide-react v0.468.0 - ISC 277 * 278 * This source code is licensed under the ISC license. 279 * See the LICENSE file in the root directory of this source tree. 280 *) 281*/}}]);
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.