slice-machine-ui 1.26.1-beta.16 → 1.26.1-beta.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/404.html +1 -1
- package/out/_next/static/chunks/127-6451528762141246.js +1 -0
- package/out/_next/static/chunks/569-2ae3e9666f3bf991.js +1 -0
- package/out/_next/static/chunks/756-61dc56b98d01e964.js +10 -0
- package/out/_next/static/chunks/91-717d764a224ac07f.js +1 -0
- package/out/_next/static/chunks/pages/{_app-04b13497d540b990.js → _app-1af6bac51578f4f9.js} +2 -2
- package/out/_next/static/chunks/pages/changes-194f6cf187fa6ee7.js +1 -0
- package/out/_next/static/chunks/pages/custom-types/{[customTypeId]-5b08515fec5e6668.js → [customTypeId]-ff73a06702296c34.js} +1 -1
- package/out/_next/static/chunks/pages/{custom-types-75e8eddec659f440.js → custom-types-900b40b54b74e6d6.js} +1 -1
- package/out/_next/static/chunks/pages/{index-eb0fb97f03c26ecd.js → index-ccd2975faba412f6.js} +1 -1
- package/out/_next/static/chunks/pages/page-types/{[pageTypeId]-41fc6d4f726fdfb9.js → [pageTypeId]-30d471f6127ebed7.js} +1 -1
- package/out/_next/static/css/22f264c93bd9d85f.css +1 -0
- package/out/_next/static/css/a686f7612f1943ed.css +1 -0
- package/out/_next/static/css/e5745b5b0494af29.css +1 -0
- package/out/_next/static/{QvZVje-xYRnZnbmBltH-r → m-POB_95fBBc6ieAhdxIq}/_buildManifest.js +1 -1
- package/out/changelog.html +1 -1
- package/out/changes.html +1 -1
- package/out/custom-types/[customTypeId].html +1 -1
- package/out/custom-types.html +1 -1
- package/out/index.html +1 -1
- package/out/labs.html +1 -1
- package/out/page-types/[pageTypeId].html +1 -1
- package/out/settings.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
- package/out/slices.html +1 -1
- package/package.json +4 -4
- package/src/components/BlankSlate/BlankSlate.module.css +74 -0
- package/src/components/BlankSlate/BlankSlate.module.css.d.ts +13 -0
- package/src/components/BlankSlate/BlankSlate.tsx +1 -1
- package/out/_next/static/chunks/127-05b868d599a65e35.js +0 -1
- package/out/_next/static/chunks/453-b316fb518939c1f8.js +0 -1
- package/out/_next/static/chunks/756-2582778cc77454f9.js +0 -10
- package/out/_next/static/chunks/91-01fb8f8c23867b35.js +0 -1
- package/out/_next/static/chunks/pages/changes-7e35ed96a4222f5e.js +0 -1
- package/out/_next/static/css/1df6702d0ca462a4.css +0 -1
- package/out/_next/static/css/4539a57f192decab.css +0 -1
- package/out/_next/static/css/b65748eaa6f70ab6.css +0 -1
- package/src/components/BlankSlate/BlankSlate.css.ts +0 -96
- /package/out/_next/static/{QvZVje-xYRnZnbmBltH-r → m-POB_95fBBc6ieAhdxIq}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[91],{840:function(e,n,r){"use strict";r.d(n,{F:function(){return A}});var t=r(52322),s=r(22715),a=r(97729),i=r.n(a),l=r(2784),c=r(41730),o=r(8564),d=r(78656),u=r(76478),f=r(24448),h=r(5632),x=r(2754),p=r(67557),m=r(50002),j=r(6277);r(36332);var g=function(e){var n=e.children;return(0,t.jsx)("div",{className:"_1ecs97dffi _1ecs97dffn _1ecs97d3j4 _1ecs97d3qh _1ecs97dfh9 _1ecs97dfil _1ecs97dfiz _1ecs97dfg9",children:(0,t.jsx)("table",{className:"gdfsm51 _1ecs97dffi _1ecs97dffn _1ecs97dfk8 _1ecs97dfle",children:n})})},C=(0,l.createContext)("body");function v(){return(0,l.useContext)(C)}var b=function(e){var n=e.children;return(0,t.jsx)(C.Provider,{value:"head",children:(0,t.jsx)("thead",{className:"gdfsm52 _1ecs97dffi _1ecs97dffn _1ecs97d18 _1ecs97d8l",children:n})})},_=function(e){var n=e.children;return(0,t.jsx)(C.Provider,{value:"body",children:(0,t.jsx)("tbody",{className:"gdfsm53 _1ecs97dffi _1ecs97dffn",children:n})})},y=function(e){var n,r=e.children,s=e.onClick,a=v();return(0,t.jsx)("tr",{className:(0,j.W)("_1ecs97dffi _1ecs97dffn _1ecs97dfnk",(n={},(0,p.Z)(n,"_1ecs97dfkk",!!s),(0,p.Z)(n,"_1ecs97dm _1ecs97d7z _1ecs97d3c _1ecs97dap _1ecs97d2w _1ecs97da9 _1ecs97dfnn _1ecs97dfzr _1ecs97dfgv _1ecs97dfzu","body"===a),n)),onClick:function(e){var n,r=e.target;if(s&&e.currentTarget.contains(r)){var t=(0,m.JY)(r);(null===(n=null==t?void 0:t.contains(e.currentTarget))||void 0===n||n)&&s(e)}},children:r})},S=function(e){var n=e.children,r=v();return(0,t.jsx)("head"===r?"th":"td",{className:"gdfsm55 _1ecs97dffi _1ecs97dffn _1ecs97d3j4 _1ecs97d3qh _1ecs97dfiz _1ecs97dffj _1ecs97dah2 _1ecs97daof _1ecs97dfko _1ecs97dfy1",children:(0,t.jsx)("div",{className:"gdfsm56 _1ecs97dffi _1ecs97dffk",children:n})})},w=function(){return(0,t.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M8 28H24C25.1046 28 26 27.1046 26 26V9L21 4H8C6.89543 4 6 4.89543 6 6V26C6 27.1046 6.89543 28 8 28Z",fill:"#6E56CF"}),(0,t.jsx)("path",{d:"M23 9H26L21 4V7C21 8.10457 21.8954 9 23 9Z",fill:"#9E8CFC"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.0912 12C13.2794 12 11 14.2794 11 17.0912C11 19.903 13.2794 22.1824 16.0912 22.1824C17.9763 22.1824 19.6215 21.1577 20.501 19.6372C20.6563 19.3688 20.7878 19.0849 20.8926 18.7883C20.9846 18.5279 20.8482 18.2422 20.5878 18.1502C20.3275 18.0582 20.0418 18.1947 19.9498 18.455C19.8657 18.693 19.7601 18.9209 19.6354 19.1365C18.9273 20.3606 17.6049 21.1824 16.0912 21.1824C13.8317 21.1824 12 19.3507 12 17.0912C12 14.8317 13.8317 13 16.0912 13C17.4478 13 18.6507 13.66 19.3955 14.6782H17.6216C17.3455 14.6782 17.1216 14.9021 17.1216 15.1782C17.1216 15.4544 17.3455 15.6782 17.6216 15.6782H20.2998C20.576 15.6782 20.7998 15.4544 20.7998 15.1782V12.5C20.7998 12.2239 20.576 12 20.2998 12C20.0237 12 19.7998 12.2239 19.7998 12.5V13.6032C18.8717 12.6167 17.5536 12 16.0912 12Z",fill:"white"})]})},k=function(){return(0,t.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M8 28H24C25.1046 28 26 27.1046 26 26V9L21 4H8C6.89543 4 6 4.89543 6 6V26C6 27.1046 6.89543 28 8 28Z",fill:"#6E56CF"}),(0,t.jsx)("path",{d:"M23 9H26L21 4V7C21 8.10457 21.8954 9 23 9Z",fill:"#9E8CFC"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.0869 14.6818L14.6627 12.3787C14.7183 12.1561 14.9183 12 15.1477 12C15.473 12 15.7117 12.3057 15.6328 12.6213L15.1177 14.6818H17.7232L18.299 12.3787C18.3547 12.1561 18.5547 12 18.7841 12C19.1094 12 19.3481 12.3057 19.2692 12.6213L18.754 14.6818H21C21.2761 14.6818 21.5 14.9057 21.5 15.1818C21.5 15.458 21.2761 15.6818 21 15.6818H18.504L17.8449 18.3182H20C20.2761 18.3182 20.5 18.542 20.5 18.8182C20.5 19.0943 20.2761 19.3182 20 19.3182H17.5949L17.0192 21.6213C16.9635 21.8439 16.7635 22 16.5341 22C16.2088 22 15.9701 21.6943 16.049 21.3787L16.5642 19.3182H13.9586L13.3828 21.6213C13.3272 21.8439 13.1272 22 12.8977 22C12.5724 22 12.3338 21.6943 12.4127 21.3787L12.9278 19.3182H11C10.7239 19.3182 10.5 19.0943 10.5 18.8182C10.5 18.542 10.7239 18.3182 11 18.3182H13.1778L13.8369 15.6818H12C11.7239 15.6818 11.5 15.458 11.5 15.1818C11.5 14.9057 11.7239 14.6818 12 14.6818H14.0869ZM16.8142 18.3182L17.4732 15.6818H14.8677L14.2086 18.3182H16.8142Z",fill:"white"})]})},L=r(67445),Z=r(54845),T=r(22710),H=r(99267),I=r(18566),R=r(56580),N=r(15354),V=r(52312),z=r(81038),M=r(28849);function E(e){return F.apply(this,arguments)}function F(){return(F=(0,T.Z)(function(e){var n,r,t;return(0,H.__generator)(this,function(s){switch(s.label){case 0:return[4,z.j.customTypes.readAllCustomTypes({format:e})];case 1:if(r=(n=s.sent()).errors,t=n.models,r.length>0)throw r;return[2,t.map(function(e){return e.model})]}})})).apply(this,arguments)}var P=function(e){var n,r,a,i,c,o,u=e.format,f=e.isCreatingCustomType,p=e.openCreateCustomTypeModal,m=(0,h.useRouter)(),j=(r=(0,l.useCallback)(function(e){return(0,I.VA)(E,[u],e)},[u]),{customTypes:(0,I.QT)(E,[u]),updateCustomTypes:r}),C=j.customTypes,v=j.updateCustomTypes,T=C.sort(function(e,n){return e.id.localeCompare(n.id)}),H=L.cd[u],z=d.$[u];return(o=(0,R.v9)(function(e){return{storeCustomTypes:(0,M.Ch)(e).filter(V.TG)}}).storeCustomTypes,(0,l.useEffect)(function(){var e=o.filter(function(e){return e.local.format===u});(e.length!==C.length||e.some(function(e){var n=C.find(function(n){return n.id===e.local.id});return!n||JSON.stringify(N.Dc.fromSM(e.local))!==JSON.stringify(n)}))&&v(e.map(function(e){var n=e.local;return N.Dc.fromSM(n)}))},[u,v,C,o]),0===T.length)?(0,t.jsxs)(x.R$,{"data-testid":"blank-slate",style:{alignSelf:"center",marginTop:s.TV.size[72]},children:[(0,t.jsx)(x.u2,{children:(0,t.jsx)(s.Ee,{src:H.blankSlateImage,sizing:"cover"})}),(0,t.jsxs)(x.T9,{children:[(0,t.jsx)(x._T,{children:z.name({start:!0,plural:!0})}),(0,t.jsx)(x.nf,{children:z.blankSlateDescription}),(0,t.jsx)(x.Qj,{children:(0,t.jsx)(s.zx,{onClick:p,loading:f,children:"Create"})})]})]}):(0,t.jsxs)(g,{children:[(0,t.jsx)(b,{children:(0,t.jsxs)(y,{children:[(0,t.jsx)(S,{children:(0,t.jsx)(s.I5,{name:"notes",size:"medium"})}),(0,t.jsx)(S,{children:"Label"}),(0,t.jsx)(S,{children:"API ID"}),(0,t.jsx)(S,{children:"Limit"}),(0,t.jsx)(S,{})]})}),(0,t.jsx)(_,{children:T.map(function(e){var n=e.repeatable,r=e.label,s=e.id;return(0,t.jsxs)(y,{onClick:function(){m.push(L.cd[u].getBuilderPagePathname(s))},children:[(0,t.jsx)(S,{children:n?(0,t.jsx)(w,{}):(0,t.jsx)(k,{})}),(0,t.jsx)(S,{children:r}),(0,t.jsx)(S,{children:s}),(0,t.jsx)(S,{children:n?"Reusable":"Single"}),(0,t.jsx)(S,{children:(0,t.jsx)(Z._,{isChangesLocal:!1,format:u,customType:e})})]},s)})})]})},A=function(e){var n=e.format,r=d.$[n],a=(0,l.useState)(!1),h=a[0],x=a[1],p=(0,l.useState)(!1),m=p[0],j=p[1];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i(),{children:(0,t.jsxs)("title",{children:[r.name({start:!0,plural:!0})," - Slice Machine"]})}),(0,t.jsx)(o.S,{renderError:function(){return(0,t.jsx)(u.LN,{children:(0,t.jsx)(u.RN,{children:(0,t.jsx)(s.xu,{alignItems:"center",justifyContent:"center",children:(0,t.jsx)(s.Iq,{title:"Request failed",description:"An error occurred while fetching your ".concat(r.name({start:!1,plural:!0}),".")})})})})},children:(0,t.jsx)(l.Suspense,{fallback:(0,t.jsxs)(u.LN,{children:[(0,t.jsxs)(u.wd,{children:[(0,t.jsx)(u.Cx,{children:(0,t.jsx)(c.g,{children:r.name({start:!0,plural:!0})})}),(0,t.jsx)(u.K2,{children:(0,t.jsx)(s.zx,{disabled:!0,startIcon:"add",children:"Create"})})]}),(0,t.jsx)(u.RN,{children:(0,t.jsx)(s._3,{})})]}),children:(0,t.jsxs)(u.LN,{children:[(0,t.jsxs)(u.wd,{children:[(0,t.jsx)(u.Cx,{children:(0,t.jsx)(c.g,{children:r.name({start:!0,plural:!0})})}),(0,t.jsx)(u.K2,{children:(0,t.jsx)(s.zx,{"data-testid":"create-ct",loading:h,onClick:function(){j(!0)},startIcon:"add",children:"Create"})})]}),(0,t.jsx)(u.RN,{children:(0,t.jsxs)(s.xu,{flexDirection:"column",children:[(0,t.jsx)(P,{format:n,isCreatingCustomType:h,openCreateCustomTypeModal:function(){j(!0)}}),(0,t.jsx)(f.M,{format:n,isCreating:h,isOpen:m,onCreateChange:x,onOpenChange:j})]})})]})})})]})}},98898:function(e,n,r){"use strict";r.d(n,{Z:function(){return o}});var t=r(62230),s=r(85244),a=r(98240),i=r(52322);r(2784);var l=r(75289),c=function(e){var n=e.bg,r=e.background,s=e.sx,a=e.withRadius,c=e.radius,o=e.children;return(0,i.jsx)(l.xu,{sx:(0,t.Z)({p:4,bg:n||r},a?{borderBottomLeftRadius:c,borderBottomRightRadius:c}:null,s),children:o})},o=function(e){var n=e.Header,r=void 0===n?null:n,o=e.SubHeader,d=void 0===o?null:o,u=e.Body,f=void 0===u?null:u,h=e.Footer,x=void 0===h?null:h,p=e.borderFooter,m=e.radius,j=void 0===m?"6px":m,g=e.bodySx,C=e.footerSx,v=e.sx,b=e.bg,_=e.background,y=e.children,S=(0,a.Z)(e,["Header","SubHeader","Body","Footer","borderFooter","radius","bodySx","footerSx","sx","bg","background","children"]);return(0,i.jsxs)(l.Zb,(0,s.Z)((0,t.Z)({sx:(0,t.Z)({border:function(e){var n;return"1px solid ".concat(String(null===(n=e.colors)||void 0===n?void 0:n.borders))},borderRadius:j},void 0===v?null:v)},S),{children:[r?(0,i.jsx)(r,{radius:j}):null,d?(0,i.jsx)(d,{radius:j}):null,(0,i.jsxs)(c,{bg:b,background:_,sx:void 0===g?{}:g,withRadius:!x,children:[f?(0,i.jsx)(f,{}):null,y||null]}),x?(0,i.jsx)(c,{bg:b,background:_,sx:(0,t.Z)({},void 0!==p&&p?{borderTop:function(e){var n=e.colors;return"1px solid ".concat(String(null==n?void 0:n.borders))}}:null,void 0===C?{}:C),radius:j,withRadius:!0,children:"object"==typeof x?x:(0,i.jsx)(x,{})}):null]}))}},24448:function(e,n,r){"use strict";r.d(n,{M:function(){return I}});var t=r(22710),s=r(62230),a=r(85244),i=r(99267),l=r(52322),c=r(5632),o=r(2784),d=r(56580),u=r(75289),f=r(91061),h=r(88932),x=r(82770),p=r(6777),m=r(78656);function j(){return(j=(0,t.Z)(function(e){var n,r,t,s,a,l,c,o,d,u;return(0,i.__generator)(this,function(i){switch(i.label){case 0:n=e.id,r=e.label,t=e.repeatable,s=e.format,a=e.onSuccess,l=m.$[s],c=(0,f.Ue)({id:n,label:r,repeatable:t,format:s}),i.label=1;case 1:return i.trys.push([1,4,,5]),[4,(0,x.KA)(c)];case 2:if((o=i.sent().errors).length>0)throw o;return x.Xe.track({event:"custom-type:created",id:c.id,name:r,format:s,type:t?"repeatable":"single",origin:"table"}),[4,a(c)];case 3:return i.sent(),h.Am.success((0,p.GX)({message:"".concat(l.name({start:!0,plural:!1})," saved successfully at "),path:"./customtypes/".concat(c.id,"/index.json")})),[3,5];case 4:return d=i.sent(),u="Internal Error: ".concat(l.name({start:!0,plural:!1})," not saved"),console.error(u,d),h.Am.error(u),[3,5];case 5:return[2]}})})).apply(this,arguments)}var g=r(67445),C=r(50950),v=r(6134),b=r(63094),_=r(17384),y=r(28849),S=r(90374),w=r(36960),k=r(17064),L=r(63397),Z=r(98240),T=function(e){var n=e.selected,r=(0,Z.Z)(e,["selected"]);return(0,l.jsx)(u.kC,(0,s.Z)({sx:{p:"24px",mb:3,alignItems:"top",cursor:"pointer",borderRadius:"6px",backgroundColor:"grayLight",boxShadow:n?function(e){var n;return"0 0 0 2px ".concat(String(null===(n=e.colors)||void 0===n?void 0:n.primary))}:"none","&:hover":{boxShadow:function(e){var n;return"0 0 0 2px ".concat(String(null===(n=e.colors)||void 0===n?void 0:n.primary))}}}},r))},H=function(e){var n=e.format,r=(0,k.Z)((0,L.U$)("repeatable"),3),t=r[0],s=r[2],a=m.$[n];return(0,l.jsxs)(u.xu,{mb:2,children:[(0,l.jsxs)(T,{selected:t.value,onClick:function(){return s.setValue(!0)},children:[(0,l.jsx)(u.Y8,{checked:t.value,onChange:function(){},"data-testid":"repeatable-type-radio-btn"}),(0,l.jsxs)(u.xu,{sx:{marginLeft:2},children:["Reusable type",(0,l.jsx)(u.xu,{as:"p",sx:{fontSize:"12px",color:"textClear",mt:1},children:a.hintRepeatable})]})]}),(0,l.jsxs)(T,{selected:!t.value,onClick:function(){return s.setValue(!1)},children:[(0,l.jsx)(u.Y8,{checked:!t.value,onChange:function(){},"data-testid":"single-type-radio-btn"}),(0,l.jsxs)(u.xu,{sx:{marginLeft:2},children:["Single type",(0,l.jsx)(u.xu,{as:"p",sx:{fontSize:"12px",color:"textClear",mt:1},children:a.hintSingle})]})]})]})},I=function(e){var n,r=e.format,h=e.isCreating,x=e.isOpen,p=e.origin,k=void 0===p?"table":p,L=e.onCreateChange,Z=e.onOpenChange,T=(0,S.Z)().createCustomTypeSuccess,I=(0,d.v9)(function(e){return{customTypeIds:(0,y.W6)(e),customTypeLabels:(0,y.YS)(e)}}),R=I.customTypeIds,N=I.customTypeLabels,V=m.$[r],z=(0,o.useState)(!0),M=z[0],E=z[1],F=(0,C.g)().syncChanges,P=(0,c.useRouter)(),A=(n=(0,t.Z)(function(e){var n,s,a;return(0,i.__generator)(this,function(l){switch(l.label){case 0:var c;return n=e.id,s=e.label,a=e.repeatable,L(!0),[4,function(e){return j.apply(this,arguments)}({format:r,id:n,label:s,origin:k,repeatable:a,onSuccess:(c=(0,t.Z)(function(e){var r,t;return(0,i.__generator)(this,function(s){switch(s.label){case 0:return T(e),r=(0,f.y6)(e),t=g.cd[r],E(!0),[4,P.push({pathname:t.getBuilderPagePathname(n),query:"page"===e.format?{newPageType:!0}:void 0})];case 1:return s.sent(),F(),[2]}})}),function(e){return c.apply(this,arguments)})})];case 1:return l.sent(),L(!1),Z(!1),[2]}})}),function(e){return n.apply(this,arguments)}),D=function(e,n,r){r(M?(0,a.Z)((0,s.Z)({},n),{label:e.target.value,id:(0,_.lV)(e.target.value)}):(0,a.Z)((0,s.Z)({},n),{label:e.target.value}))},O=function(e,n){n("id",e.target.value),E(!1)};return(0,l.jsx)(v.Z,{testId:"create-ct-modal",isOpen:x,widthInPx:"530px",formId:"create-custom-type",buttonLabel:"Create",close:function(){Z(!1),E(!0)},onSubmit:function(e){A(e)},isLoading:h,initialValues:{repeatable:!0,id:"",label:""},validate:function(e){var n=e.id,r=e.label,t={};return r&&r.length||(t.label="Cannot be empty."),!t.label&&N.includes(r)&&(t.label="".concat(V.name({start:!0,plural:!1})," name is already taken.")),n&&n.length||(t.id="ID cannot be empty."),t.id||!n||b.xo.exec(n)||(t.id="Invalid id: No special characters allowed."),!t.id&&n&&R.map(function(e){return e.toLowerCase()}).includes(n)&&(t.id='ID "'.concat(n,'" exists already.')),Object.keys(t).length>0?t:void 0},content:{title:"Create a new ".concat(V.name({start:!1,plural:!1}))},children:function(e){var n=e.errors,t=e.setValues,s=e.setFieldValue,a=e.values,i=e.touched;return(0,l.jsxs)(u.xu,{children:[(0,l.jsx)(H,{format:r}),(0,l.jsx)(w.W,{name:"label",label:"".concat(V.name({start:!0,plural:!1})," Name"),testId:"ct-name-input",placeholder:"A display name for the ".concat(V.name({start:!1,plural:!1})),error:i.label?n.label:void 0,onChange:function(e){return D(e,a,t)}}),(0,l.jsx)(w.W,{name:"id",testId:"ct-id-input",label:"".concat(V.name({start:!0,plural:!1})," ID"),placeholder:V.inputPlaceholder,error:i.id?n.id:void 0,onChange:function(e){return O(e,s)}})]})}})}},63094:function(e,n,r){"use strict";r.d(n,{Sn:function(){return l},lS:function(){return t},nG:function(){return s},pq:function(){return c},rd:function(){return i},xo:function(){return a}});var t=["components"],s=["png","jpg","jpeg"],a=/^[A-Za-z0-9]+(?:_[A-Za-z0-9]+)*$/,i="placeholders/What_are_Slices_mrvome",l="SM_HELP_VIDEOS/mock_data",c="slice-machine-simulator"},36332:function(){}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[849],{21985:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/changes",function(){return t(80369)}])},2754:function(e,n,t){"use strict";t.d(n,{R$:function(){return u},Qj:function(){return p},T9:function(){return h},nf:function(){return f},u2:function(){return d},_T:function(){return x}});var i=t(67557),r=t(62230),s=t(85244),o=t(98240),c=t(52322),l=t(22715),a=t(6277);t(69143);var u=function(e){var n=e.backgroundImage,t=e.style,l=(0,o.Z)(e,["backgroundImage","style"]),u=void 0!==n;return(0,c.jsx)("article",(0,s.Z)((0,r.Z)({},l),{className:(0,a.W)("_18bjhbz0 _1ecs97dffi _1ecs97dffj _1ecs97dffk _1ecs97dfft _1ecs97dfze _1ecs97dfzg _1ecs97dfzi _1ecs97d3j4 _1ecs97d3qh _1ecs97dfh9 _1ecs97dfil _1ecs97dfiz _1ecs97dfg7",(0,i.Z)({},"_18bjhbz1 _1ecs97dfgf _1ecs97dfle",u)),style:(0,r.Z)({backgroundImage:u?"url(".concat(n,")"):void 0},t)}))},d=function(e){return(0,c.jsx)("div",(0,s.Z)((0,r.Z)({},e),{className:"_1ecs97dffi _1ecs97dffj _1ecs97dffk _1ecs97dfft _1ecs97d6yk _1ecs97d75x _1ecs97dfir _1ecs97dfj3 _1ecs97dfg7"}))},h=function(e){return(0,c.jsx)("div",(0,s.Z)((0,r.Z)({},e),{className:"_18bjhbz3 _1ecs97dffi _1ecs97dffj _1ecs97dffk _1ecs97dfft _1ecs97dfwe"}))},x=function(e){return(0,c.jsx)(l.xv,(0,s.Z)((0,r.Z)({},e),{className:"_18bjhbz4"}))},f=function(e){return(0,c.jsx)(l.xv,(0,s.Z)((0,r.Z)({},e),{className:"_18bjhbz5",color:"grey11"}))},p=function(e){return(0,c.jsx)("div",(0,s.Z)((0,r.Z)({},e),{className:"_18bjhbz6 _1ecs97dffi _1ecs97dffq _1ecs97dffj _1ecs97dffk _1ecs97dfpo _1ecs97dfu4",color:"grey"}))}},80441:function(e,n,t){"use strict";t.d(n,{Q:function(){return x}});var i=t(22710),r=t(99267);let s={GitHub:"gitHub"};var o=t(62230),c=t(85244),l=t(52322),a=function(e){return(0,l.jsx)("svg",(0,c.Z)((0,o.Z)({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),{children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.77596 5.47599C4.84147 5.44648 4.91265 5.43167 4.9845 5.4326L19.3525 5.43506C19.4243 5.43413 19.4955 5.44894 19.561 5.47845C19.6265 5.50796 19.6848 5.55146 19.7317 5.60588C19.7786 5.6603 19.8131 5.72433 19.8326 5.79348C19.8521 5.86262 19.8563 5.93521 19.8448 6.00614L19.1802 10.0751H9.71803L10.5722 14.6018H11.1162L11.1162 14.6018H13.7846L14.56 10.0751H19.1803L17.7575 18.8357C17.7387 18.9522 17.6786 19.058 17.5882 19.1339C17.4979 19.2098 17.3832 19.2507 17.2652 19.2492H7.23692C7.2134 19.249 7.19001 19.2476 7.16682 19.2449C7.03392 19.2298 6.90803 19.175 6.80603 19.0868C6.68704 18.9851 6.60772 18.8448 6.58203 18.6904L4.49219 6.00367C4.48069 5.93275 4.48485 5.86016 4.50438 5.79102C4.52392 5.72187 4.55835 5.65784 4.60527 5.60342C4.65218 5.54899 4.71044 5.5055 4.77596 5.47599Z",fill:"currentColor"})}))},u=function(e){return(0,l.jsx)("svg",(0,c.Z)((0,o.Z)({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),{children:(0,l.jsx)("path",{d:"M12 4C7.57486 4 4 7.57486 4 12C4 15.5246 6.30057 18.5257 9.47429 19.6C9.87429 19.6754 10.0251 19.4251 10.0251 19.2251V17.8754C7.8 18.3497 7.32457 16.8 7.32457 16.8C6.94971 15.8743 6.42514 15.6251 6.42514 15.6251C5.70057 15.1246 6.47543 15.1497 6.47543 15.1497C7.27543 15.2 7.69943 15.9749 7.69943 15.9749C8.42514 17.2 9.57486 16.8503 10.0251 16.6491C10.1006 16.1246 10.2994 15.7749 10.5246 15.5749C8.74971 15.3749 6.87543 14.6754 6.87543 11.6251C6.87543 10.7497 7.17486 10.0503 7.69943 9.47543C7.62514 9.27543 7.34971 8.45029 7.77486 7.34971C7.77486 7.34971 8.44914 7.12457 9.97486 8.17486C10.6266 7.99627 11.2991 7.90405 11.9749 7.90057C12.6491 7.90057 13.3497 8 13.9749 8.17486C15.5006 7.14971 16.1749 7.34971 16.1749 7.34971C16.6 8.45029 16.3246 9.27543 16.2503 9.47543C16.776 10.024 17.0754 10.7497 17.0754 11.624C17.0754 14.6994 15.2 15.3749 13.4251 15.5749C13.6994 15.8251 13.9749 16.2994 13.9749 17.0491V19.2503C13.9749 19.4754 14.1246 19.7246 14.5246 19.6251C17.7006 18.5246 20 15.5246 20 12C20 7.57486 16.4251 4 12 4Z",fill:"currentColor"})}))},d=function(e){return(0,l.jsx)("svg",(0,c.Z)((0,o.Z)({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),{children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.7881 10.5954L16.5431 5.20756C16.6328 4.93081 17.0594 4.93081 17.1492 5.20756L18.9076 10.5954H14.7881ZM6.6192 5.20756L4.86353 10.5954H8.97968L7.22468 5.20756C7.1349 4.93081 6.70898 4.93081 6.6192 5.20756ZM4.0299 13.2981L4.86352 10.5954H4.86353H8.979H14.7881H18.9076L19.7392 13.2981C19.7796 13.4207 19.7802 13.553 19.7408 13.676C19.7014 13.799 19.624 13.9063 19.5198 13.9826L11.893 19.5257L11.8879 19.5319L11.8923 19.5378L11.8865 19.5336L11.8835 19.5371L11.8852 19.5326L4.24927 13.9826C4.0299 13.8246 3.95092 13.5458 4.0299 13.2981Z",fill:"currentColor"})}))},h=t(81038),x={gitHub:{connect:(0,i.Z)(function(){return(0,r.__generator)(this,function(e){switch(e.label){case 0:return[4,f("gitHub")];case 1:return[2,e.sent()]}})}),Icon:u,name:"GitHub",supported:m("gitHub")},bitbucket:{connect:(0,i.Z)(function(){return(0,r.__generator)(this,function(e){switch(e.label){case 0:return[4,f("bitbucket")];case 1:return[2,e.sent()]}})}),Icon:a,name:"Bitbucket",supported:m("bitbucket")},gitLab:{connect:(0,i.Z)(function(){return(0,r.__generator)(this,function(e){switch(e.label){case 0:return[4,f("gitLab")];case 1:return[2,e.sent()]}})}),Icon:d,name:"GitLab",supported:m("gitLab")}};function f(e){return p.apply(this,arguments)}function p(){return(p=(0,i.Z)(function(e){var n;return(0,r.__generator)(this,function(t){switch(t.label){case 0:if(!m(e))throw Error("Not implemented.");return[4,h.j.git.getProviderAppInstallURL({provider:e})];case 1:return n=t.sent(),window.open(n,"git-provider-app-installation"),[2]}})})).apply(this,arguments)}function m(e){return Boolean(Object.values(s).includes(e))}},75499:function(e,n,t){"use strict";t.d(n,{G:function(){return a}});var i=t(22710),r=t(17064),s=t(99267),o=t(18566),c=t(19334),l=t(81038);function a(){var e,n,t=(0,r.Z)((0,c.f)(),1)[0];return{linkedGitRepos:(0,o.QT)(u,[t.repositoryName]),linkRepo:(e=(0,i.Z)(function(e){return(0,s.__generator)(this,function(n){switch(n.label){case 0:return[4,l.j.git.linkRepo({prismic:{domain:t.repositoryName},git:e})];case 1:return n.sent(),[4,(0,o.gw)(u,[t.repositoryName])];case 2:return n.sent(),[2]}})}),function(n){return e.apply(this,arguments)}),unlinkRepo:(n=(0,i.Z)(function(e){return(0,s.__generator)(this,function(n){switch(n.label){case 0:return[4,l.j.git.unlinkRepo({prismic:{domain:t.repositoryName},git:e})];case 1:return n.sent(),[4,(0,o.gw)(u,[t.repositoryName])];case 2:return n.sent(),[2]}})}),function(e){return n.apply(this,arguments)})}}function u(e){return d.apply(this,arguments)}function d(){return(d=(0,i.Z)(function(e){return(0,s.__generator)(this,function(n){switch(n.label){case 0:return[4,l.j.git.fetchLinkedRepos({prismic:{domain:e}})];case 1:return[2,n.sent()]}})})).apply(this,arguments)}},19334:function(e,n,t){"use strict";t.d(n,{f:function(){return c}});var i=t(22710),r=t(99267),s=t(18566),o=t(81038);function c(){var e,n=(0,s.QT)(l,[]),t=(e=(0,i.Z)(function(e){return(0,r.__generator)(this,function(n){switch(n.label){case 0:return[4,o.j.project.writeSliceMachineConfig({config:e})];case 1:return n.sent(),(0,s.VA)(l,[],e),[2]}})}),function(n){return e.apply(this,arguments)});return[n,t]}function l(){return a.apply(this,arguments)}function a(){return(a=(0,i.Z)(function(){return(0,r.__generator)(this,function(e){return[2,o.j.project.getSliceMachineConfig()]})})).apply(this,arguments)}},34226:function(e,n,t){"use strict";t.d(n,{z:function(){return d}});var i=t(62230),r=t(85244),s=t(98240),o=t(52322),c=t(2784),l=t(75289),a=function(e,n){return e?"".concat(e,"-").concat(n):""},u=function(e){switch(e){case"white":case"secondaryMedium":case"secondarySmall":case"secondary":return"#1A1523";default:return"grey01"}},d=(0,c.forwardRef)(function(e,n){var t=e.label,c=e.Icon,d=e.type,h=e.form,x=e.isLoading,f=void 0!==x&&x,p=e.disabled,m=e.onClick,g=e.sx,j=e.iconSize,v=void 0===j?16:j,y=e.iconFill,b=e.variant,C=void 0===b?"primary":b,_=(0,s.Z)(e,["label","Icon","type","form","isLoading","disabled","onClick","sx","iconSize","iconFill","variant"]);return(0,o.jsx)(l.zx,(0,r.Z)((0,i.Z)({ref:n,sx:(0,i.Z)((0,r.Z)((0,i.Z)({},void 0===g?{}:g),{display:"flex",alignItems:"center",justifyContent:"center",gap:"8px"}),f?{cursor:"wait !important"}:{}),type:d,form:h,disabled:void 0!==p&&p||f,onClick:f?void 0:m,variant:C},_),{children:f?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.$j,{size:v,color:u(C),"data-testid":a(_["data-testid"],"spinner")}),c&&t]}):(0,o.jsxs)(o.Fragment,{children:[c&&(0,o.jsx)(c,{size:v,fill:y,"data-testid":a(_["data-testid"],"icon")}),t]})}))})},53420:function(e,n,t){"use strict";var i=t(62230),r=t(52322),s=t(75289);n.Z=function(e){var n=e.elems,t=e.renderElem,o=e.defineElementKey,c=e.gridTemplateMinPx,l=e.gridGap,a=e.sx;return(0,r.jsx)(s.xu,{as:"section",sx:(0,i.Z)({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(".concat(void 0===c?"320px":c,", 1fr))"),gridGap:void 0===l?"16px":l,pt:2},a),children:n.map(function(e,n){return e?(0,r.jsx)("span",{children:t(e,n)},"".concat(o(e),"-").concat(n+1)):null})})}},80369:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return e_}});var i=t(22710),r=t(99267),s=t(52322),o=t(97729),c=t.n(o),l=t(5632),a=t.n(l),u=t(2784),d=t(88932),h=t(65077),x=t(82770),f=t(41730),p=t(22715),m=t(34543),g=t(56580),j=t(2754),v=t(62230),y=t(85244),b=t(98240),C=t(6277),_=t(21052),w=t.n(_),k=function(e){var n=e.children,t=e.color,i=e.endIcon,r=e.href,o=e.textVariant,c=void 0===o?"smallBold":o,l=(0,b.Z)(e,["children","color","endIcon","href","textVariant"]);return(0,s.jsxs)("a",(0,y.Z)((0,v.Z)({href:r,target:"_blank",rel:"noreferrer"},l),{className:(0,C.W)(w().root,w()["color-".concat(void 0===t?"primary":t)]),children:[(0,s.jsx)(p.xv,{component:"span",color:"inherit",variant:c,children:n}),(0,u.isValidElement)(i)?(0,u.cloneElement)(i,{className:(0,C.W)(i.props.className,w().endIcon,w()["icon-".concat(c)])}):null]}))},S=t(39092),Z=function(){var e,n=(e=(0,g.v9)(function(e){return{repoName:(0,S.MY)(e)}}).repoName,"https://".concat(e,".prismic.io/documents/working"));return(0,s.jsxs)(j.R$,{style:{alignSelf:"center",marginTop:p.TV.size[72]},children:[(0,s.jsx)(j.u2,{children:(0,s.jsx)(p.Ee,{src:"/blank-slate-changes-uptodate.png",sizing:"cover"})}),(0,s.jsxs)(j.T9,{children:[(0,s.jsx)(j._T,{children:"Everything up-to-date"}),(0,s.jsx)(j.nf,{children:"You have no changes staged. Your changes appear here after you have saved them, while they're waiting to be pushed to the Page Builder. Ready to get going?"}),(0,s.jsxs)(j.Qj,{children:[(0,s.jsx)(p.zx,{onClick:function(){a().push("/")},children:"Create a page type"}),(0,s.jsx)(k,{endIcon:(0,s.jsx)(m.AlO,{}),textVariant:"normal",href:n,children:"Create content"})]})]})]})},T=t(8564),D=t(80441),L=t(80299),O=t(75499),I=function(e){return(0,s.jsx)(T.S,{renderError:F,children:(0,s.jsx)(u.Suspense,{fallback:(0,s.jsx)(H,{}),children:(0,s.jsx)(N,(0,v.Z)({},e))})})},N=function(e){return(0,L.M)().eligible?(0,s.jsx)(R,(0,v.Z)({},e)):(0,s.jsx)(z,(0,v.Z)({},e))},R=function(e){var n=(0,O.G)().linkedGitRepos;if(!(n.length>0))return(0,s.jsx)(z,(0,v.Z)({},e));var t=D.Q[n[0].provider];return(0,s.jsx)(p.u,{content:"This project uses the Git workflow. Update Prismic by pushing your changes to ".concat(t.name,"."),side:"bottom",children:(0,s.jsx)(z,{disabled:!0})})},z=(0,u.forwardRef)(function(e,n){return(0,s.jsx)(p.zx,(0,y.Z)((0,v.Z)({},e),{ref:n,startIcon:"upload",children:"Push"}))});function F(){return(0,s.jsx)(p.u,{content:"An error occurred while fetching the list of connected Git repositories.",side:"bottom",children:(0,s.jsx)(z,{disabled:!0})})}var H=function(){return(0,s.jsx)(p.Od,{height:32,width:71.32})},E=t(46326),B=t(50950),M=t(41834),A=t(16847),G=t(80262),P=t(76478),W=t(79096),U=t(90374),V=function(e){var n=e.authStatus,t=(0,U.Z)().openLoginModal;return(0,s.jsxs)(p.xu,{flexDirection:"column",height:"100%",alignItems:"center",justifyContent:"center",gap:8,children:[n===W.t.FORBIDDEN?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p.xv,{variant:"h3",align:"center",children:"It seems like you are logged out"}),(0,s.jsx)(p.xv,{align:"center",children:"Log in to connect to your repository."})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p.xv,{variant:"h3",align:"center",children:"It seems like you don't have access to this repository"}),(0,s.jsx)(p.xv,{align:"center",children:"Check that the repository name is correct, then contact your repository administrator."})]}),(0,s.jsxs)(p.xv,{align:"center",children:["If that doesn't work, it's possible that Slice Machine is having trouble accessing Prismic's servers."," ",(0,s.jsx)(p.xv,{href:"https://community.prismic.io/",children:"Contact our support team"}),"."]}),n===W.t.FORBIDDEN&&(0,s.jsx)(p.zx,{onClick:function(){return t()},children:"Log in to Prismic"})]})},X=t(91914),Q=t(75289),K=function(){return(0,s.jsx)(Q.kC,{sx:{justifyContent:"center",alignItems:"center",flex:1},children:(0,s.jsxs)(Q.kC,{sx:{flexDirection:"column",alignItems:"center",transform:"translateY(-50%)"},children:[(0,s.jsx)(X.wQ1,{size:48}),(0,s.jsx)(Q.xv,{sx:{fontWeight:600,fontSize:"24px",lineHeight:"32px",mb:"8px",mt:"2px",textAlign:"center"},children:"No internet connection"}),(0,s.jsx)(Q.xv,{sx:{fontSize:"13px",lineHeight:"24px",textAlign:"center"},children:"Connect to the internet to sync your changes."})]})})},Y=t(951),q=t(5479),J=t(56319),$=t(47731),ee=function(e){var n=e.children;return(0,s.jsx)(Q.kC,{sx:{alignItems:"center",justifyContent:"space-between",mt:"8px",bg:"grey02",borderRadius:4,padding:"12px 16px",width:"100%"},children:n})},en=t(39097),et=t.n(en),ei=t(34728),er=t(67445),es=t(52312),eo=function(e){var n=e.ct,t=e.status,i=e.authStatus,r=e.isOnline;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Q.xu,{as:"td",style:{width:"40%"},children:(0,s.jsx)(Q.xv,{sx:{fontWeight:500},children:n.label})}),(0,s.jsx)(Q.xu,{as:"td",style:{width:"40%"},children:n.id}),(0,s.jsx)(Q.xu,{as:"td",style:{width:"20%"},children:(0,s.jsx)(ei.O,{authStatus:i,isOnline:r,modelStatus:t,modelType:"CustomType"})})]})},ec=function(e){var n=e.customTypes,t=e.modelsStatuses,i=e.authStatus,r=e.isOnline;return(0,s.jsxs)(Q.xu,{as:"table","data-legacy-component":!0,children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{className:"transparent small",children:[(0,s.jsx)(Q.xu,{as:"th",sx:{width:"40%",fontWeight:600},children:"Name"}),(0,s.jsx)(Q.xu,{as:"th",sx:{width:"40%",fontWeight:600},children:"API ID"}),(0,s.jsx)(Q.xu,{as:"th",sx:{width:"20%",fontWeight:600},children:"Status"})]})}),(0,s.jsx)("tbody",{children:n.map(function(e){return(0,es.TG)(e)?(0,s.jsx)(et(),{passHref:!0,href:er.cd[e.local.format].getBuilderPagePathname(e.local.id),legacyBehavior:!0,children:(0,s.jsx)("tr",{tabIndex:0,"data-testid":"custom-type-".concat(e.local.id),children:(0,s.jsx)(eo,{ct:e.local,status:t.customTypes[e.local.id],authStatus:i,isOnline:r},e.local.id)})},e.local.id):(0,s.jsx)("tr",{tabIndex:0,className:"disabled","data-testid":"custom-type-".concat(e.remote.id),children:(0,s.jsx)(eo,{ct:e.remote,status:t.customTypes[e.remote.id],authStatus:i,isOnline:r},e.remote.id)},e.remote.id)})})]})},el=t(53420),ea=t(12773),eu=t(94007),ed=t(11563);function eh(){var e=(0,ed.L)("slicemachine-dev-collaboration"),n=(0,u.useState)(!1),t=n[0],i=n[1],r=null==e?void 0:e.payload;return((0,u.useEffect)(function(){(null==e?void 0:e.value)==="on"&&void 0!==r&&x.Xe.track({event:"dev-collab:workflow-stub-displayed"})},[e,r]),(null==e?void 0:e.value)!=="on"||void 0===r)?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(p.xu,{alignItems:"flex-start",border:{bottom:!0,left:!0,right:!0,top:!0},borderRadius:6,borderStyle:"dashed",flexDirection:"column",flexShrink:0,gap:8,padding:16,width:320,children:[(0,s.jsxs)(p.xu,{flexDirection:"column",gap:2,children:[(0,s.jsx)(p.xv,{variant:"smallBold",children:r.cardTitle}),(0,s.jsx)(p.xv,{color:"grey11",variant:"small",children:r.cardDescription})]}),(0,s.jsx)(p.zx,{color:"grey",onClick:function(){x.Xe.track({event:"dev-collab:set-up-workflow-opened"}),i(!0)},children:r.cardButtonLabel})]}),(0,s.jsxs)(p.Vq,{onOpenChange:function(e){e||i(!1)},open:t,size:{height:"auto",width:448},children:[(0,s.jsx)(p.fK,{title:r.dialogTitle}),(0,s.jsx)(p.cZ,{children:(0,s.jsxs)(p.xu,{flexDirection:"column",children:[(0,s.jsx)(p.xu,{flexDirection:"column",padding:16,children:(0,s.jsx)(p.xv,{children:r.dialogDescription})}),(0,s.jsx)(p.kX,{cancel:{text:"Cancel"},ok:{text:r.dialogButtonLabel,onClick:function(){x.Xe.track({event:"dev-collab:join-beta-clicked"}),window.open(r.dialogButtonLink,"_blank"),i(!1)}},size:"medium"})]})})]})]})}var ex=function(e){var n=e.unSyncedCustomTypes,t=e.unSyncedSlices,i=e.modelsStatuses,r=e.authStatus,o=e.isOnline,c=(0,$.H)(),l=c.modalPayload,a=c.onOpenModal,d=l.sliceFilterFn,h=l.defaultVariationSelector,x=t.filter(function(e){return i.slices[e.model.id]!==eu.GJ.Deleted});return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(p.xu,{gap:16,alignItems:"flex-start",children:[(0,s.jsxs)(p.xu,{flexDirection:"column",flexGrow:1,children:[n.length>0&&(0,s.jsxs)(p.xu,{flexDirection:"column",children:[(0,s.jsx)(ee,{children:(0,s.jsxs)(p.xu,{children:[(0,s.jsx)(p.xv,{variant:"h5",children:"Types"}),(0,s.jsx)(p.xv,{variant:"h5",sx:{marginLeft:8},children:n.length})]})}),(0,s.jsx)(ec,{customTypes:n,modelsStatuses:i,authStatus:r,isOnline:o})]}),t.length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p.xu,{padding:{bottom:8},children:(0,s.jsxs)(ee,{children:[(0,s.jsxs)(p.xu,{children:[(0,s.jsx)(p.xv,{variant:"h5",children:"Slices"}),(0,s.jsx)(p.xv,{variant:"h5",sx:{marginLeft:8},children:t.length})]}),(0,s.jsxs)(p.xu,{children:[t.some(function(e){return(0,q.cx)(e)>0&&i.slices[e.model.id]!==eu.GJ.Deleted})&&(0,s.jsxs)(p.xv,{color:"amber11",sx:{marginRight:8,alignSelf:"center"},children:[(0,s.jsx)(Y.sQg,{size:16,style:{marginRight:"4px",position:"relative",top:"3px"}}),"Missing Screenshots"]}),(0,s.jsxs)(p.zx,{color:"dark",onClick:function(){return a({sliceFilterFn:function(e){return e}})},children:[(0,s.jsx)(Y.hOO,{style:{color:"#FFF",fontSize:"15px",position:"relative",top:"3px",marginRight:"4px"}})," ","Update all screenshots"]})]})]})}),(0,s.jsx)(el.Z,{gridGap:"32px 16px",elems:t,gridTemplateMinPx:"305px",defineElementKey:function(e){return e.model.name},renderElem:function(e){var n=i.slices[e.model.id];return(0,s.jsx)(J.b,{action:{type:"status",authStatus:r,isOnline:o,modelStatus:n},isDeleted:n===eu.GJ.Deleted,mode:"navigation",onUpdateScreenshot:function(){a({sliceFilterFn:function(n){return n.filter(function(n){return n.model.id===e.model.id})}})},slice:e,variant:"solid"})}}),(0,s.jsx)(ea.Z,{slices:d(x),defaultVariationSelector:h})]})]}),(0,s.jsx)(T.S,{children:(0,s.jsx)(u.Suspense,{children:(0,s.jsx)(eh,{})})})]})})},ef=t(34226),ep=t(79797),em=t(98898),eg=function(e){var n=e.isOpen,t=e.title,i=e.footer,r=e.explanations,o=e.onClose;return(0,s.jsx)(ep.Z,{placement:"right",open:n,level:null,onClose:o,width:496,children:(0,s.jsx)(em.Z,{radius:"0px",bodySx:{bg:"white",padding:24,flex:1,display:"flex",flexDirection:"column",overflow:"scroll"},footerSx:{p:0},sx:{flexDirection:"column",display:"flex",height:"100%",border:"none"},borderFooter:!0,Header:function(){return(0,s.jsxs)(Q.kC,{sx:{p:"16px",alignItems:"center",justifyContent:"space-between",borderBottom:function(e){var n;return"1px solid ".concat(String(null===(n=e.colors)||void 0===n?void 0:n.borders))}},children:[(0,s.jsx)(Q.kC,{sx:{alignItems:"center"},children:(0,s.jsx)(Q.X6,{sx:{fontSize:"14px",fontWeight:"bold",ml:1},children:t})}),(0,s.jsx)(Q.x8,{type:"button",onClick:function(){return o()}})]})},Footer:function(){return(0,s.jsx)(Q.kC,{sx:{flexDirection:"column",justifyContent:"center",alignItems:"center",paddingRight:16,borderTop:function(e){var n;return"1px solid ".concat(String(null===(n=e.colors)||void 0===n?void 0:n.darkBorders))},backgroundColor:"white",padding:20},children:i})},children:r})})},ej=t(28849);t(78656);var ev=function(e){var n=e.ctName,t=e.numberOfDocuments,i=e.link,r=e.isOverLimit;return(0,s.jsxs)(Q.Zb,{sx:{mb:12},variant:"drawerCard","data-testid":"AssociatedDocumentsCard-".concat(n),children:[(0,s.jsxs)(Q.kC,{sx:{flexDirection:"column"},children:[(0,s.jsx)(Q.xv,{children:n}),(0,s.jsxs)(Q.xv,{sx:{color:"textClear",fontSize:"12px",lineHeight:"16px"},children:[t," documents"]})]}),(0,s.jsx)(Q.rU,{href:i,target:"_blank",variant:"cardSmall",sx:{color:void 0!==r&&r?"danger":"purple08"},children:"View documents"})]})},ey=function(e){var n=e.pushChanges,t=e.modalData,i=e.onClose,r=(0,g.v9)(function(e){return{remoteOnlyCustomTypes:(0,ej.Ch)(e).filter(es.yp)}}).remoteOnlyCustomTypes;if((null==t?void 0:t.type)!=="HARD")return null;var o=t.details.customTypes.map(function(e){var n,t=r.find(function(n){return(0,es.n5)(n)===e.id});return void 0===t?null:(0,s.jsx)(ev,{isOverLimit:!0,ctName:null!==(n=t.remote.label)&&void 0!==n?n:t.remote.id,link:e.url,numberOfDocuments:e.numberOfDocuments},e.id)});return(0,s.jsx)(eg,{isOpen:"HARD"===t.type,title:"Manual action required",onClose:i,footer:(0,s.jsx)(ef.z,{label:"Try again",variant:"primary",onClick:function(){n(!1)},sx:{fontWeight:"bold",color:"white",borderRadius:6,width:"100%"}}),explanations:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(Q.xv,{sx:{fontWeight:"bold",mb:1,lineHeight:"24px"},children:["Your type",t.details.customTypes.length>1&&"s"," cannot be deleted."]}),(0,s.jsxs)(Q.xv,{sx:{mb:24},children:[t.details.customTypes.length>1?"These types have":"This type has"," ","too many associated Documents. Archive and delete these Documents manually and then try deleting the types again."]}),o]})})},eb=function(e){var n=e.onToggle,t=e.isConfirmed,i=e.sx;return(0,s.jsxs)(Q.kC,{sx:(0,v.Z)({borderRadius:6,flexDirection:"column",backgroundColor:"grey03",padding:12,width:"100%"},i),children:[(0,s.jsx)(Q.xv,{sx:{fontWeight:"bold",mb:2},children:"Are you sure to proceed?"}),(0,s.jsxs)(Q.__,{sx:{mt:"4px",py:1},variant:"large",children:[(0,s.jsx)(Q.XZ,{defaultChecked:t,onChange:n,variant:"forms.checkbox.dark"}),"Delete these Documents"]})]})},eC=function(e){var n=e.pushChanges,t=e.modalData,i=e.onClose,r=(0,u.useState)(!1),o=r[0],c=r[1],l=(0,g.v9)(function(e){return{remoteOnlyCustomTypes:(0,ej.Ch)(e).filter(es.yp)}}).remoteOnlyCustomTypes;if((null==t?void 0:t.type)!=="SOFT")return null;var a=t.details.customTypes.map(function(e){var n,t=l.find(function(n){return(0,es.n5)(n)===e.id});return void 0===t?null:(0,s.jsx)(ev,{isOverLimit:!0,ctName:null!==(n=t.remote.label)&&void 0!==n?n:t.remote.id,link:e.url,numberOfDocuments:e.numberOfDocuments},e.id)});return(0,s.jsx)(eg,{isOpen:"SOFT"===t.type,title:"Confirm deletion",onClose:i,footer:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(eb,{onToggle:function(){c(!o)},isConfirmed:o,sx:{mb:10}}),(0,s.jsx)(ef.z,{label:"Push changes",variant:"primary",onClick:function(){n(o)},disabled:!o,sx:{fontWeight:"bold",color:"white",borderRadius:6,width:"100%"}})]}),explanations:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Q.xv,{sx:{fontWeight:"bold",mb:1,lineHeight:"24px"},children:"This action will also delete Documents."}),(0,s.jsxs)(Q.xv,{sx:{mb:24},children:[t.details.customTypes.length>1?"These types have":"This type has"," ","associated Documents, which will also be deleted. This might create broken links in your repository."]}),a]})})},e_=function(){var e,n=(0,M.X)(),t=n.unSyncedSlices,o=n.unSyncedCustomTypes,a=n.changedCustomTypes,p=n.changedSlices,m=n.modelsStatuses,g=(0,G.L)(),j=(0,A.n)(),v=(0,U.Z)(),y=v.pushChangesSuccess,b=v.refreshState,C=(0,u.useState)(!1),_=C[0],w=C[1],k=(0,u.useState)(void 0),S=k[0],T=k[1],D=(0,B.g)().autoSyncStatus,L=(0,l.useRouter)(),O=t.length+o.length;(0,u.useEffect)(function(){("synced"===D||"failed"===D||"syncing"===D)&&L.push("/")},[D,L]);var N=(e=(0,i.Z)(function(e){var n,t,i;return(0,r.__generator)(this,function(t){switch(t.label){case 0:return t.trys.push([0,5,,6]),w(!0),T(void 0),[4,(0,E.t)({confirmDeleteDocuments:e,changedCustomTypes:a,changedSlices:p})];case 1:if(!(void 0!==(n=t.sent())))return[3,2];return T(n),[3,4];case 2:return[4,(0,x.y0)()];case 3:b(t.sent()),y(),d.Am.success("All slices and types have been pushed"),t.label=4;case 4:return[3,6];case 5:return i=t.sent(),console.error("Something went wrong when manually pushing your changes",i),d.Am.error("Something went wrong when pushing your changes. Check your terminal logs."),[3,6];case 6:return w(!1),[2]}})}),function(n){return e.apply(this,arguments)}),R=(0,u.useMemo)(function(){return g?j===W.t.UNAUTHORIZED||j===W.t.FORBIDDEN?(0,s.jsx)(V,{authStatus:j}):0===O?(0,s.jsx)(Z,{}):(0,s.jsx)(ex,{unSyncedSlices:t,unSyncedCustomTypes:o,modelsStatuses:m,authStatus:j,isOnline:g}):(0,s.jsx)(K,{})},[g,j,O,t,o,m,]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c(),{children:(0,s.jsx)("title",{children:"Changes - Slice Machine"})}),(0,s.jsxs)(P.LN,{children:[(0,s.jsxs)(P.wd,{children:[(0,s.jsx)(P.Cx,{children:(0,s.jsx)(f.g,{children:"Changes"})}),(0,s.jsx)(P.K2,{children:(0,s.jsx)(I,{disabled:0===O||!g||j===W.t.UNAUTHORIZED||j===W.t.FORBIDDEN||_,loading:_,onClick:function(){N(!1)}})})]}),(0,s.jsx)(P.RN,{children:(0,s.jsxs)(h.xR,{sx:{display:"flex",flexDirection:"column"},children:[R,(0,s.jsx)(eC,{pushChanges:function(e){N(e)},modalData:S,onClose:function(){return T(void 0)}}),(0,s.jsx)(ey,{pushChanges:function(e){N(e)},modalData:S,onClose:function(){return T(void 0)}})]})})]})]})}},69143:function(){},21052:function(e){e.exports={root:"TextLink_root__lUIIv","color-primary":"TextLink_color-primary__WDK3_","color-secondary":"TextLink_color-secondary__mlUMF",endIcon:"TextLink_endIcon__f687_","icon-normal":"TextLink_icon-normal__CXnLk","icon-smallBold":"TextLink_icon-smallBold__Hp6aU","icon-inherit":"TextLink_icon-inherit__gbJsO"}}},function(e){e.O(0,[898,789,123,543,918,614,90,774,888,179],function(){return e(e.s=21985)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._18bjhbz0{max-width:498px;min-height:400px;background-color:var(--_7j49md18)}._18bjhbz1{background-size:cover;background-color:transparent;border-radius:var(--_7j49md3);border-style:var(--_7j49mdd);height:100%;max-width:100%}._18bjhbz1 ._18bjhbz3{padding:64px}._18bjhbz4{font-size:18px;font-weight:600;line-height:32px}._18bjhbz5{font-weight:400;line-height:24px}._18bjhbz1 ._18bjhbz5{max-width:464px;align-self:center}._18bjhbz1 ._18bjhbz6{justify-content:center}.TextLink_root__lUIIv{all:unset;cursor:pointer;display:flex;align-items:center}.TextLink_root__lUIIv:focus-visible{outline:none;text-decoration-line:underline}.TextLink_color-primary__WDK3_{color:var(--purple9)}.TextLink_color-primary__WDK3_:hover{color:var(--purple8)}.TextLink_color-primary__WDK3_:active{color:var(--purple9)}.TextLink_color-secondary__mlUMF{color:var(--indigo11)}.TextLink_color-secondary__mlUMF:hover{color:var(--indigo10)}.TextLink_color-secondary__mlUMF:active{color:var(--indigo11)}.TextLink_endIcon__f687_{padding-left:4px}.TextLink_icon-normal__CXnLk{font-size:1.2rem;width:18px;height:18px}.TextLink_icon-smallBold__Hp6aU{font-size:1rem;width:16px;height:16px}.TextLink_icon-inherit__gbJsO{font-family:inherit;font-size:inherit;width:inherit;height:inherit}.kedahr2{height:240px}.kedahr3{height:320px}.kedahr6:focus-visible{box-shadow:0 0 0 4px rgba(123,101,220,.1)}.kedahr6[data-disabled]{opacity:var(--_7j49md42)}.kedahr6:not([data-disabled]){cursor:var(--_7j49md3q)}.kedahr7{order:0}.kedahr4>.kedahr7{padding:calc(var(--_7j49md58) - var(--_7j49mdh))}.kedahr5>.kedahr7{background-color:var(--_7j49md1a);margin-inline:calc(var(--_7j49md56) - var(--_7j49mdh));margin-top:calc(var(--_7j49md56) - var(--_7j49mdh));padding:var(--_7j49md56)}.kedahr9:not([src]){visibility:hidden}.kedahra:before{content:"";background-color:var(--_7j49md1j);inset:var(--_7j49md4y);opacity:var(--_7j49md40);position:absolute}.kedahr6:focus-visible .kedahra,.kedahr6:not([data-disabled]) .kedahr7:hover>.kedahra{visibility:visible}.kedahr6:not([data-disabled]) .kedahra:has(:focus-visible){visibility:visible}.kedahr4>.kedahrb{background-color:var(--_7j49md18)}.kedahr4>.kedahrb:not(:first-child){border-top-color:var(--_7j49md1d);border-top-style:inherit;border-top-width:inherit}.kedahrc{order:1}.kedahr4>.kedahrc{padding-left:calc(var(--_7j49md55) - var(--_7j49mdh));padding-right:calc(var(--_7j49md53) - var(--_7j49mdh))}.kedahr5>.kedahrc{padding-inline:calc(var(--_7j49md56) - var(--_7j49mdh))}.kedahrd{order:2}.kedahr4>.kedahrd{padding-inline:calc(var(--_7j49md55) - var(--_7j49mdh))}.kedahr5>.kedahrd{padding-inline:calc(var(--_7j49md56) - var(--_7j49mdh))}.kedahre{margin-bottom:calc((1.5rem - 1rem) / 2)}.kedahrf{background-color:#ebe7fe;color:#5746af}.Kbd_root__nBos2{background-color:var(--grey2);border-color:var(--grey6);border-radius:3px;border-style:solid;border-width:1px;color:var(--grey11);padding-inline:4px}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._1k08lzu3{height:calc(var(--_7j49md4m) - var(--_7j49mdh))}._1k08lzu5{height:calc(var(--_7j49md4b) - var(--_7j49md47));width:calc(var(--_7j49md4b) - var(--_7j49md47))}._1k08lzu7{box-shadow:inset 0 calc(-1 * var(--_7j49mdh)) 0 0 var(--_7j49md1d);height:calc(var(--_7j49md4m) - var(--_7j49mdh));-ms-overflow-style:none;scrollbar-width:none}._1k08lzu7::-webkit-scrollbar{display:none}._1k08lzu3+._1k08lzu6>._1k08lzu7{padding-top:var(--_7j49mdh)}._1k08lzu8:last-child:before,:not(:is(:focus,:hover,[data-state=active]))+._1k08lzu8:before{content:"";background-color:var(--_7j49md1e);bottom:var(--_7j49md53);height:var(--_7j49md4i);left:calc(-1 * var(--_7j49md4z));position:absolute;width:var(--_7j49mdh)}._1k08lzu9{max-width:256px}._1k08lzu9[data-state=active]{color:var(--_7j49md1j)}._1k08lzu9:is(:focus,:hover,[data-state=active]):before{content:"";background-color:var(--_7j49md19);border-color:var(--_7j49md1d);border-top-left-radius:var(--_7j49md7);border-top-right-radius:var(--_7j49md7);border-style:var(--_7j49mdf) var(--_7j49mdf) var(--_7j49mdd);border-width:var(--_7j49mdh);box-sizing:border-box;height:calc(var(--_7j49md4s) + var(--_7j49mdh));left:calc(-1 * var(--_7j49mdh));position:absolute;top:calc(-1 * var(--_7j49mdh));width:calc(var(--_7j49md4s) + var(--_7j49mdh))}._1k08lzub{margin-right:calc(-1 * var(--_7j49md53))}:is(:focus,:hover,[data-state=active])>._1k08lzub{visibility:visible}._1k08lzub:has(>[data-state=open]){visibility:visible}._1k08lzuc{box-shadow:inset 0 calc(-1 * var(--_7j49mdh)) 0 0 var(--_7j49md1d),0 calc(-1 * var(--_7j49mdh)) 0 0 var(--_7j49md1a)}._1k08lzud[data-state=inactive]{display:none}:is(._1k08lzu2,._1k08lzud)>._2a96i71{border-radius:var(--_7j49md3);border-style:var(--_7j49mdd)}._2a96i72:last-child{border-bottom-color:var(--_7j49md3m)}._1k08lzud>._2a96i71>._2a96i73:not(:first-child){margin-top:var(--_7j49md56)}._18bjhbz0{max-width:498px;min-height:400px;background-color:var(--_7j49md18)}._18bjhbz1{background-size:cover;background-color:transparent;border-radius:var(--_7j49md3);border-style:var(--_7j49mdd);height:100%;max-width:100%}._18bjhbz1 ._18bjhbz3{padding:64px}._18bjhbz4{font-size:18px;font-weight:600;line-height:32px}._18bjhbz5{font-weight:400;line-height:24px}._18bjhbz1 ._18bjhbz5{max-width:464px;align-self:center}._18bjhbz1 ._18bjhbz6{justify-content:center}.kedahr2{height:240px}.kedahr3{height:320px}.kedahr6:focus-visible{box-shadow:0 0 0 4px rgba(123,101,220,.1)}.kedahr6[data-disabled]{opacity:var(--_7j49md42)}.kedahr6:not([data-disabled]){cursor:var(--_7j49md3q)}.kedahr7{order:0}.kedahr4>.kedahr7{padding:calc(var(--_7j49md58) - var(--_7j49mdh))}.kedahr5>.kedahr7{background-color:var(--_7j49md1a);margin-inline:calc(var(--_7j49md56) - var(--_7j49mdh));margin-top:calc(var(--_7j49md56) - var(--_7j49mdh));padding:var(--_7j49md56)}.kedahr9:not([src]){visibility:hidden}.kedahra:before{content:"";background-color:var(--_7j49md1j);inset:var(--_7j49md4y);opacity:var(--_7j49md40);position:absolute}.kedahr6:focus-visible .kedahra,.kedahr6:not([data-disabled]) .kedahr7:hover>.kedahra{visibility:visible}.kedahr6:not([data-disabled]) .kedahra:has(:focus-visible){visibility:visible}.kedahr4>.kedahrb{background-color:var(--_7j49md18)}.kedahr4>.kedahrb:not(:first-child){border-top-color:var(--_7j49md1d);border-top-style:inherit;border-top-width:inherit}.kedahrc{order:1}.kedahr4>.kedahrc{padding-left:calc(var(--_7j49md55) - var(--_7j49mdh));padding-right:calc(var(--_7j49md53) - var(--_7j49mdh))}.kedahr5>.kedahrc{padding-inline:calc(var(--_7j49md56) - var(--_7j49mdh))}.kedahrd{order:2}.kedahr4>.kedahrd{padding-inline:calc(var(--_7j49md55) - var(--_7j49mdh))}.kedahr5>.kedahrd{padding-inline:calc(var(--_7j49md56) - var(--_7j49mdh))}.kedahre{margin-bottom:calc((1.5rem - 1rem) / 2)}.kedahrf{background-color:#ebe7fe;color:#5746af}.ConvertLegacySliceButton_scrollArea__gW7L4{width:448px;height:100%;display:flex;gap:8px;padding-inline:16px;padding-block:16px}.ConvertLegacySliceButton_label__yP2Pt{display:inline-flex;align-items:center;gap:4px}.ContentTabs_flex__kAimf{all:unset;display:flex}.ContentTabs_column__x5QZL{flex-direction:column}.ContentTabs_root__GPtve{background-color:var(--grey1);min-height:0}.ContentTabs_list__XarTi{border-bottom:1px solid var(--grey5);padding-inline:16px}.ContentTabs_trigger__8hs6H{color:var(--grey11);cursor:pointer;padding-block:8px}.ContentTabs_trigger__8hs6H:not(:last-child){margin-right:16px}.ContentTabs_trigger__8hs6H[data-state=active]{box-shadow:inset 0 -1px 0 0 currentColor,0 1px 0 0 currentColor;color:var(--purple9)}.ContentTabs_triggerText__ka3DD{line-height:32px}.ContentTabs_content__mMr1s{min-height:0;outline:none;flex:1 1}.ContentTabs_content__mMr1s[data-state=inactive]{display:none}.ContentTabs_scrollArea__ZBVHa{padding:16px}.CodeBlock_block__ljak4{all:unset;box-sizing:border-box;font-family:var(--font-family-body)}.CodeBlock_blockWithDisplayRevert__zM3Ns{display:revert}.CodeBlock_root__3ZYFL{border-width:1px;border-radius:6px;border-style:solid;border-color:var(--grey6)}.CodeBlock_header__kLT1f{border-top-right-radius:4px;border-top-left-radius:4px;background-color:var(--grey2);border-bottom:1px solid var(--grey6);padding-block:4px;padding-right:4px}.CodeBlock_fileInfo__ocLpL,.CodeBlock_header__kLT1f{display:flex;align-items:center;justify-content:space-between}.CodeBlock_fileName__jmuEV{font-size:calc(14rem / 16);line-height:calc(32rem / 16)}._3uvawd0{grid-area:content;overflow:hidden}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._18bjhbz0{max-width:498px;min-height:400px;background-color:var(--_7j49md18)}._18bjhbz1{background-size:cover;background-color:transparent;border-radius:var(--_7j49md3);border-style:var(--_7j49mdd);height:100%;max-width:100%}._18bjhbz1 ._18bjhbz3{padding:64px}._18bjhbz4{font-size:18px;font-weight:600;line-height:32px}._18bjhbz5{font-weight:400;line-height:24px}._18bjhbz1 ._18bjhbz5{max-width:464px;align-self:center}._18bjhbz1 ._18bjhbz6{justify-content:center}.gdfsm51{border-collapse:collapse;table-layout:fixed}.gdfsm55{vertical-align:middle}.gdfsm55:first-child{padding-right:var(--_7j49md4y);width:var(--_7j49md4k)}.gdfsm55:last-child{padding-left:var(--_7j49md4y);padding-right:var(--_7j49md56);width:var(--_7j49md4m)}.gdfsm52 .gdfsm55{font-size:12px;font-weight:500}.gdfsm53 .gdfsm55{border-top-style:var(--_7j49mdf);font-size:14px}.gdfsm53 .gdfsm55:nth-child(2){color:var(--_7j49md1j);font-weight:600}.gdfsm52 .gdfsm55:first-child>.gdfsm56{padding-left:var(--_7j49md52)}:is(.gdfsm53,.gdfsm52) .gdfsm55:not(:first-child):not(:last-child)>.gdfsm56{display:revert;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { colors, sprinkles, vars } from "@prismicio/editor-ui";
|
|
2
|
-
import { style } from "@vanilla-extract/css";
|
|
3
|
-
|
|
4
|
-
const column = sprinkles({
|
|
5
|
-
all: "unset",
|
|
6
|
-
boxSizing: "border-box",
|
|
7
|
-
display: "flex",
|
|
8
|
-
flexDirection: "column",
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
export const root = style([
|
|
12
|
-
column,
|
|
13
|
-
sprinkles({
|
|
14
|
-
animationDuration: 300,
|
|
15
|
-
animationName: "fadeIn",
|
|
16
|
-
animationTimingFunction: "easeInOut",
|
|
17
|
-
borderColor: colors.grey6,
|
|
18
|
-
borderRadius: 6,
|
|
19
|
-
borderStyle: "solid",
|
|
20
|
-
borderWidth: 1,
|
|
21
|
-
overflow: "hidden",
|
|
22
|
-
}),
|
|
23
|
-
{ maxWidth: 498, minHeight: 400, backgroundColor: vars.color.greyLight1 },
|
|
24
|
-
]);
|
|
25
|
-
|
|
26
|
-
export const withBackground = style([
|
|
27
|
-
sprinkles({
|
|
28
|
-
textAlign: "center",
|
|
29
|
-
width: "100%",
|
|
30
|
-
}),
|
|
31
|
-
{
|
|
32
|
-
backgroundSize: "cover",
|
|
33
|
-
backgroundColor: "transparent",
|
|
34
|
-
borderRadius: vars.borderRadius[0],
|
|
35
|
-
borderStyle: vars.borderStyle.none,
|
|
36
|
-
height: "100%",
|
|
37
|
-
maxWidth: "100%",
|
|
38
|
-
},
|
|
39
|
-
]);
|
|
40
|
-
|
|
41
|
-
export const image = style([
|
|
42
|
-
column,
|
|
43
|
-
sprinkles({
|
|
44
|
-
borderBottomColor: colors.grey6,
|
|
45
|
-
borderBottomStyle: "solid",
|
|
46
|
-
borderBottomWidth: 1,
|
|
47
|
-
overflow: "hidden",
|
|
48
|
-
}),
|
|
49
|
-
]);
|
|
50
|
-
|
|
51
|
-
export const content = style([
|
|
52
|
-
column,
|
|
53
|
-
sprinkles({ padding: 32 }),
|
|
54
|
-
{
|
|
55
|
-
selectors: {
|
|
56
|
-
[`${withBackground} &`]: {
|
|
57
|
-
padding: "64px",
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
]);
|
|
62
|
-
|
|
63
|
-
export const title = style({
|
|
64
|
-
fontSize: 18,
|
|
65
|
-
fontWeight: 600,
|
|
66
|
-
lineHeight: "32px",
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
export const desc = style({
|
|
70
|
-
fontWeight: 400,
|
|
71
|
-
lineHeight: "24px",
|
|
72
|
-
selectors: {
|
|
73
|
-
[`${withBackground} &`]: {
|
|
74
|
-
maxWidth: "464px",
|
|
75
|
-
alignSelf: "center",
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
export const actions = style([
|
|
81
|
-
sprinkles({
|
|
82
|
-
all: "unset",
|
|
83
|
-
alignItems: "center",
|
|
84
|
-
boxSizing: "border-box",
|
|
85
|
-
display: "flex",
|
|
86
|
-
gap: 16,
|
|
87
|
-
marginTop: 16,
|
|
88
|
-
}),
|
|
89
|
-
{
|
|
90
|
-
selectors: {
|
|
91
|
-
[`${withBackground} &`]: {
|
|
92
|
-
justifyContent: "center",
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
]);
|
|
File without changes
|