1"use strict";(self.webpackChunksmartfire=self.webpackChunksmartfire||[]).push([[214],{214(e,o,l){l.r(o);var n=l(5544),i=l(74888),t=l(81500),r=l(51387),a=l(70579);const s=()=>{const e=(0,i.useSmartProp)("links"),o=(0,n.A)(e,2),l=o[0],s=o[1],c=(0,i.useSmartProp)("media1Link"),d=(0,n.A)(c,2),u=d[0],v=d[1],h=(0,i.useSmartProp)("media2Link"),p=(0,n.A)(h,2),m=p[0],x=p[1],f=(0,i.useSmartProp)("media3Link"),S=(0,n.A)(f,2),A=S[0],j=S[1],y=(0,i.useSmartProp)("media4Link"),g=(0,n.A)(y,2),P=g[0],w=g[1],z=(0,i.useSmartProp)("media5Link"),C=(0,n.A)(z,2),b=C[0],k=C[1];function B(e,o,n){let i=[...l];i[e][n]=o,s(i)}return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.PanelBody,{title:"Settings",initialOpen:!0,children:(0,a.jsx)(t.PanelRow,{children:(0,a.jsx)(t.Button,{isPrimary:!0,onClick:()=>function(){const e=[...l];e.push({label:"Link",url:"#"}),s(e)}(),children:"Add a link"})})}),l&&l.length>0&&l.map((e,o)=>(0,a.jsxs)(t.PanelBody,{title:"Link "+(o+1),initialOpen:!1,children:[(0,a.jsx)(t.PanelRow,{children:(0,a.jsx)(t.TextControl,{label:"Label",value:e.label,onChange:e=>B(o,e,"label")})}),(0,a.jsx)(t.PanelRow,{children:(0,a.jsx)(t.TextControl,{label:"Url",value:e.url,onChange:e=>B(o,e,"url")})}),(0,a.jsx)(t.PanelRow,{children:(0,a.jsxs)(t.Button,{isPrimary:!0,onClick:()=>function(e){let o=[...l];o.splice(e,1),s(o)}(o),children:[(0,a.jsx)(r.A,{}),"Delete"]})})]},o)),(0,a.jsx)(t.PanelBody,{title:"Media 1",children:(0,a.jsx)(t.PanelRow,{children:(0,a.jsx)(t.TextControl,{label:"Url",value:u,onChange:e=>v(e)})})}),(0,a.jsx)(t.PanelBody,{title:"Media 2",children:(0,a.jsx)(t.PanelRow,{children:(0,a.jsx)(t.TextControl,{label:"Url",value:m,onChange:e=>x(e)})})}),(0,a.jsx)(t.PanelBody,{title:"Media 3",children:(0,a.jsx)(t.PanelRow,{children:(0,a.jsx)(t.TextControl,{label:"Url",value:A,onChange:e=>j(e)})})}),(0,a.jsx)(t.PanelBody,{title:"Media 4",children:(0,a.jsx)(t.PanelRow,{children:(0,a.jsx)(t.TextControl,{label:"Url",value:P,onChange:e=>w(e)})})}),(0,a.jsx)(t.PanelBody,{title:"Media 5",children:(0,a.jsx)(t.PanelRow,{children:(0,a.jsx)(t.TextControl,{label:"Url",value:b,onChange:e=>k(e)})})})]})},c=s;l.d(o,["Inspector",0,s,"default",0,c])},51387(e,o,l){var n=l(59662),i=l(70579);const t=(0,n.A)((0,i.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");l.d(o,["A",0,t])},6803(e,o,l){const n=l(67598).A;l.d(o,["A",0,n])},59662(e,o,l){l.d(o,{A:()=>y});var n=l(89379),i=l(41594),t=l(80045),r=l(5544),a=l(69292),s=l(98610),c=l(6803),d=l(74714),u=l(56262),v=l(6431),h=l(92532),p=l(30552);function m(e){return(0,p.Ay)("MuiSvgIcon",e)}(0,h.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var x=l(70579);const f=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],S=(0,d.A)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,o)=>{const l=e.ownerState;return[o.root,"inherit"!==l.color&&o["color".concat((0,c.A)(l.color))],o["fontSize".concat((0,c.A)(l.fontSize))]]}})((0,u.A)(e=>{var o,l,n,i,t,a,s,c,d,u,v,h,p,m,x;let f=e.theme;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:null===(o=f.transitions)||void 0===o||null===(l=o.create)||void 0===l?void 0:l.call(o,"fill",{duration:null===(n=(null!==(i=f.vars)&&void 0!==i?i:f).transitions)||void 0===n||null===(n=n.duration)||void 0===n?void 0:n.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:(null===(t=f.typography)||void 0===t||null===(a=t.pxToRem)||void 0===a?void 0:a.call(t,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:(null===(s=f.typography)||void 0===s||null===(c=s.pxToRem)||void 0===c?void 0:c.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:(null===(d=f.typography)||void 0===d||null===(u=d.pxToRem)||void 0===u?void 0:u.call(d,35))||"2.1875rem"}},...Object.entries((null!==(v=f.vars)&&void 0!==v?v:f).palette).filter(e=>{let o=(0,r.A)(e,2)[1];return o&&o.main}).map(e=>{var o,l;let n=(0,r.A)(e,1)[0];return{props:{color:n},style:{color:null===(o=(null!==(l=f.vars)&&void 0!==l?l:f).palette)||void 0===o||null===(o=o[n])||void 0===o?void 0:o.main}}}),{props:{color:"action"},style:{color:null===(h=(null!==(p=f.vars)&&void 0!==p?p:f).palette)||void 0===h||null===(h=h.action)||void 0===h?void 0:h.active}},{props:{color:"disabled"},style:{color:null===(m=(null!==(x=f.vars)&&void 0!==x?x:f).palette)||void 0===m||null===(m=m.action)||void 0===m?void 0:m.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),A=i.forwardRef(function(e,o){const l=(0,v.b)({props:e,name:"MuiSvgIcon"}),r=l.children,d=l.className,u=l.color,h=void 0===u?"inherit":u,p=l.component,A=void 0===p?"svg":p,j=l.fontSize,y=void 0===j?"medium":j,g=l.htmlColor,P=l.inheritViewBox,w=void 0!==P&&P,z=l.titleAccess,C=l.viewBox,b=void 0===C?"0 0 24 24":C,k=(0,t.A)(l,f),B=i.isValidElement(r)&&"svg"===r.type,R=(0,n.A)((0,n.A)({},l),{},{color:h,component:A,fontSize:y,instanceFontSize:e.fontSize,inheritViewBox:w,viewBox:b,hasSvgAsChild:B}),M={};
1w||(M.viewBox=b);const T=(e=>{const o=e.color,l=e.fontSize,n=e.classes,i={root:["root","inherit"!==o&&"color".concat((0,c.A)(o)),"fontSize".concat((0,c.A)(l))]};return(0,s.A)(i,m,n)})(R);return(0,x.jsxs)(S,(0,n.A)((0,n.A)((0,n.A)((0,n.A)({as:A,className:(0,a.A)(T.root,d),focusable:"false",color:g,"aria-hidden":!z||void 0,role:z?"img":void 0,ref:o},M),k),B&&r.props),{},{ownerState:R,children:[B?r.props.children:r,z?(0,x.jsx)("title",{children:z}):null]}))});A.muiName="SvgIcon";const j=A;function y(e,o){function l(l,i){return(0,x.jsx)(j,(0,n.A)((0,n.A)({"data-testid":"".concat(o,"Icon"),ref:i},l),{},{children:e}))}return l.muiName=j.muiName,i.memo(i.forwardRef(l))}}}]); 2//# sourceMappingURL=214.cae56c1e.chunk.js.map
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.