1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3584],{94822:function(e,r,t){"use strict";var n=t(67294),o=t(14408),i=t(39214),a=t(81142),s=t(13970),u=t(99264),c=t(74750),l=t(17017),d=t(89419),f=t(51335),v=t(33134),p=t.n(v),m=t(85893),Resource=function(e){var r,t,o,i=e.fields,a=i.url,s=i.title,c=i.image,l=i.subType;return c?(0,m.jsxs)(u.Z,{noopener:!0,noreferrer:!0,target:"_blank",className:p().resource,href:a,children:[(0,m.jsxs)("div",{className:p().resourceInformation,children:[(0,m.jsx)("span",{className:p().resourceName,children:s}),(0,m.jsx)("span",{className:p().resourceType,children:l})]}),(0,m.jsx)("div",{className:"relative",children:(0,m.jsx)("img",{className:p().resourcePreviewImage,src:Array.isArray(c)&&(null===(r=c[0])||void 0===r?void 0:null===(t=r.thumbnails)||void 0===t?void 0:null===(o=t.large)||void 0===o?void 0:o.url)})})]}):(0,m.jsx)(n.Fragment,{})};r.Z=function(e){var r,t=e.showAll,u=e.loaded,v=(0,n.useState)(""),h=v[0],j=v[1],g=(0,o.qM)(),x=(0,f.Z)("RESOURCES");(0,n.useEffect)(function(){null!=x&&x.data&&"function"==typeof u&&u(x.data.records)},[x.data]);var w=null==x?void 0:null===(r=x.data)||void 0===r?void 0:r.records;return w?(0,m.jsxs)("div",{className:p().back,children:[(0,m.jsxs)(s.Z,{children:[(0,m.jsx)("h1",{className:"text-heading1",children:g("pages.dashboard.resources.heading")}),(0,m.jsx)(d.Z,{className:"flex-grow"}),t?(0,m.jsx)(c.Z,{}):(0,m.jsx)(i.Z,{navigateTo:"/resources"})]}),t&&(0,m.jsxs)(n.Fragment,{children:[(0,m.jsx)(d.Z,{className:"h-5"}),(0,m.jsx)("div",{className:"w-1/3",children:(0,m.jsx)(l.Z,{onChange:j})})]}),(0,m.jsx)(d.Z,{className:"h-5"}),(0,m.jsx)("div",{className:p().resources,children:(t?h?w.filter(function(e){var r,t;return null==e?void 0:null===(r=e.fields.title)||void 0===r?void 0:null===(t=r.toLowerCase())||void 0===t?void 0:t.includes(h.toLocaleLowerCase())}):w:(0,a.Z)(w)).map(function(e){var r=e.fields;return(0,m.jsx)(Resource,{fields:r},r.key)})})]}):(0,m.jsx)(n.Fragment,{})}},39214:function(e,r,t){"use strict";var n=t(11163);t(67294);var o=t(14408),i=t(80343),a=t.n(i),s=t(85893);r.Z=function(e){var r=e.navigateTo,t=(0,n.useRouter)(),i=(0,o.qM)();return(0,s.jsx)("div",{className:a().viewAllButton,onClick:function(){return t.push(r)},children:i("pages.dashboard.view_all")})}},81142:function(e,r){"use strict";r.Z=function(e){return e.filter(function(e){return e.fields.featured}).sort(function(e,r){return Number(e.featured)-Number(r.featured)})}},74750:function(e,r,t){"use strict";t(67294);var n=t(14408),o=t(95387),i=t(85893);r.Z=function(){var e=(0,n.qM)();return(0,i.jsx)(o.Z,{text:e("components.shared.new_project"),type:"primary",link:"/apps/new",className:"wlk-import-figma"})}},22667:function(e,r,t){"use strict";var n=t(93967),o=t.n(n),i=t(11163),a=t(67294),s=t(95387),u=t(13970),c=t(99264),l=t(19464),d=t(9465),f=t(24939),v=t(67357),p=t(26358),m=t(64579),h=t.n(m),j=t(85893),g=a.memo(function(){var e,r,t,n=(0,f.Z)(),o=n.currentPlan,i=n.subscriptionInfo,a=null==i?void 0:null===(e=i.customer)||void 0===e?void 0:null===(r=e.subscriptions)||void 0===r?void 0:null===(t=r.data)||void 0===t?void 0:t[0].trial_end,s=(0,p.o6)(a);return s?(0,j.jsxs)(u.Z,{className:"bg-accent-04l text-accent-04 min-w-40 w-40 copy py-2 px-2 rounded items-center justify-around",children:[(0,j.jsx)(v.T39,{}),(0,j.jsx)("div",{className:"h-full truncate",children:"".concat(s," left in ").concat(null==o?void 0:o.name," tri
1al")})]}):null});r.Z=function(e){var r=e.className,t=void 0===r?null:r,n=(0,a.useState)(!1),v=n[0],p=n[1],m=(0,f.Z)(),x=m.currentPlan,w=m.userInfo,_=(0,d.Z)().showPayWallModalFor,y=(0,i.useRouter)().query.appId,b=(null==x?void 0:x.family)!=="bravo";return(0,j.jsxs)(u.Z,{className:o()(h().profileBar,t),children:[!b&&(0,j.jsx)(s.Z,{text:"Upgrade",size:"small",type:"fantasy",onClick:function(){return _({feature:"forms",appId:y,analyticsOverride:{openFrom:"ProfileBar"}})}}),(0,j.jsx)(g,{}),(0,j.jsx)(l.Z,{content:null==w?void 0:w.email,visible:v,children:(0,j.jsxs)("div",{className:"flex flex-row items-center",onMouseEnter:function(){return p(!0)},onMouseLeave:function(){return p(!1)},children:[(0,j.jsx)(c.Z,{href:"/profile",children:(0,j.jsx)("div",{className:h().avatar,children:(0,j.jsx)("img",{referrerPolicy:"no-referrer",src:null==w?void 0:w.picture,alt:"User avatar"})})}),(0,j.jsx)(c.Z,{href:"/profile",children:(0,j.jsx)("div",{className:o()(h().user,"truncate"),children:null==w?void 0:w.nickname})})]})})]})}},36253:function(e,r,t){"use strict";var n=t(59499),o=t(67294);function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){(0,n.Z)(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}r.Z=function(){var e=(0,o.useState)({}),r=e[0],t=e[1],i=(0,o.useState)(!1),a=i[0],s=i[1];return(0,o.useEffect)(function(){return s(!!(Object.keys(r).length&&Object.values(r).every(function(e){return e})))},[r]),{loaded:a,addToLoadingQueue:function(e){return function(o){return t(_objectSpread(_objectSpread({},r),{},(0,n.Z)({},e,o)))}}}}},26358:function(e,r,t){"use strict";t.d(r,{Ut:function(){return prettifyElapsedTime},o6:function(){return prettifyPendingTime},ti:function(){return prettifyDate}});var pluralizedString=function(e,r){return"".concat(e," ").concat(r+(e>1?"s":""))},prettifyDate=function(e){var r=new Date(e);return"".concat(r.toLocaleDateString()," ").concat(r.toLocaleTimeString())},timeComparator=function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e<0&&r?null:e<60?e<3?"Just now":"< 1 min":e<3600?pluralizedString(Math.floor(e/60),"min"):e<86400?pluralizedString(Math.floor(e/3600),"hour"):e<604800?pluralizedString(Math.floor(e/86400),"day"):e<2592e3?pluralizedString(Math.floor(e/604800),"week"):e<31536e3?pluralizedString(Math.floor(e/2592e3),"month"):pluralizedString(Math.floor(e/31536e3),"year")},prettifyElapsedTime=function(e){return timeComparator((Date.now()-new Date(e).getTime())/1e3||0)},prettifyPendingTime=function(e){if(!e)return null;var r=new Date(e).getTime(),t=Date.now();return timeComparator((Math.pow(10,r.toString().length<t.toString().length&&t.toString().length-r.toString().length)*new Date(e).getTime()-Date.now())/1e3||0,!0)}},12411:function(e,r,t){"use strict";t.r(r),t(67294);var n=t(94822),o=t(59671),i=t(22667),a=t(36253),s=t(85893);r.default=function(){var e=(0,a.Z)(),r=e.loaded,t=e.addToLoadingQueue;return(0,s.jsx)(o.Z,{title:"Resources",loading:!r,topBar:(0,s.jsx)(i.Z,{}),children:(0,s.jsx)(n.Z,{showAll:!0,loaded:t("resources")})})}},81602:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/resources",function(){return t(12411)}])},33134:function(e){e.exports={resources:"Resources_resources___0DLr",resource:"Resources_resource__zLMe1",resourceInformation:"Resources_resourceInformation__abPP1",resourceName:"Resources_resourceName__Omszx",resourceType:"Resources_resourceType__pwexE",resourcePreviewImage:"Resources_resourcePreviewImage__ujC2l"}},80343:function(e){e.exports={viewAllButton:"ViewAllButton_viewAllButton__CAgYO"}},64579:function(e){e.exports={profileBar:"ProfileBar_profileBar__FyNPf",avatar:"ProfileBar_avatar__SG14G"}}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=81602)}),_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.