1"use strict";(self.webpackChunknino_web=self.webpackChunknino_web||[]).push([[9341,5813],{7785:(e,n,t)=>{t.d(n,{Nh:()=>p,P:()=>u,iz:()=>v,sU:()=>g,xE:()=>h});var o,r,i,a,c=t(30168),d=t(53320),s=t(47131),l=t(21411);const u=d.Z.div(o||(o=(0,c.Z)(["\n height: 100%;\n display: flex;\n"]))),p=d.Z.div(r||(r=(0,c.Z)(["\n flex: 1;\n display: ",";\n flex-direction: column;\n position: relative;\n"])),(e=>e["data-show"]?"flex":"none")),v=d.Z.div(i||(i=(0,c.Z)(["\n width: 1px;\n height: 100%;\n background-color: ",";\n"])),(e=>e.theme.vars.palette.background.divider)),h=(0,d.Z)(s.Z)(a||(a=(0,c.Z)(["\n margin-top: 14px;\n position: absolute;\n z-index: 1;\n"]))),g=l.Z},15438:(e,n,t)=>{t.d(n,{Z:()=>u});var o=t(47313),r=t(57382),i=t(90555),a=t(80123),c=t(2542),d=t(48204),s=t(79434),l=t(66383);function u(e,n,t){const{focus:u,selects:p,pageSelector:v,pageEditor:h}=(0,o.useContext)(i.r),{selection:g,syncSelect:m,select:x,clear:f,init:b}=v,{dispatch:Z}=h,{canEdit:y}=(0,d.Z)(),{collaborating:k}=(0,c.Z)(),I=(0,s.Z)(),w=(0,l.Z)();return(0,o.useEffect)((()=>{y&&!a.tq&&b()}),[y,b]),(0,o.useEffect)((()=>{if(!g.current||!y||a.tq)return;const e=g.current;function n(e){let{store:n}=e;(n.changed.added||n.changed.removed)&&w()}function t(){k&&m(Array.from(p.current))}return e.on("move",n),e.on("stop",t),()=>{e.off("move",n),e.off("stop",t)}}),[g,p,y,k,w,m]),(0,r.v)("up, down, left, right",(e=>{if(null!==n.current)switch(e.preventDefault(),e.key){case"ArrowUp":n.current.request("draggable",{deltaY:-t},!0);break;case"ArrowDown":n.current.request("draggable",{deltaY:t},!0);break;case"ArrowLeft":n.current.request("draggable",{deltaX:-t},!0);break;case"ArrowRight":n.current.request("draggable",{deltaX:t},!0)}}),[t]),(0,r.v)("mod + a",(n=>{y&&u.current&&(n.preventDefault(),x(e))}),[e,y]),(0,r.v)("backspace",(e=>{if(y&&u.current&&p.current.size>0){e.preventDefault();const n=Array.from(p.current);n.forEach((e=>{I[e]&&n.push(...I[e])}));const t=n.map((e=>({op:"delete",blockId:e}))),o={},r={selects:Array.from(p.current)};Z(t,o,r),f()}}),[Z,I,y]),(0,r.v)("escape",(()=>w()),[]),v}},80488:(e,n,t)=>{t.d(n,{Z:()=>a});var o=t(47313),r=t(79364),i=t(83523);function a(){const{current:e}=(0,o.useRef)(new r.xQ),[n,t]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{const n=e.pipe((0,i.b)(300)).subscribe((()=>t(!1)));return()=>n.unsubscribe()}),[e]),{shifting:n,shift:()=>{n||t(!0),e.next()}}}},77247:(e,n,t)=>{t.d(n,{Z:()=>r});var o=t(47313);function r(e){const n=(0,o.useRef)(0);return{onTouchStart:function(t){e.selects.current.has(e.blockId)?t.stopPropagation():n.current=Date.now()},onTouchEnd:function(){var t;const o=null===(t=e.editors.current[e.blockId])||void 0===t?void 0:t.editor;o&&Date.now()-n.current<100&&(o.isFocused||o.commands.focus())},onHeaderTouchStartCapture:function(e){e.stopPropagation()},onHeaderTouchEndCapture:function(e){e.stopPropagation()},onHeaderPopoverClose:function(){e.pageSelector.clear(void 0,!0)}}}},60425:(e,n,t)=>{t.d(n,{Mo:()=>l,NT:()=>u,ZP:()=>s});var o,r,i,a=t(30168),c=t(19536),d=t(53320);const s=d.Z.div(o||(o=(0,a.Z)(["\n height: 100%;\n display: flex;\n flex-direction: column; \n"]))),l=d.Z.div(r||(r=(0,a.Z)(["\n flex: 1;\n display: flex;\n flex-direction: column; \n"]))),u=(0,d.Z)(c.Z)(i||(i=(0,a.Z)(["\n border-color: ",";\n"])),(e=>e.theme.vars.palette.background.divider))},29193:(e,n,t)=>{t.d(n,{Z:()=>p});var o,r=t(30168),i=t(53320),a=t(60194),c=t(74748),d=t(83213),s=t(42055),l=t(46417);const u=i.Z.div(o||(o=(0,r.Z)(["\n background-color: ",";\n color: ",";\n box-shadow: ",";\n width: 100%;\n min-width: 200px;\n user-select: none;\n touch-action: none;\n cursor: grabbing;\n svg {\n color: ",";\n }\n"])),(e=>e.theme.vars.palette.background.paper),(e=>e.theme.vars.palette.text.secondary),(e=>e.theme.vars.shadows[4]),(e=>e.theme.vars.palette.text.secondary));function p(e){const n=(0,s.Z)(),t=e.icon;return(0,l.jsx)(u,{children:(0,l.jsxs)(a.ZP,{children:[(0,l.jsx)(c.Z,{children:(0,l.jsx)(t,{})}),(0,l.jsx)(d.Z,{children:e.name||n("unnamed")})]})})}},93914:(e,n,t)=>{t.d(n,{Z:()=>d});var o=t(47313),r=t(17189),i=t(27834),a=t(14560),c=t(46417);function d(e){const{width:n,height:t,ref:d}=(0,i.NB)(),s=(0,o.useMemo)((()=>(0,o.forwardRef)(((n,t)=>{let{style:o,...r}=n;return(0,c.jsx)("div",{ref:t,style:{...o,height:"".concat(parseFloat(o.height)+2*e.gap,"px")},...r})}))),[e.gap]);return(0,c.jsx)(a.Z,{ref:d,style:e.style,sx:{padding:0},children:(0,c.jsx)(r.t7,{ref:e.listRef,width:n||0,height:t||0,className:e.className,itemData:e.itemContext,itemSize:e.itemHeight,itemCount:e.itemCount,itemKey:e.itemKey,innerElementType:s,overscanCount:10,children:e.item})})}},55777:(e,n,t)=>{t.d(n,{Z:()=>i});var o=t(90210),r=t(46417);function i(e){return(0,r.jsx)(o.Z,{...e,children:(0,r.jsx)("path",{d:"M12 3L16 7L13 7V11H17L17 8L21 12L17 16L17 13H13V17H16L12 21L8 17H11V13H7L7 16L3 12L7 8V11H11V7L8 7L12 3Z"})})}},2412:(e,n,t)=>{t.d(n,{$s:()=>d,Ms:()=>s,_g:()=>l,iC:()=>c});var o=t(59302),r=t(80123);const i={instruction:{en:e=>"To move ".concat(e,", press the M key. Then use the arrow keys to move it in any given direction. Press the M key again to drop it in its new position, or press escape to cancel."),zh:e=>"\u5982\u9700\u79fb\u52d5".concat(e,"\uff0c\u6309 M \u9375\u3002 \u7136\u5f8c\u4f7f\u7528\u7bad\u982d\u9375\u5c07\u5176\u6cbf\u4efb\u610f\u7d66\u5b9a\u65b9\u5411\u79fb\u52d5\u3002 \u518d\u6b21\u6309 M \u9375\u5c07\u5176\u653e\u81f3\u65b0\u4f4d\u7f6e\uff0c\u6216\u6309\u9000\u51fa\u9375\u53d6\u6d88\u3002")}},a={"picked-up":{en:"Picked up",zh:"\u5df2\u62ff\u8d77"},"is-moved-over-to":{en:"is moved over to",zh:"\u88ab\u79fb\u5230"},"is-moved-outside":{en:"is moved outside",zh:"\u88ab\u79fb\u5230\u5916\u9762"},"is-dropped-over-to":{en:"is dropped over to",zh:"\u88ab\u653e\u5230"},"is-dropped":{en:"is dropped",zh:"\u5df2\u88ab\u653e\u7f6e"},"move-canceled":{en:"Move canceled",zh:"\u79fb\u52d5\u53d6\u6d88"}},c={start:r.tq?[]:["KeyM"],end:r.tq?[]:["KeyM"],cancel:["Escape"]},d={layoutShiftCompensation:!1};function s(e){const n=(0,o.Z)();return{draggable:i.instruction[n](e)}}function l(e,n){const t=(0,o.Z)();return{onDragStart(n){let{active:o}=n;return"".concat(a["picked-up"][t]," ").concat(e(o.id),".")},onDragOver(o){let{active:r,over:i}=o;return i?"".concat(e(r.id)," ").concat(a["is-moved-over-to"][t]," ").concat(n?n(i.id):e(i.id)):"".concat(e(r.id)," ").concat(a["is-moved-outside"][t])},onDragEnd(o){let{active:r,over:i}=o;return i?"".concat(e(r.id)," ").concat(a["is-dropped-over-to"][t]," ").concat(n?n(i.id):e(i.id)):"".concat(e(r.id)," ").concat(a["is-dropped"][t])},onDragCancel:()=>"".concat(a["move-canceled"][t])}}},15813:(e,n,t)=>{function o(e,n){return{width:"calc(100% - ".concat(2*n,"px)"),position:e.position,top:"".concat(parseFloat(e.top)+n,"px"),left:n}}function r(e,n){return{position:e.position,left:e.left+n,top:e.top+n,width:e.width-n,height:e.height-n}}t.d(n,{$:()=>r,u:()=>o})},30700:(e,n,t)=>{t.d(n,{Z:()=>f});var o=t(30168),r=t(47313),i=t(1337),a=t(53320),c=t(25002),d=t(61689),s=t(47131),l=t(90210),u=t(46417);function p(e){return(0,u.jsx)(l.Z,{...e,children:(0,u.jsx)("path",{d:"M3 8V10H13V8H3ZM7 12V14H3V16H7V18H9V12H7ZM21 16V14H11V16H21ZM15 12H17V10H21V8H17V6H15V12Z"})})}var v,h=t(97650),g=t(70212),m=t(81887);const x=a.Z.div(v||(v=(0,o.Z)(["\n width: 340px;\n display: flex;\n flex-direction: column;\n & >
1 div:first-of-type {\n border-top: none;\n }\n"])));function f(e){const{zone:n}=(0,m.Z)(),[t,o]=(0,r.useState)(),a=(0,h.Z)(),l=n+"-config",v=(0,g.Z)();return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(d.Z,{title:v("edit"),children:(0,u.jsx)(s.Z,{className:"config-button",onClick:e=>o(e.currentTarget),"aria-controls":l,"aria-haspopup":"true",children:(0,u.jsx)(p,{color:e.active?"primary":void 0})})}),(0,u.jsx)(c.ZP,{id:l,open:Boolean(t),anchorEl:t,onClose:()=>o(void 0),container:a.current,slotProps:{paper:{sx:{maxHeight:i.m}}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:(0,u.jsx)(x,{children:e.items.map(((e,n)=>(0,u.jsx)(r.Fragment,{children:e},n)))})})]})}},85825:(e,n,t)=>{t.d(n,{Z:()=>c});var o=t(60194),r=t(74748),i=t(83213),a=t(46417);function c(e){return(0,a.jsxs)(o.ZP,{sx:{height:"50px"},children:[(0,a.jsx)(r.Z,{children:e.icon}),(0,a.jsx)(i.Z,{primaryTypographyProps:{variant:"subtitle2",color:"text.secondary"},children:e.name}),e.action]})}},35613:(e,n,t)=>{t.d(n,{Z:()=>x});var o,r=t(30168),i=t(53320),a=t(78770),c=t(3789),d=t(97635),s=t(64139),l=t(14118),u=t(85825),p=t(19199),v=t(22427),h=t(45530),g=t(46417);const m=i.Z.div(o||(o=(0,r.Z)(["\n padding-left: 48px;\n padding-bottom: 6px;\n padding-right: 6px;\n .MuiSelect-icon {\n right: 11px;\n }\n"])));function x(){const e=(0,v.Z)(),n="viewer"===e.content.mode?"viewer":"editor",t=(0,p.Z)(),o=(0,h.Z)();return(0,g.jsxs)(l.Z,{children:[(0,g.jsx)(u.Z,{icon:"editor"===n?(0,g.jsx)(d.Z,{}):(0,g.jsx)(s.Z,{color:"primary"}),name:o("mode")}),(0,g.jsx)(m,{children:(0,g.jsxs)(a.Z,{value:n,onChange:(n,o)=>function(n){const o={...e.content,mode:n},r={op:"update",blockId:e.id,content:o};t([r])}(o),sx:{height:"50px"},color:"primary",exclusive:!0,fullWidth:!0,children:[(0,g.jsx)(c.Z,{value:"editor",children:o("editor")}),(0,g.jsx)(c.Z,{value:"viewer",children:o("viewer")})]})})]})}},14118:(e,n,t)=>{t.d(n,{Z:()=>i});var o,r=t(30168);const i=t(53320).Z.div(o||(o=(0,r.Z)(["\n border-top: ",";\n padding: 6px;\n"])),(e=>"1px solid ".concat(e.theme.vars.palette.divider)))},22427:(e,n,t)=>{t.d(n,{Z:()=>a});var o=t(47313),r=t(42591),i=t(38563);function a(){const{content:e}=(0,r.Z)(),{pageId:n}=(0,i.Z)(),{current:t}=(0,o.useRef)("b"+n.slice(1));return{id:t,content:e}}},45530:(e,n,t)=>{t.d(n,{Z:()=>i});var o=t(59302);const r={mode:{en:"Mode",zh:"\u6a21\u5f0f"},show:{en:"Show",zh:"\u986f\u793a"},sort:{en:"Sort",zh:"\u6392\u5e8f"},filter:{en:"Filter",zh:"\u7be9\u9078"},fields:{en:"Fields",zh:"\u6b04\u4f4d"},widgets:{en:"Widgets",zh:"\u90e8\u4ef6"},"add-widget":{en:"Add widget",zh:"\u6dfb\u52a0\u90e8\u4ef6"},"add-condition":{en:"Add condition",zh:"\u6dfb\u52a0\u689d\u4ef6"},editor:{en:"Editor",zh:"\u7de8\u8f2f\u8005"},viewer:{en:"Viewer",zh:"\u6aa2\u8996\u8005"}};function i(){const e=(0,o.Z)();return(0,o.I)((n=>r[n][e]),[e])}},1337:(e,n,t)=>{t.d(n,{H:()=>o,m:()=>r});const o={contentId:"name",content:{index:-1,name:"",type:"text",data:{}}},r="calc(100% - 96px)"},98219:(e,n,t)=>{t.d(n,{Z:()=>i});var o=t(47313),r=t(80123);function i(){const[e,n]=(0,o.useState)(!1);return{showSides:e,onMouseEnter:r.gn?void 0:()=>n(!0),onMouseUp:r.gn?()=>n(!0):void 0,onMouseLeave:()=>n(!1)}}},93218:(e,n,t)=>{t.d(n,{T:()=>S});var o,r=t(97753),i=t(74636),a=t(96303),c=t(2412),d=t(25733),s=t(55777),l=t(30168);const u=t(53320).Z.div(o||(o=(0,l.Z)(["\n height: 100%;\n display: flex;\n align-items: center;
1\n"])));var p=t(29193),v=t(44090),h=t(47313);const g={blockId:"",prevOrderIndex:-1,prevOrderId:"",nextOrderId:""};var m=t(90555),x=t(58912),f=t(14122),b=t(80123),Z=t(1077),y=t(63017);function k(){const{selects:e,editors:n,focus:t,pageSelector:{clear:o}}=(0,h.useContext)(m.r),r=(0,h.useRef)(g),[a,c]=(0,h.useState)(!1),d=function(){const{setBlockState:e}=(0,h.useContext)(Z.J);return(0,h.useCallback)(((n,t,o,r)=>{e((0,y.ZP)((e=>{e.order[t].splice(e.order[t].indexOf(n),1),e.order[o]=e.order[o]||[],e.order[o].splice(r,0,n)})))}),[e])}(),s=function(){const{focus:e,selects:n,pageEditor:t}=(0,h.useContext)(m.r),{dispatch:o}=t;return(0,h.useCallback)(((t,r,a,c,d)=>{if(e.current=a,a===c)return;const s=n.current.size>0?Array.from(n.current):[a];let l=0,u=1;if(c){const e=r.indexOf(a),n=r.indexOf(c),o=(0,i.Rp)(r,e,n),d=o[o.indexOf(a)-1],p=o[o.indexOf(a)+1],v=t[d],h=t[p],g=v&&h?(v.content.index+h.content.index)/2:v?v.content.index+1:h?h.content.index/2:1,m=t[c].content.index||1;l=Math.min(m,g),u=(m>g?m-g:g-m)/(s.length+1)}else if(r.length>0){const e=r[r.length-1],n=t[e];l=n.content.index||0}const p=s.map(((e,n)=>l+(n+1)*u)),v=s.sort(((e,n)=>(t[e].content.index||0)-(t[n].content.index||0))).map(((e,n)=>{const o={...t[e].content,index:p[n]};return d?o.groupId=d:delete o.groupId,{op:"update",blockId:e,content:o,contents:t[e].contents}})),h=s.filter((e=>"property"!==t[e].meta.type));o(v,{selects:h},{selects:h},void 0===c?{skipSelect:!0}:void 0)}),[e,n,o])}(),l=(0,h.useCallback)(((i,a,d)=>{var s;if(b.tq&&null!==(s=n.current[t.current])&&void 0!==s&&s.editor.isFocused)return;window.mobile&&b.gn&&window.mobile.postMessage("vibrate"),e.current.has(d)||o(void 0,!0),(0,x.gT)(n.current,t.current);const l=(0,f.R0)(i[d]),u=a[l].indexOf(d);r.current={blockId:d,prevOrderIndex:u,prevOrderId:l,nextOrderId:l},c(!0)}),[e,n,t,o]),u=(0,h.useCallback)(((e,n,t)=>{const o=r.current;if(o.blockId)if(t){const a=(0,f.R0)(e[t]);if(o.nextOrderId!==a){var i;const e=(null===(i=n[a])||void 0===i?void 0:i.indexOf(t))||1;d(o.blockId,o.nextOrderId,a,e),r.current.nextOrderId=a}}else o.nextOrderId!==o.prevOrderId&&(d(o.blockId,o.nextOrderId,o.prevOrderId,o.prevOrderIndex),r.current.nextOrderId=o.prevOrderId)}),[d]),p=(0,h.useCallback)(((e,n,t,o)=>{const i=r.current;if(t)if(o){var a;const t=o,r=t.startsWith("b")&&20===t.length?t:void 0;s(e,n[t],i.blockId,void 0,r),null===(a=document.getElementsByClassName("move-hovered")[0])||void 0===a||a.classList.remove("move-hovered")}else{const o=i.nextOrderId,r=o.startsWith("b")&&20===o.length?o:void 0;s(e,n[o],i.blockId,t,r)}r.current=g,c(!1)}),[s]),v=(0,h.useCallback)((()=>{const e=r.current;e.nextOrderId!==e.prevOrderId&&d(e.blockId,e.nextOrderId,e.prevOrderId,e.prevOrderIndex),r.current=g,c(!1)}),[d]);return{active:a,selects:e,blockId:r.current.blockId,onDragStart:l,onDragOver:u,onDragEnd:p,onDragCancel:v}}var I=t(79434),w=t(10111),j=t(73667),C=t(55829),E=t(46417);const S=e=>{const{active:n,selects:t,blockId:o,onDragStart:l,onDragOver:h,onDragEnd:g,onDragCancel:m}=k(),x=(0,I.Z)(),f=(0,w.Z)(),b=(0,v.Z)(),Z=(0,r.Dy)((0,r.VT)(r.MA,{activationConstraint:{distance:4}}),(0,r.VT)(r.LO,{activationConstraint:{tolerance:4,delay:400}}),(0,r.VT)(r.Lg,{keyboardCodes:c.iC,coordinateGetter:i.is})),y=(0,C.Z)(),S=(0,j.Z)();return(0,E.jsxs)(r.LB,{sensors:Z,autoScroll:c.$s,collisionDetection:e.hoverable?b:void 0,onDragStart:e=>l(f,x,e.active.id),onDragOver:e=>{var n;return h(f,x,null===(n=e.over)||void 0===n?void 0:n.id)},onDragEnd:e=>{var n;return g(f,x,null===(n=e.over)||void 0===n?void 0:n.id,(0,v.F)(e.collisions))},onDragCancel:e=>m(),children:[(0,E.jsx)(r.y9,{modifiers:e.center?[a.oJ]:void 0,dropAnimation:null,children:n&&f[o]&&(0,E.jsx)(u,{children:(0,E.jsx)(d.Z,{color:"primary",badgeContent:t.current.size,invisible:t.current.size<=1,sx:{width:"100%",minWidth:"200px",maxWidth:e.center?"300px":void 0},children:(0,E.jsx)(p.Z,{icon:s.Z,name:t.current.size>1?y("blocks"):e.unit||f[o].content.name||f[o].content.text||S(f[o].meta.type)})})})}),e.children]})}},44090:(e,n,t)=>{t.d(n,{F:()=>d,Z:()=>s});var o=t(47313);const r={x:0,y:0};function i(e,n){let{data:{value:t}}=e,{data:{value:o}}=n;return t-o}function a(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.left,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.top;return{x:n+.5*e.width,y:t+.5*e.height}}function c(e,n){return!(!e||!n)&&(e.x>n.x&&e.x<n.x+n.width&&e.y>n.y&&e.y<n.y+n.height)}function d(e){var n;return null===e||void 0===e||null===(n=e.find((e=>{var n;return null===(n=e.data)||void 0===n?void 0:n.hovered})))||void 0===n?void 0:n.id}function s(){const e=(0,o.useRef)([]),n=(0,o.useRef)([]);return t=>{var o,d,s;let{active:l,collisionRect:u,droppableRects:p,droppableContainers:v,pointerCoordinates:h}=t;const g=a(u,u.left,u.top),m=n.current.findIndex((e=>e.id===l.id)),x=(null===(o=e.current[m])||void 0===o?void 0:o.id)||l.id,f=p.get(x),b=f?a(f):r,Z=[],y=Math.abs(b.x-g.x)>u.width+((null===(d=l.data.current)||void 0===d?void 0:d.gap)||0)||Math.abs(b.y-g.y)>u.height+((null===(s=l.data.current)||void 0===s?void 0:s.gap)||0);for(const e of v){const{id:n,node:t,data:o}=e,r=p.get(n);if(r){var k,I;
1const i=null===(k=e.node.current)||void 0===k?void 0:k.getBoundingClientRect(),d=!0===(null===(I=o.current)||void 0===I?void 0:I.hoverable),s=!(!d||l.id===n)&&c(h,i);d&&t.current&&(s?t.current.classList.add("move-hovered"):t.current.classList.remove("move-hovered")),Z.push({id:n,data:{droppableContainer:e,hovered:s,value:(w=a(r),j=y?g:b,Math.sqrt(Math.pow(w.x-j.x,2)+Math.pow(w.y-j.y,2)))}})}}var w,j;return e.current=Z.sort(i),0===n.current.length&&(n.current=e.current),e.current}}},79341:(e,n,t)=>{t.r(n),t.d(n,{default:()=>dn});var o=t(72997),r=t(1077),i=t(90555),a=t(79581),c=t(13171),d=t(58663),s=t(81474),l=t(93218),u=t(97552),p=t(59424),v=t(41578),h=t(30700),g=t(35613),m=t(42591),x=t(46417);function f(){const{content:e}=(0,m.Z)(),n="viewer"===e.mode;return(0,x.jsx)(h.Z,{active:n,items:[(0,x.jsx)(g.Z,{})]})}function b(){return(0,x.jsx)(v.Z,{editorButton:(0,x.jsx)(f,{}),cache:"full",items:["permission","integration","publication","versioning","analytics","find","undo","redo","comment-history","info","export","rename","move","remove"]})}var Z=t(30168),y=t(74636),k=t(7785);const I={left:!0,top:!0,right:!0,bottom:!0,center:!0,middle:!0},w=4;var j,C,E,S,F,M,R,z=t(53320),O=t(61689),P=t(47131),D=t(5211),L=t(79604),H=t(36859),T=t(21411),B=t(77782),A=t
1(31685),V=t(60425),N=t(67039),q=t(83334),W=t(5995),G=t(24438),K=t(93914),U=t(75536),X=t(47313),J=t(20790),$=t(15813),_=t(42848),Q=t(80123),Y=t(38743),ee=t(61113),ne=t(23423),te=t(46857),oe=t(51444);const re=z.Z.div(j||(j=(0,Z.Z)(["\n height: 24px;\n display: flex;\n align-items: center;\n"]))),ie=z.Z.div(C||(C=(0,Z.Z)(["\n background-color: ",";\n width: 100%;\n height: 2px;\n"])),(e=>e.theme.vars.palette.primary.main)),ae=z.Z.div(E||(E=(0,Z.Z)(["\n height: 48px;\n margin-bottom: -48px;\n padding-top: 11px;\n"]))),ce=(0,z.Z)(Y.Z)(S||(S=(0,Z.Z)(["\n width: 100%;\n aspect-ratio: 16 / 9;\n text-align: initial;\n outline: ",";\n outline-width: 2px !important;\n &.Mui-focusVisible {\n outline: "," !important;\n }\n .handle {\n height: 48px;\n }\n .handle:not(.active) {\n visibility: ",";\n }\n &:hover {\n .handle:not(.active) {\n visibility: visible;\n }\n }\n"])),(e=>e["data-current"]?"2px solid ".concat(e.theme.vars.palette.primary.main):void 0),(e=>"4px solid ".concat(e.theme.vars.palette.primary.main)),Q.tq?"visible":"hidden"),de=z.Z.div(F||(F=(0,Z.Z)(["\n height: 100%;\n width: 24px;\n margin-left: -24px;\n display: flex;\n align-items: center;
1\n"]))),se=z.Z.div(M||(M=(0,Z.Z)(["\n height: 100%;\n width: 48px;\n margin-left: -24px;\n margin-right: -24px;\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n button:not(.commenting) {\n visibility: hidden;\n }\n &:hover {\n button:not(.commenting) {\n visibility: visible;\n }\n }\n"]))),le=(0,z.Z)(_.XD)(R||(R=(0,Z.Z)(["\n pointer-events: none;\n overflow: hidden;\n width: 100%;\n"]))),ue=(0,X.memo)((e=>{var n,t;const{items:o,focus:r,selects:i,canEdit:a,canComment:c,pageClipboard:d,pageSelector:s,pageEditor:l,pagePopper:u,dimension:p,groupId:v,gapFocus:h,gapClick:g,select:m}=e.data,{blockId:f,block:b,commenting:Z,nesting:y}=e.item,k=!h&&f===v,I=(e.height-24)/p.height;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(re,{onMouseDown:a?()=>g(f):void 0,children:h===f?(0,x.jsx)(ie,{}):(0,x.jsx)(ee.Z,{variant:"overline",color:k?"primary.main":"text.secondary",sx:{marginLeft:"3px",userSelect:"none"},children:e.index+1})}),(0,x.jsxs)(ce,{id:f,className:"block outlinable selectable ".concat(i.current.has(f)?"selected":""),"data-current":k,component:"div",...e.dragProps,...e.dragAttrs,tabIndex:v?k?0:-1:void 0,onFocusVisible:v?()=>m(f,!1):void 0,onClick:v?void 0:e=>m(f,e.shiftKey),onMouseDown:n=>{var t;v&&m(f,n.shiftKey),null===(t=e.dragProps)||void 0===t||t.onMouseDown(n)},children:[a&&(0,x.jsx)(de,{onClick:v?void 0:e=>e.stopPropagation(),children:(0,x.jsx)(ne.Z,{focus:r,block:b,blockId:f,nesting:y,insertable:"group",prevBlockIndex:null===(n=o[e.index-1])||void 0===n?void 0:n.block.content.index,nextBlockIndex:null===(t=o[e.index+1])||void 0===t?void 0:t.block.content.index,pageClipboard:d,pageSelector:s,pageEditor:l,pagePopper:u,dragProps:e.dragProps})}),(0,x.jsx)(le,{children:(0,x.jsx)(_.aI,{style:{transform:"scale(".concat(I,")"),width:"".concat(p.width,"px"),height:"".concat(p.height,"px")},children:null===y||void 0===y?void 0:y.map((e=>(0,x.jsx)(oe.Z,{block:e.block,blockId:e.blockId,inner:!0},e.blockId)))})}),c&&(0,x.jsx)(se,{onClick:v?void 0:e=>e.stopPropagation(),onFocus:e=>e.stopPropagation(),children:(0,x.jsx)(te.Z,{blockId:f,pageEditor:l,commenting:Z})})]}),e.index===o.length-1&&a&&(0,x.jsx)(ae,{onMouseDown:()=>g("tail"),children:"tail"===h&&(0,x.jsx)(ie,{})})]})}),((e,n)=>{var t,o;return e.index===n.index&&e.height===n.height&&e.data.groupId===n.data.groupId&&e.data.gapFocus===n.data.gapFocus&&e.data.canEdit===n.data.canEdit&&e.data.canComment===n.data.canComment&&e.item.commenting===n.item.commenting&&e.item.updatedAt===n.item.updatedAt&&(null===(t=e.item.nesting)||void 0===t?void 0:t.length)===(null===(o=n.item.nesting)||void 0===o?void 0:o.length)&&e.item.block.meta.updatedAt===n.item.block.meta.updatedAt&&e.item.blockId===n.item.blockId}));function pe(e){const n=e.data.items[e.index],{attributes:t,listeners:o,setNodeRef:r,transform:i,transition:a}=(0,y.nB)({id:n.blockId,disabled:!e.data.canEdit});return(0,x.jsx)("div",{ref:r,style:{...(0,$.u)(e.style,24),transform:J.ux.Translate.toString(i),transition:a},children:(0,x.jsx)(ue,{item:n,data:e.data,index:e.index,height:e.style.height,dragProps:o,dragAttrs:t})})}var ve=t(1168),he=t(42276),ge=t(36246);function me(e){return(0,x.jsx)(ge.Z,{content:{groupId:e.groupId,coord:{x:48,y:48,w:360,h:1},style:{width:"360px",transform:"translate(48px, 48px)"}}})}var xe,fe,be,Ze,ye,ke,Ie=t(62869),we=t(77247),je=t(98219),Ce=t(53820);const Ee=z.Z.div(xe||(xe=(0,Z.Z)(["\n outline-offset: -1px;\n outline: ",";\n z-index: ",";\n position: absolute;\n cursor: ",";\n .selected {\n &.outlinable, > .outlinable {\n outline: none;\n }\n }\n .outlinable:focus-visible, .ProseMirror-focused {\n outline: ",";\n }\n .selectable:not(.selected) {\n outline: ",";\n &.outlinable, .outlinable {\n outline: ",";\n }\n }\n .ProseMirror:not(.ProseMirror-focused) > .is-empty:before {\n content: '\u2026';\n color: ",";\n }\n"])),(e=>e["data-hover"]&&!e["data-selected"]?"1px solid ".concat(e.theme.vars.palette.background.divider):void 0),(e=>e["data-selected"]&&!e["data-group-drag"]?3001:void 0),(e=>e["data-selected"]?"move":void 0),(e=>"".concat(w,"px solid rgba(").concat(e.theme.vars.palette.primary.mainChannel," / 0.2)")),(e=>e["data-color"]?"".concat(w,"px solid ").concat(e["data-color"]):void 0),(e=>e["data-color"]?"".concat(w,"px solid ").concat(e["data-color"]):void 0),(e=>e.theme.vars.palette.text.disabled)),Se=z.Z.div(fe||(fe=(0,Z.Z)(["\n display: flex;\n width: 100%;\n height: 24px;\n margin-top: -12px;\n margin-bottom: -12px;\n padding: 0 12px;\n"]))),Fe=z.Z.div(be||(be=(0,Z.Z)(["\n background-color: ",";\n box-shadow: ",";\n z-index: ",";\n"])),(e=>e.theme.vars.palette.background.paper),(e=>e.theme.vars.shadows[2]),3002),Me=z.Z.div(Ze||(Ze=(0,Z.Z)(["\n z-index: ",";\n button:not(.commenting) {\n visibility: hidden;\n }\n &:hover {\n button:not(.commenting) {\n visibility: visible;\n }\n }\n"])),3002),Re=z.Z.div(ye||(ye=(0,Z.Z)(["\n z-index: ",";\n margin: 0 6px;\n flex: 1;\n cursor: pointer;\n &:hover {\n background-color: ",";\n }\n"])),3002,(e=>e.theme.vars.palette.action.hover)),ze=z.Z.div(ke||(ke=(0,Z.Z)(["\n flex: 1;\n"]))),Oe={marginTop:0,marginLeft:0,marginRight:0,marginBottom:0};function Pe(e){var n,t,o;const r=e.selects.current.has(e.blockId),i=r&&e.selects.current.size>1,{width:a,transform:c,background:d,paddingTop:s,paddingLeft:l,paddingRight:u,paddingBottom:p}=e.block.content.style||{},{onTouchStart:v,onTouchEnd:h,onHeaderTouchStartCapture:g,onHeaderTouchEndCapture:m,onHeaderPopoverClose:f}=(0,we.Z)(e),{showSides:b,onMouseEnter:Z,onMouseLeave:y,onMouseUp:k}=(0,je.Z)(),I=b&&!i&&e.canEdit,w=(b||Boolean(e.commenting)||Boolean(e.menu))&&!i&&e.canComment,j=e.canEdit&&!r,C=(0,Ce.Z)();return(0,x.jsxs)(Ee,{"data-id":e.blockId,"data-selected":r,"data-group-drag":i,"data-color":null===(n=e.presence)||void 0===n?void 0:n.color,"data-hover":!!I||void 0,className:r?"target":void 0,style:{width:a,transform:c,background:d},onTouchStart:v,onTouchEnd:h,onMouseDown:r?e=>e.stopPropagation():void 0,onMouseEnter:Z,onMouseLeave:y,onMouseUp:k,children:[(0,x.jsxs)(Se,{onTouchStartCapture:g,onTouchEndCapture:m,children:[I&&(0,x.jsx)(Fe,{children:(0,x.jsx)(ne.Z,{focus:e.focus,block:e.block,blockId:e.blockId,stylable:!0,flippable:!0,renamable:Boolean(null===(t=e.block.system)||void 0===t?void 0:t.file),defaultStyle:Oe,headBlockIndex:e.headBlockIndex,tailBlockIndex:e.tailBlockIndex,pageClipboard:e.pageClipboard,pageSelector:e.pageSelector,pageEditor:e.pageEditor,pagePopper:e.pagePopper,dragProps:null,onClose:Q.tq?f:y})}),j?(0,x.jsx)(O.Z,{title:Q.tq?"":C("click-to-drag"),placement:"top",followCursor:!0,children:(0,x.jsx)(Re,{onClick:()=>{e.focus.current=e.blockId,e.pageSelector.select([e.blockId],!0)}})}):(0,x.jsx)(ze,{}),w&&(0,x.jsx)(Me,{children:(0,x.jsx)(te.Z,{focus:e.focus,blockId:e.blockId,editor:null===(o=e.editors.current[e.blockId])||void 0===o?void 0:o.editor,pageEditor:e.pageEditor,commenting:e.commenting,onClose:Q.tq?f:y})})]}),(0,x.jsx)("div",{style:{paddingTop:s,paddingLeft:l,paddingRight:u,paddingBottom:p},children:(0,x.jsx)(Ie.Z,{...e})})]})}var De=t(2542),Le=t(80488),He=t(7575),Te=t(48204),Be=t(10111);function Ae(e){const{focus:n,editors:t,selects:o,canEdit:r,canComment:a,pageEditor:c,pagePopper:d,headBlockIndex:s,tailBlockIndex:l,onChangeStyles:u}=function(e,n){var t,o;const{focus:r,editors:a,selects:c,pageEditor:d,pagePopper:s}
1=(0,X.useContext)(i.r),{canEdit:l,canComment:u}=(0,Te.Z)(),p=(0,Be.Z)();(0,X.useEffect)((()=>{n.current&&(n.current.updateSelectors(),n.current.updateRect())}));const v=null===(t=e[0])||void 0===t?void 0:t.block.content.index,h=null===(o=e[e.length-1])||void 0===o?void 0:o.block.content.index;return{focus:r,editors:a,selects:c,canEdit:l,canComment:u,pageEditor:d,pagePopper:s,headBlockIndex:v,tailBlockIndex:h,onChangeStyles:function(e){const n=e.map((e=>{const{width:n,transform:t}=e.target.style,o=e.transformObject.translate,r=e.target.getAttribute("data-id"),i=p[r];return{op:"update",blockId:r,content:{...i.content,coord:{x:o[0],y:o[1],w:Number(n.slice(0,-2)),h:1},style:{...i.content.style,width:n,transform:t}}}})),t=n.map((e=>e.blockId)),o={selects:t},r={selects:t};d.dispatch(n,o,r)}}}(e.groupItems,e.moveableRef),{style:p,zoom:v}=(0,He.Z)(e.canvasRef,e.canvasWidth,e.canvasHeight),{presences:h,selections:g,collaborating:m}=(0,De.Z)(),{shifting:f,shift:b}=(0,Le.Z)();return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(_.lM,{ref:e.canvasRef,children:v&&(0,x.jsx)(_.XD,{style:p,children:(0,x.jsxs)(_.aI,{style:{transform:"scale(".concat(v,")"),width:"".concat(e.canvasWidth,"px"),height:"".concat(e.canvasHeight,"px")},children:[e.groupItems.map((i=>{let{blockId:u,block:p,commenting:v}=i;return document.fullscreenElement?(0,x.jsx)(oe.Z,{block:p,blockId:u},u):(0,x.jsx)(Pe,{block:p,blockId:u,canEdit:r,canComment:a,commenting:v,collaborating:m,presence:g[u]?h[g[u][0]]:void 0,menu:f?void 0:d.popperState[u],focus:n,editors:t,selects:o,headBlockIndex:s,tailBlockIndex:l,pageClipboard:e.pageClipboard,pageSelector:e.pageSelector,pageEditor:c,pagePopper:d},u)})),(0,x.jsx)(he.ZP,{target:".target",ref:e.moveableRef,flushSync:ve.flushSync,draggable:r,resizable:r,snappable:r,snapThreshold:6,snapDirections:I,elementSnapDirections:I,horizontalGuidelines:[0,16,e.canvasHeight/2,e.canvasHeight-16,e.canvasHeight],verticalGuidelines:[0,16,e.canvasWidth/2,e.canvasWidth-16,e.canvasWidth],elementGuidelines:e.groupItems.filter((e=>!o.current.has(e.blockId))).map((e=>"#"+e.blockId)),renderDirections:1===o.current.size?["w","e"]:[],edge:1===o.current.size?["w","e"]:[],hideDefaultLines:!0,origin:!1,padding:w,linePadding:w,onResizeStart:e=>e.setMin([128,0]),onRenderGroupEnd:e=>u(e.events),onRenderGroup:e=>{e.events.forEach((e=>{e.style.width&&(e.target.style.width=e.style.width),e.style.transform&&(e.target.style.transform=e.style.transform)}))},onRenderEnd:e=>u([e]),onRender:e=>{e.style.width&&(e.target.style.width=e.style.width),e.style.transform&&(e.target.style.transform=e.style.transform),b()}})]})})}),r&&(0,x.jsx)(me,{groupId:e.groupId})]})}var Ve=t(57382),Ne=t(28085),qe=t(40476),We=t(30221),Ge=t(76615),Ke=t(15438),Ue=t(79434),Xe=t(95234),Je=t(47853),$e=t(42810),_e=t(78456),Qe=t(50631);var Ye,en=t(40794),nn=t(87129),tn=t(3025),on=t(71312),rn=t(14624);const an=(0,z.Z)(k.P)(Ye||(Ye=(0,Z.Z)(["\n .moveable-control-box {\n z-index: 0; // prevent it from showing over modals\n --moveable-color: ",";\n .moveable-area,\n .moveable-padding {\n cursor: move;\n }\n .moveable-area {\n outline-offset: -1px;\n outline: ",";\n }\n .moveable-padding {\n background-color: ",";\n }\n .moveable-control {\n background: ",";\n border-radius: 0;\n border: none;\n width: 8px;\n height: 8px;\n margin-top: -4px;\n margin-left: -4px;\n }\n }\n"])),(e=>e.theme.vars.palette.primary.main),(e=>"".concat(w,"px solid ").concat(e.theme.vars.palette.primary.main)),(e=>e.theme.vars.palette.primary.main),(e=>e.theme.vars.palette.primary.light));function cn(){const{items:e,itemList:n,itemListRef:t,itemListIndex:o,itemContext:r,selects:a,canEdit:c,groupId:d,groupItems:s,moveableRef:l,mentionListener:u,pageClipboard:p,pageSelector:v,state:h,setState:g,addSlide:m,navBlur:f,navBack:b}=function(){const{narrow:e}=(0,qe.Z)(),{focus:n,selects:t,pageEditor:o,pagePopper:r}=(0,X.useContext)(i.r),{canEdit:a,canComment:c}=(0,Te.Z)(),{current:d}=(0,X.useRef)({width:640,height:360}),s=(0,We.Z)(),l=(0,X.useRef)(null),u=(0,Ue.Z)(),p=(0,Xe.Z)("root"),v=(0,Be.Z)(),[h,g]=(0,X.useState)({groupId:e?void 0:p[0]}),m=h.groupId&&v[h.groupId]?h.groupId:void 0,x=(0,Xe.Z)(m||""),f=(0,X.useMemo)((()=>x.map((e=>{var n;return{blockId:e,block:v[e],commenting:(null===(n=u[e+"-comments"])||void 0===n?void 0:n.length)>0}}))),[x,v,u]),b=(0,X.useMemo)((()=>p.map((e=>{var n,t;return{blockId:e,block:v[e],nesting:null===(n=u[e])||void 0===n?void 0:n.map((e=>({blockId:e,block:v[e]}))),updatedAt:u[e]?Math.max(0,...u[e].map((e=>v[e].meta.updatedAt))):void 0,commenting:(null===(t=u[e+"-comments"])||void 0===t?void 0:t.length)>0}}))),[p,v,u]),Z=p,y=(0,X.useRef)(null),k=m?Z.indexOf(m):0,I=(0,X.useCallback)((e=>{if(e.some((e=>"group"===e.type))){const n=e.filter((e=>"group"===e.type)),t=n[n.length-1].blockId;return g({groupId:t,navFocus:!0}),e}return e.map((e=>{var n,t;const o=e.content.groupId===m,r=e.content.coord&&e.content.coord.x<d.width?e.content.coord.x+(o?24:0):48,i=e.content.coord&&e.content.coord.y<d.width?e.content.coord.y+(o?24:0):48;return o||(e.content.groupId=m),e.content.coord={x:r,y:i,w:(null===(n=e.content.coord)||void 0===n?void 0:n.w)||360,h:1},e.content.style={width:(null===(t=e.content.style)||void 0===t?void 0:t.width)||"360px",transform:"translate(".concat(r,"px, ").concat(i,"px)")},e}))}),[m,d]),w=(0,Ge.Z)(h.navFocus?Z:x,{nestable:!0,pasteStyle:!0,pasteProcess:I}),j=(0,Ke.Z)(h.navFocus?[]:x,l,4),C=(0,X.useMemo)((()=>({items:b,focus:n,selects:t,canEdit:a,canComment:c,pageClipboard:w,pageSelector:j,pageEditor:o,pagePopper:r,dimension:d,groupId:m,gapFocus:h.gapFocus,gapClick:e=>{const t="tail"===e?Z[Z.length-1]:e;n.current=t,j.clear(),g((n=>
1({groupId:n.groupId,navFocus:!0,gapFocus:e})))},select:(e,o)=>{if(n.current=e,a)if(o){const n=Z.indexOf(e);let o=0;t.current.size>1?o=Z.findIndex((e=>t.current.has(e))):"tail"===h.gapFocus?o=Z.length-1:h.gapFocus?(o=Z.indexOf(h.gapFocus),n<o&&o--):m&&(o=Z.indexOf(m));const r=Z.slice(Math.min(o,n),Math.max(o,n)+1);j.clear(),j.select(r)}else j.clear(),j.select([e]);g({groupId:e,navFocus:!0})}})),[b,Z,n,t,a,c,d,m,h.gapFocus,w,j,o,r]),E=(0,Je.Z)(),S=v[E],F=(0,$e.Z)(Z,y,g),M=(0,_e.Z)(),R=(0,Qe.Z)();(0,X.useEffect)((()=>{E&&S&&function(){switch(S.meta.type){case"comment":return M(E,S);case"version":return R(E);default:F(E,S)}}()}),[E,S,F,M,R]);const{dispatch:z}=o,{select:O}=j,P=(0,X.useCallback)((()=>{let e,n;if(h.groupId&&"tail"!==h.gapFocus)if(h.gapFocus){const t=Z.indexOf(h.gapFocus),o=v[h.gapFocus];e=v[Z[t-1]],n=o}else{const t=Z.indexOf(h.groupId);e=v[h.groupId],n=v[Z[t+1]]}else{const n=Z[Z.length-1];e=v[n]}const t=(0,Ne.k)("b",20),o=e&&n?(e.content.index+n.content.index)/2:e?e.content.index+1:n?n.content.index/2:1;z([{op:"create",blockId:t,type:"group",content:{index:o}}],{selects:[t]},{selects:[t]}),g({groupId:t,navFocus:!0})}),[v,Z,h.groupId,h.gapFocus,z]);return(0,Ve.v)("enter",(e=>{var t;h.navFocus&&a&&n.current&&(e.preventDefault(),P(),null===(t=y.current)||void 0===t||t.scrollToItem(Z.indexOf(n.current)+1,"center"))}),[h.navFocus,a,P]),(0,Ve.v)("mod + a",(e=>{h.navFocus&&a&&n.current&&(e.preventDefault(),O(Z))}),[h.navFocus,a,Z,O]),(0,Ve.v)("tab, shift+tab",(()=>{h.navFocus&&g((e=>({groupId:e.groupId})))}),[h.navFocus]),(0,Ve.v)("up, left",(()=>{let e;if("tail"===h.gapFocus)e=Z[Z.length-1];else if(h.gapFocus){const n=Z.indexOf(h.gapFocus);e=Z[n-1]}else h.navFocus&&(e=Z[k-1]);var n;e&&(null===(n=y.current)||void 0===n||n.scrollToItem(Z.indexOf(e)),document.activeElement&&document.activeElement.blur(),j.clear(),j.select([e]),g({groupId:e,navFocus:!0}))}),[h.gapFocus,h.navFocus,Z,k]),(0,Ve.v)("down, right",(()=>{let e;var n;"tail"!==h.gapFocus&&(h.gapFocus?e=h.gapFocus:h.navFocus&&(e=Z[k+1]),e&&(null===(n=y.current)||void 0===n||n.scrollToItem(Z.indexOf(e)),document.activeElement&&document.activeElement.blur(),j.clear(),j.select([e]),g({groupId:e,navFocus:!0})))}),[h.gapFocus,h.navFocus,Z,k]),{items:b,itemList:Z,itemListRef:y,itemListIndex:k,itemContext:C,selects:t,canEdit:a,groupId:m,groupItems:f,moveableRef:l,mentionListener:s,pageClipboard:w,pageSelector:j,state:h,setState:g,addSlide:P,navBlur:function(){h.navFocus&&(j.clear(),g({groupId:h.groupId}))},navBack:function(){if(h.groupId){g({groupId:void 0});const e=Z.indexOf(h.groupId);setTimeout((()=>{var n;return null===(n=y.current)||void 0===n?void 0:n.scrollToItem(e,"start")}),1)}}}}(),{navRef:Z,navStyle:I,itemHeight:w,showDivider:j,showInner:C,showInnerHeadbar:E,navContentRef:S,onTabFocus:F}=(0,nn.Z)(d),{canvasRef:M,canGoPrev:R,canGoNext:z,prevSlide:J,nextSlide:$,playable:_,play:Q}=(0,en.Z)(n,o,g),Y=(0,tn.Z)(),ee=(0,on.Z)(),ne=(0,rn.Z)();return(0,x.jsx)(q.Z,{source:"SlideEditor",children:(0,x.jsxs)(an,{children:[(0,x.jsxs)(V.ZP,{ref:Z,style:I,children:[(0,x.jsxs)(N.ZP,{children:[(0,x.jsx)(U.Z,{focus:!0===h.navFocus,count:n.length}),(0,x.jsxs)(N.Vm,{children:[c&&(0,x.jsx)(O.Z,{title:ee("add"),placement:"bottom",children:(0,x.jsx)(P.Z,{onClick:m,children:(0,x.jsx)(D.Z,{})})}),_&&(0,x.jsx)(O.Z,{title:Y("slideshow"),placement:"bottom",children:(0,x.jsx)(P.Z,{onClick:Q,children:(0,x.jsx)(L.Z,{color:"primary"})})})]})]}),(0,x.jsx)(A.d,{mouseEvent:"onMouseDown",onClickAway:f,children:(0,x.jsxs)(V.Mo,{ref:S,onFocus:F,children:[0===e.length&&(0,x.jsx)(G.Z,{}),(0,x.jsx)(y.Fo,{items:c?n:[],strategy:y.qw,children:(0,x.jsx)(K.Z,{listRef:t,itemContext:r,itemHeight:w,itemCount:e.length,item:pe,itemKey:(e,n)=>n.items[e].blockId,gap:24,style:{height:e.length>0?"100%":0}})})]})})]}),j&&(0,x.jsx)(k.iz,{}),(0,x.jsxs)(k.Nh,{ref:u,className:"selection","data-show":C,onMouseUp:v.onMouseUp,onMouseDown:e=>{const n=e.target;"DIV"===n.tagName&&n.className.includes("moveable")?e.stopPropagation():a.current.size>0&&v.clear(void 0,!0)},onTouchStart:()=>{a.current.size>0&&v.clear(void 0,!0)},children:[E&&(0,x.jsxs)(N.ZP,{children:[(0,x.jsx)(P.Z,{onClick:b,"aria-label":ne("back"),sx:{marginLeft:"-6px"},size:"small",children:(0,x.jsx)(H.Z,{fontSize:"small"})}),(0,x.jsxs)(N.Vm,{children:[(0,x.jsx)(P.Z,{onClick:J,"aria-label":ne("prev"),disabled:!R,children:(0,x.jsx)(T.Z,{})}),(0,x.jsx)(P.Z,{onClick:$,"aria-label":ne("next"),disabled:!z,children:(0,x.jsx)(B.Z,{})}),_&&(0,x.jsx)(O.Z,{title:Y("slideshow"),placement:"bottom",children:(0,x.jsx)(P.Z,{onClick:Q,children:(0,x.jsx)(L.Z,{color:"primary"})})})]})]}),d?(0,x.jsx)(Ae,{groupId:d,groupItems:s,pageClipboard:p,pageSelector:v,moveableRef:l,canvasRef:M,canvasWidth:r.dimension.width,canvasHeight:r.dimension.height}):(0,x.jsx)(W.Z,{})]})]})})}function dn(){const e=(0,tn.Z)();return(0,x.jsx)(o.D,{children:(0,x.jsx)(r.Q,{children:(0,x.jsx)(i.B,{children:(0,x.jsx)(c.M,{children:(0,x.jsx)(a.L,{children:(0,x.jsx)(d.x,{children:(0,x.jsx)(s.I,{children:(0,x.jsx)(l.T,{center:!0,unit:e("slide"),children:(0,x.jsx)(u.Z,{children:(0,x.jsxs)(p.Z,{children:[(0,x.jsx)(b,{}),(0,x.jsx)(cn,{})]})})})})})})})})})})}},75536:(e,n,t)=>{t.d(n,{Z:()=>a});var o=t(61113),r=t(3025),i=t(46417);function a(e){const n=(0,r.Z)();return(0,i.jsx)(o.Z,{variant:e.count>
11?"body2":void 0,color:e.focus?"text.secondary":"text.disabled",children:e.count>1?e.count+" "+n("slides"):n("slide")})}},51444:(e,n,t)=>{t.d(n,{Z:()=>s});var o,r=t(30168),i=t(53543),a=t(53320),c=t(46417);const d=a.Z.div(o||(o=(0,r.Z)(["\n position: absolute;\n * {\n pointer-events: none !important;\n }\n"])));function s(e){const{width:n,transform:t,background:o,paddingTop:r,paddingLeft:a,paddingRight:s,paddingBottom:l}=e.block.content.style||{};return(0,c.jsx)(d,{style:{width:n,transform:t,background:o,paddingTop:r,paddingLeft:a,paddingRight:s,paddingBottom:l},children:(0,c.jsx)(i.Z,{...e})})}},42848:(e,n,t)=>{t.d(n,{XD:()=>p,ZP:()=>h,aI:()=>v,lM:()=>u});var o,r,i,a=t(30168),c=t(53320),d=t(51444),s=t(7575),l=t(46417);const u=c.Z.div(o||(o=(0,a.Z)(["\n height: 100%;\n padding: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: auto;\n &:fullscreen {\n padding: 0;\n > div {\n overflow: hidden;\n }\n }\n"]))),p=c.Z.div(r||(r=(0,a.Z)(["\n background-color: ",";\n box-shadow: ",";\n aspect-ratio: 16 / 9;\n width: auto;\n height: auto;\n margin: auto;\n position: relative; // necessary for moveable bounds in editor\n"])),(e=>e.theme.vars.palette.background.paper),(e=>e.theme.vars.shadows[1])),v=c.Z.div(i||(i=(0,a.Z)(["\n transform-origin: top left;\n position: relative;\n"])));function h(e){const{style:n,zoom:t}=(0,s.Z)(e.canvasRef,e.canvasWidth,e.canvasHeight);return(0,l.jsx)(u,{ref:e.canvasRef,children:t&&(0,l.jsx)(p,{style:n,children:(0,l.jsx)(v,{style:{transform:"scale(".concat(t,")"),width:"".concat(e.canvasWidth,"px"),height:"".concat(e.canvasHeight,"px")},children:e.groupItems.map((e=>(0,l.jsx)(d.Z,{block:e.block,blockId:e.blockId},e.blockId)))})})})}},7575:(e,n,t)=>{t.d(n,{Z:()=>i});var o=t(27834),r=t(80123);function i(e,n,t){const{width:i,height:a}=(0,o.NB)({targetRef:e}),c=i?i/n:0,d=a?a/t:0,s=c&&d?r.tq?c:Math.min(c,d):void 0;return{style:r.tq||c<=d?{width:"100%"}:{height:"100%"},zoom:s}}},42810:(e,n,t)=>{t.d(n,{Z:()=>c});var o=t(47313),r=t(29434),i=t(51528),a=t(4491);function c(e,n,t){const c=(0,i.Z)(),d=(0,a.Z)();return(0,o.useCallback)((async(o,i)=>{d();const a=i.content.groupId||o,s=e.indexOf(a);n.current&&-1!==s&&(n.current.scrollToItem(s),t({groupId:a}),await(0,r.g)(100),c(o))}),[e,n,t,d,c])}},87129:(e,n,t)=>{t.d(n,{Z:()=>a});var o=t(47313),r=t(27834),i=t(40476);function a(e){var n;const{narrow:t}=(0,i.Z)(),a=(0,o.useRef)(null),c={width:t?"100%":"260px",display:t&&Boolean(e)?"none":void 0},{width:d}=(0,r.NB)({targetRef:a,handleHeight:!1,handleWidth:!0}),s=d||(null===(n=a.current)||void 0===n?void 0:n.clientWidth),l=(0,o.useRef)(null),u=s?(s-48)/(16/9)+24:0,p=(0,o.useCallback)((()=>{if(l.current){var n,t;if("BUTTON"===(null===(n=document.activeElement)||void 0===n?void 0:n.tagName))null===(t=l.current.querySelector("#".concat(e)))||void 0===t||t.focus();l.current.querySelectorAll("button").forEach((e=>{e.setAttribute("tabindex","-1")}))}}),[e]);return{navRef:a,navStyle:c,itemHeight:u,showDivider:!t,showInner:!t||Boolean(e),showInnerHeadbar:!!t&&Boolean(e),navContentRef:l,onTabFocus:p}}},40794:(e,n,t)=>{t.d(n,{Z:()=>a});var o=t(47313),r=t(57382),i=t(80123);function a(e,n,t){const[a,c]=(0,o.useState)(!1),d=(0,o.useRef)(null),s=n>0,l=n<e.length-1,u=(0,o.useCallback)((()=>{if(s){const o=e[n-1];t({groupId:o})}}),[s,e,n,t]),p=(0,o.useCallback)((()=>{if(l){const o=e[n+1];t({groupId:o})}}),[l,e,n,t]);return(0,r.v)("up, left",(()=>{document.fullscreenElement&&document.fullscreenElement===d.current&&u()}),[u]),(0,r.v)("down, right",(()=>{document.fullscreenElement&&document.fullscreenElement===d.current&&p()}),[p]),(0,o.useEffect)((()=>{const e=d.current;if(e&&a)return e.addEventListener("fullscreenchange",n),e.addEventListener("click",t),()=>{e.removeEventListener("fullscreenchange",n),e.removeEventListener("click",t)};function n(){c(Boolean(document.fullscreenElement))}function t(){p()}}),[a,p]),{canvasRef:d,canGoPrev:s,canGoNext:l,prevSlide:u,nextSlide:p,playable:!i.tq,play:()=>{null===d.current&&t({groupId:e[0]}),setTimeout((()=>{var e;return null===(e=d.current)||void 0===e?void 0:e.requestFullscreen()})),c(!0)}}}},3025:(e,n,t)=>{t.d(n,{Z:()=>i});var o=t(59302);const r={slide:{en:"Slide",zh:"\u6295\u5f71\u7247"},slides:{en:"slides",zh:"\u5f35\u6295\u5f71\u7247"},slideshow:{en:"Slideshow",zh:"\u6295\u5f71\u64ad\u653e"}}
1;function i(){const e=(0,o.Z)();return(0,o.I)((n=>r[n][e]),[e])}},96303:(e,n,t)=>{t.d(n,{F4:()=>i,lv:()=>a,oJ:()=>c});var o=t(20790);function r(e,n,t){const o={...e};return n.top+e.y<=t.top?o.y=t.top-n.top:n.bottom+e.y>=t.top+t.height&&(o.y=t.top+t.height-n.bottom),n.left+e.x<=t.left?o.x=t.left-n.left:n.right+e.x>=t.left+t.width&&(o.x=t.left+t.width-n.right),o}const i=e=>{let{containerNodeRect:n,draggingNodeRect:t,transform:o}=e;return t&&n?r(o,t,n):o},a=e=>{let{draggingNodeRect:n,transform:t,scrollableAncestorRects:o}=e;const i=o[0];return n&&i?r(t,n,i):t},c=e=>{let{activatorEvent:n,draggingNodeRect:t,transform:r}=e;if(t&&n){const e=(0,o.DC)(n);if(!e)return r;const i=e.x-t.left,a=e.y-t.top;return{...r,x:r.x+i-t.width/2,y:r.y+a-t.height/2}}return r}},77782:(e,n,t)=>{var o=t(64836);n.Z=void 0;var r=o(t(45045)),i=t(46417),a=(0,r.default)((0,i.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight");n.Z=a},36859:(e,n,t)=>{var o=t(64836);n.Z=void 0;var r=o(t(45045)),i=t(46417),a=(0,r.default)((0,i.jsx)("path",{d:"M21 11H6.83l3.58-3.59L9 6l-6 6 6 6 1.41-1.41L6.83 13H21z"}),"KeyboardBackspace");n.Z=a}}]);
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.