PageSourceSearch

https://web.wearevoice.se/_next/static/chunks/pages/library/titles/create-eb68d61e4e1be7bc.js

js wearevoice.se collected 2026-09-25 03:15:56 UTC 3,585 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2170],{28939:function(e,n,r){"use strict";r.d(n,{Z:function(){return h}});var t=r(73940),i=r(11720),a=r(3570),o=r(44663),s=r(67569),c=r(99622),l=r(32151),u=r(21349),d=r.n(u),m=r(85893);function h(e){var n=e.title,r=e.submitButtonText,u=e.onSubmit,h=e.onCancel,_=e.name,p=e.onNameChange,f=e.description,v=e.onDescriptionChange,b=e.onBack,x=e.isSaving,j=e.children,Z=e.disableSave,y=(0,l.Z)().t;return(0,m.jsxs)(i.Z,{children:[(0,m.jsxs)("div",{className:d().headerWrapper,children:[(0,m.jsx)("h1",{className:d().header,children:n}),b&&(0,m.jsx)(s.Z,{primary:!0,onClick:b,children:y("common.back")})]}),(0,m.jsxs)("form",{className:d().form,onSubmit:u,children:[(0,m.jsxs)("div",{className:d().twoColumnSection,children:[(0,m.jsxs)("div",{className:d().margin,children:[(0,m.jsx)(o.Z,{required:!0,children:y("common.name")}),(0,m.jsx)(c.Z,{value:_,onChange:p,disabled:x,placeholder:y("library.namePlaceholder"),required:!0})]}),(0,m.jsxs)("div",{children:[(0,m.jsx)(o.Z,{children:y("common.description")}),(0,m.jsx)(c.Z,{type:"textarea",value:f,onChange:v,rows:5,disabled:x,placeholder:y("library.descriptionPlaceholder")})]})]}),j,(0,m.jsx)(a.Z,{className:d().divider}),(0,m.jsxs)("div",{className:d().buttonsWrapper,children:[(0,m.jsx)("div",{className:d().buttonGroup,children:(0,m.jsx)(t.Z,{type:"submit",disabled:x||!_||Z,blue:!0,children:null!=r?r:y("common.save")})}),(0,m.jsx)(s.Z,{className:d().cancelButton,disabled:Z,onClick:h,children:y("common.cancel")})]})]})]})}},54581:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return l}});var t=r(24685),i=r(25850),a=r(32151);r(67294);var o=r(52233),s=r.n(o),c=r(85893);function l(){var e=(0,a.Z)().t;return(0,c.jsx)(i.Z,{disableBanner:!0,children:(0,c.jsxs)(t.Z,{className:s().fullPage,children:["404. ",e("errors.pageNotFound")]})})}},71804:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return m}});var t=r(25850),i=r(28939),a=r(92754),o=r(68181),s=r(32151),c=r(11163),l=r(54581),u=r(67294),d=r(85893);function m(){var e=(0,s.Z)().t,n=(0,u.useState)(""),r=n[0],m=n[1],h=(0,u.useState)(""),_=h[0],p=h[1],f=(0,u.useState)(!1),v=f[0],b=f[1],x=(0,c.useRouter)(),j=(0,u.useCallback)(function(e){e.preventDefault(),b(!0),o.Z.postData("/arrangements",{name:r,description:_}).then(function(e){var n;null!=e&&e.id&&null!==(n=e.version)&&void 0!==n&&n.id&&x.push("/library/titles/".concat(e.id,"/").concat(e.version.id,"/media"))}).catch(function(e){console.error(e),b(!1)})},[r,_]);return a.Z.features.titles?(0,d.jsx)(t.Z,{children:(0,d.jsx)(i.Z,{title:e("library.titles.create.newTitle"),name:r,onNameChange:function(e){return m(e.currentTarget.value)},description:_,onDescriptionChange:function(e){return p(e.currentTarget.value)},submitButtonText:e("common.create"),onSubmit:j,onCancel:function(){return x.push("/library/titles")},isSaving:v})}):(0,d.jsx)(l.default,{})}},63959:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/library/titles/create",function(){return r(71804)}])},21349:function(e){e.exports={headerWrapper:"EntityForm_headerWrapper__av0sT",header:"EntityForm_header__h2VHr",form:"EntityForm_form__3MXrh",twoColumnSection:"EntityForm_twoColumnSection__UVKJd",margin:"EntityForm_margin__A2DP_",divider:"EntityForm_divider__611GI",buttonsWrapper:"EntityForm_buttonsWrapper__IJWzv",buttonGroup:"EntityForm_buttonGroup__PiH4y",cancelButton:"EntityForm_cancelButton__Uz1LP"}},52233:function(e){e.exports={fullPage:"__404_fullPage__oISZu"}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=63959)}),_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.