PageSourceSearch

https://mobilithek.info/assets/OrganisationOffers-9l-NiFxa.js

js mobilithek.info collected 2026-10-02 05:04:18 UTC 10,932 bytes, 1 lines download raw bytes

1import{s as A,E as C,a as M,b as L,d as p,ae as O,R,q as $,e as F,n as _,cJ as N,ff as D}from"./index-ChSLynr4.js";import{A as P}from"./AppPagination-CV7A6dda.js";import{T as u,R as k,S as w}from"./tableConstants-lD3X2jWH.js";import{O as V}from"./OfferService-CGwN8qO2.js";import{R as x}from"./ReloadBlock-Cnf1T0lq.js";import{A as G}from"./AppTableNoValue-DmgOyrEf.js";import{A as q,T as o}from"./filterStorageConstants-B0jmfEIg.js";import{A as U}from"./AppOverflowTip-C_kFnifz.js";import{A as B}from"./AppCounter-COTETA8o.js";import{L as Y}from"./ListHeader-BiXhoV5C.js";import{A as H}from"./AppMainInputSearch-DkNWUEqe.js";import{m as Q,a as S,n as J,s as j,b as z}from"./FilterStorageUtils-DUrtJUdB.js";import"./model-CDGZnTnI.js";import"./Pageable-DFFGbHd-.js";import"./RequestUtils-BYX7BqyI.js";import"./contentConstants-B4yfgkAL.js";import"./AppSpinner-CYP1qSJY.js";import"./stable-sort-Bm9ECECg.js";import"./get-CdTFFFCj.js";import"./kebabCase-D5cvsDy1.js";import"./AppTag-4UL1D1EN.js";import"./StringUtils-CMeKVQbU.js";import"./_baseIsEqual-SbNR-DPS.js";var n=(t=>(t.TITLE="TITLE",t.STATUS="STATUS",t.VISIBILITY="VISIBILITY",t.VALID_TO="VALID_TO",t.ORDERS="ORDERS",t.REQUESTS="REQUESTS",t))(n||{});const K=({dataOffer:t,offerContractsSummary:e})=>({id:t.id,publicationId:t.publicationId,title:t.title,status:t.status||null,visibility:t.accessRights||null,validTo:t.contractOffer.contractEnd||null,orders:e.ordered,requests:e.requested}),W={[n.TITLE]:"title",[n.STATUS]:"status",[n.VISIBILITY]:"visibility",[n.VALID_TO]:"validTo",[n.ORDERS]:"orders",[n.REQUESTS]:"requests"},v="MY_OFFERS";var X=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,b=(t,e,r,s)=>{for(var i=s>1?void 0:s?Z(e,r):e,d=t.length-1,g;d>=0;d--)(g=t[d])&&(i=(s?g(e,r,i):g(i))||i);return s&&i&&X(e,r,i),i};let c=class extends C{async getOrganisationOffers(){this.isError=!1,this.isLoading=!0;try{const{content:t,totalPages:e,totalElements:r}=await V.getOrganisationOffers({searchString:this.currentSearchString,page:this.page,sortField:W[this.sorting.field],sortOrder:w[this.sorting.order],size:k});this.offers=t.map(s=>K(s)),this.totalPages=e,this.totalElements=r}catch{this.isError=!0}finally{this.isLoading=!1}}};b([L],c.prototype,"getOrganisationOffers",1);c=b([M({generateMutationSetters:!0})],c);const a=new c({state:{offers:[],page:0,totalPages:0,totalElements:0,searchString:"",currentSearchString:"",sorting:{field:n.TITLE,order:u.ASCENDING},isLoading:!1,isError:!1},store:A,name:"organisationOffers"}),E=p({name:"OrganisationOffersList",components:{AppOverflowTip:U,AppTable:q,AppTableNoValue:G,AppPagination:P,ReloadBlock:x},emits:["fetch","sort-changed"],data(){return{organisationOffersModule:a,enumerationsModule:F,OrganisationOffersColumn:n,rolesModule:O}},computed:{tableFields(){return[{key:n.TITLE,label:this.$t("titleColumn"),sortable:!0,width:"34%"},{key:n.STATUS,label:this.$t("statusColumn"),sortable:!0,width:"15%"},{key:n.VISIBILITY,label:this.$t("visibilityColumn"),sortable:!0,width:"15%"},{key:n.VALID_TO,label:this.$t("validToColumn"),sortable:!0,width:"12%"},{key:n.ORDERS,label:this.$t("ordersColumn"),sortable:!0,width:"13%"},{key:n.REQUESTS,label:this.$t("requestsColumn"),sortable:!0,width:"11%"}]},hasNoResults(){return a.offers.length===0&&!a.isLoading},isPaginationShown(){return!a.isLoading&&a.totalPages>1}},methods:{formatDateString(t){return t?$.formatInUTC(t):""},handleRowClick({item:t}){O.hasRoleSubscriptionRead&&this.$router.push({name:R.ORGANISATION_OFFER_DETAILS,params:{offerId:t.publicationId}})}}});var m={en:{titleColumn:"Title",statusColumn:"Status",visibilityColumn:"Visibility",validToColumn:"Valid to",ordersColumn:"Orders",requestsColumn:"Requests",noResults:"No results were found.",noSearchResults:"No results were found for your search term."},de:{titleColumn:"Titel",statusColumn:"Status",visibilityColumn:"Sichtbarkeit",validToColumn:"Gültig bis",ordersColumn:"Abonnements",requestsColumn:"Anfragen",noResults:"Es wurden keine Ergebnisse gefunden.",noSearchResults:"Zu Ihrem Suchbegriff wurden keine Ergebnisse gefunden."}};const ee=m;m.en;m.de;function T(t){const e=t.options||t;e.__i18n=e.__i18n||[],e.__i18n.push(JSON.stringify(ee))}var te=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"organisation-offers-list"},[r("transition",{attrs:{mode:"out-in",name:"opacity"}},[e.organisationOffersModule.isError?r("ReloadBlock",{key:"error",staticClass:"organisation-offers-list__error",on:{reload:function(s){return e.$emit("fetch")}}}):e.hasNoResults?r("div",{key:"no-results",staticClass:"organisation-offers-list__no-results"},[e.organisationOffersModule.currentSearchString.length>0?[e._v(" "+e._s(e.$t("noSearchResults"))+" ")]:[e._v(" "+e._s(e.$t("noResults"))+" ")]],2):r("div",{key:"c
1ontent",staticClass:"organisation-offers-list__main-content"},[r("AppTable",{staticClass:"organisation-offers-table",attrs:{items:e.organisationOffersModule.offers,fields:e.tableFields,"is-row-clickable":e.rolesModule.hasRoleSubscriptionRead,sorting:e.organisationOffersModule.sorting,"is-loading":e.organisationOffersModule.isLoading,"row-open-aria-label-by":s=>s.title},on:{"row-clicked":e.handleRowClick,"sort-changed":function(s){return e.$emit("sort-changed",s)}},scopedSlots:e._u([{key:e.OrganisationOffersColumn.TITLE,fn:function({item:s}){return[r("AppOverflowTip",{staticClass:"organisation-offers-table__offer-title",attrs:{text:s.title}})]}},{key:e.OrganisationOffersColumn.STATUS,fn:function({item:s}){return[s.status?[e._v(" "+e._s(e.enumerationsModule.labelFor(s.status))+" ")]:r("AppTableNoValue")]}},{key:e.OrganisationOffersColumn.VISIBILITY,fn:function({item:s}){return[s.visibility?[e._v(" "+e._s(e.enumerationsModule.labelFor(s.visibility))+" ")]:r("AppTableNoValue")]}},{key:e.OrganisationOffersColumn.VALID_TO,fn:function({item:s}){return[s.validTo?[e._v(" "+e._s(e.formatDateString(s.validTo))+" ")]:r("AppTableNoValue")]}},{key:e.OrganisationOffersColumn.ORDERS,fn:function({item:s}){return[e._v(" "+e._s(s.orders)+" ")]}},{key:e.OrganisationOffersColumn.REQUESTS,fn:function({item:s}){return[e._v(" "+e._s(s.requests)+" ")]}}],null,!0)}),e.isPaginationShown?r("AppPagination",{staticClass:"organisation-offers-list__pagination",attrs:{"total-pages":e.organisationOffersModule.totalPages,"data-qa":"organisation-offers__pagination"},on:{input:function(s){return e.$emit("fetch")}},model:{value:e.organisationOffersModule.page,callback:function(s){e.$set(e.organisationOffersModule,"page",s)},expression:"organisationOffersModule.page"}}):e._e()],1)],1)],1)},re=[];typeof T=="function"&&T(E);var se=_(E,te,re,!1,null,"39f91b32");const ae=se.exports,y=p({name:"OrganisationOffersHeader",components:{AppButtonDropdownItem:D,AppButtonDropdown:N,AppCounter:B,ListHeader:Y,AppMainInputSearch:H},emits:["search","clear-search"],data(){return{RouteName:R,organisationOffersModule:a}}});var h={en:{myOffers:"My Offers",addOfferActions:"Add Offer...",addOfferManually:"Add Offer",addOfferImport:"Import Offer"},de:{myOffers:"Meine Angebote",addOfferActions:"Angebot erstellen...",addOfferManually:"Angebot erstellen",addOfferImport:"Angebote importieren"}};const ne=h;h.en;h.de;function I(t){const e=t.options||t;e.__i18n=e.__i18n||[],e.__i18n.push(JSON.stringify(ne))}var oe=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("ListHeader",{staticClass:"organisation-offers-header",scopedSlots:e._u([{key:"title",fn:function(){return[r("h1",{staticClass:"organisation-offers-header__title app-h1",attrs:{"data-qa":"organisation-offers__title"}},[e._v(" "+e._s(e.$t("myOffers"))+" ")])]},proxy:!0},{key:"counter",fn:function(){return[e.organisationOffersModule.isError?e._e():r("AppCounter",{staticClass:"organisation-offers-header__counter app-counter--primary",attrs:{value:e.organisationOffersModule.totalElements}})]},proxy:!0},{key:"actions",fn:function(){return[r("AppButtonDropdown",{staticClass:"organisation-offers-header__add-actions",attrs:{"toggle-class":"button button--primary button--small"},scopedSlots:e._u([{key:"button-content",fn:function(){return[e._v(" "+e._s(e.$t("addOfferActions"))+" ")]},proxy:!0}])},[r("AppButtonDropdownItem",{staticClass:"organisation-offers-header__add-button",attrs:{to:{name:e.RouteName.OFFER_ADD},"data-qa":"organisation-offers__add-button"}},[e._v(" "+e._s(e.$t("addOfferManually"))+" ")]),r("AppButtonDropdownItem",{staticClass:"organisation-offers-header__import-button",attrs:{to:{name:e.RouteName.OFFER_IMPORT},"data-qa":"organisation-offers__import-button"}},[e._v(" "+e._s(e.$t("addOfferImport"))+" ")])],1)]},proxy:!0},{key:"search",fn:function(){return[r("AppMainInputSearch",{attrs:{"data-qa":"organisation-offers__search"},on:{clear:function(s){return e.$emit("clear-search")},submit:function(s){return e.$emit("search")}},model:{value:e.organisationOffersModule.searchString,callback:function(s){e.$set(e.organisationOffersModule,"searchString",s)},expression:"organisationOffersModule.searchString"}})]},proxy:!0}])})},ie=[];typeof I=="function"&&I(y);var le=_(y,oe,ie,!1,null,"0e3ea1f8");const fe=le.exports,l=z(v),f=Q(v),ue=p({name:"OrganisationOffers",components:{OrganisationOffersHeader:fe,OrganisationOffersList:ae},data(){return{organisationOffersModule:a}},watch:{"organisationOffersModule.sorting":{handler(){l({param:o.SORTING_FIELD,emptyValue:n.TITLE,value:a.sorting.field}),l({param:o.SORTING_ORDER,emptyValue:u.ASCENDING,value:a.sorting.order})}},"organisationOffersModule.page":{handler(){l({param:o.PAGE,emptyValue:0,value:a.page})}},"organisationOffersModule.currentSearchString":{handler(){l({param:o.CURRENT_SEARCH_STRING,emptyValue:"",value:a.currentSearchString})}}},created(){this.restoreFiltersFromSession(),this.getOrganisationOffers()},destroyed(){a.resetState()},methods:{restoreFiltersFromSession(){const t=f({param:o.SORTING_FIELD,parser:S(n)})??n.TITLE,e=f({param:o.SORTING_ORDER,parser:S(u)})??u.ASCENDING;a.sorting={field:t,order:e},a.page=f({param:o.PAGE,parser:J})??0;const r=f({param:o.CURRENT_SEARCH_STRING,parser:j})??"";a.searchString=r,a.currentSearchString=r},getOrganisationOffers(){a.getOrganisationOffers()},handleSearchChange(){a.currentSearchString=a.searchString,a.page=0,this.getOrganisationOffers()},handleSortingChange(t){a.sorting=t,a.page=0,this.getOrganisationOffers()},clearSearchInputString(){a.currentSearchString&&this.handleSearchChange()}}});var ce=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("main",{staticClass:"organisation-offers"},[r("div",{staticClass:"container"},[r("OrganisationOffersHeader",{staticClass:"organisation-offers__header",on:{search:e.handleSearchChange,"clear-search":e.clearSearchInputString}}),r("OrganisationOffersList",{staticClass:"organisation-offers__list",attrs:{"data-qa":"organisation-offers__list"},on:{fetch:e.getOrganisationOffers,"sort-changed":e.handleSortingChange}})],1)])},de=[],ge=_(ue,ce,de,!1,null,"04d1ae8c");const we=ge.exports;export{we as default};

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.