1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[776],{27231:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/content/editor/[id]/[slug]/suggested-products",function(){return o(99207)}])},97480:function(e,t,o){"use strict";o.d(t,{Z:function(){return p}});var s=o(85893),a=o(64019),n=o(83421),r=o(94184),l=o.n(r),i=o(67294),u=o(38106),c=o(7920),d=o(17376),m=o(42255);let f={full:"min-h-full","fit-content":""},h={left:"mr-auto",top:"mb-auto",right:"ml-auto",bottom:"mt-auto",center:"justify-center items-center","top-left":"mb-auto mr-auto","top-right":"mb-auto ml-auto","bottom-left":"mt-auto mr-auto","bottom-right":"mt-auto ml-auto"};function p(e){let{show:t,onClose:o,title:r,modalClassName:p="max-w-lg",closeButtonClassName:g="",position:v="center",height:x="full",children:y,onCloseEnd:b}=e,j=l()("gtm-close-modal","ml-auto h-6 w-6 shrink-0","rounded-full","bg-red hover:bg-red/80 focus:bg-red/80 text-white",g);function w(){o&&o()}return(0,s.jsx)(a.u,{show:t,enter:"transition duration-100 ease-out",enterFrom:"transform scale-100 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-300 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-100 opacity-0",afterLeave:b,children:(0,s.jsxs)(n.V,{onClose:w,className:"fixed inset-0 z-50 overflow-y-auto",children:[(0,s.jsx)(a.u.Child,{enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)(u.Z,{})}),(0,s.jsx)(a.u.Child,{as:i.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-50",enterTo:"opacity-100 delay-100 scale-100",leave:"ease-in duration-300",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-50",children:(0,s.jsx)("div",{className:l()("flex",h[v],f[x]),children:(0,s.jsxs)(n.V.Panel,{as:c.s,disablePadding:!0,className:l()("relative z-10 mx-4 my-4 w-full px-6 pb-2 pt-4 sm:mx-10 sm:px-12 sm:pt-8 lg:mx-10",p),variant:o?"closable":"default",children:[(0,s.jsx)(n.V.Title,{className:"mb-6 text-h3 font-black",children:r}),o&&(0,s.jsx)(m.hU,{size:"custom",className:l()("absolute right-3 top-3",j),variant:"header",onClick:w,children:(0,s.jsx)(d.Tw,{className:"h-6 w-6"})}),(0,s.jsx)("div",{children:"function"==typeof y?y({onClose:w}):y})]})})})]})})}},99207:function(e,t,o){"use strict";o.r(t);var s=o(85893),a=o(11163);o(67294);var n=o(46996),r=o(15708),l=o(33299),i=o(2962),u=o(55490);let c=()=>{var e,t,o;(0,l.useSession)({required:!0});let n=(0,a.useRouter)(),c="string"==typeof n.query.id?n.query.id:null,d=null===(e=n.query.suggestedProductId)||void 0===e?void 0:e.toString(),m=null!==(o=null===(t=n.query.slug)||void 0===t?void 0:t.toString())&&void 0!==o?o:"";return(0,s.jsxs)("main",{className:"mx-auto",children:[(0,s.jsx)(i.PB,{title:"Suggested Products"}),c&&(0,s.jsx)("div",{className:"relative h-full w-full p-2",children:(0,s.jsx)(r.Z,{lessonId:c,onSuggestedProductCreated:()=>{n.push((0,u.M)({type:"content",id:null!=c?c:"",mode:"editor",subSection:"suggested-products",slug:m}))},onSuggestedProductDeleted:e=>{d===e&&n.push((0,u.M)({type:"content",id:null!=c?c:"",mode:"editor",subSection:"suggested-products",slug:m}))}})})]})};t.default=c,c.getLayout=e=>(0,s.jsx)(n.Z,{padChildren:!0,children:e})}},function(e){e.O(0,[8596,2946,6996,5708,2888,9774,179],function(){return e(e.s=27231)}),_N_E=e.O()}]);
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.