PageSourceSearch

https://www.prospecierara.ch/_nuxt/_mD9V7Xh.js

js prospecierara.ch collected 2026-10-02 08:04:20 UTC 90,141 bytes, 87 lines download raw bytes

1import{_ as ua}from"./DQGQnOwu.js";import{_ as da}from"./BZkSNRhx.js";import{_ as ca}from"./hhtiSyJu.js";import{_ as Ue}from"./C4wHSS-q.js";import{_ as fa}from"./BHEA3eJz.js";import{_ as ma,a as pa}from"./CJ-i72gM.js";import{_ as Ae}from"./CEs68L7H.js";import{_ as va}from"./Ch4yLEJV.js";import{d as we,a as Te,Y as Pe,O as Me,r as Y,S as dt,T as ue,e as U,o as b,s as k,l as L,n as R,W as de,q as d,X as le,m as _,p as P,t as I,x as X,y as $e,V as je,h as De,Z as ga,a0 as ha,a1 as Pt,N as ba,a2 as ut,a3 as _a,a4 as Ct,z as ya,a5 as ka,a6 as Sa,a7 as Ea,a8 as wa,a9 as gn,B as Na,g as Da,aa as Ia,C as rn,F as Se,D as At,j as Cn,Q as Pa,I as Fa,b as Ta,c as $a,A as Oa,w as Va,K as Ca,ab as Aa,P as Ma,_ as La,v as Ba}from"./D1BBo57i.js";import{_ as An}from"./BxilpCjP.js";import{u as ct,t as ft}from"./BHwGYKH1.js";import{d as Mn}from"./CeZlPEUM.js";import{_ as xa}from"./BGEIZcOX.js";import{_ as Ra}from"./Cq7WkZoa.js";import{_ as Ua}from"./z9GswrZH.js";import{_ as ja}from"./BZ_qjlfp.js";import{_ as qa}from"./CgkPiwjc.js";import{d as za}from"./Cm7I7SPc.js";import{_ as Mt}from"./DyMGKO1M.js";import{_ as Ha}from"./BJPnOfzK.js";import{_ as Ln}from"./icYDumXm.js";import{_ as Xa}from"./BQFjx_rW.js";import{_ as Ya}from"./7CbnHyT9.js";import{d as Wa}from"./BqZq3uaP.js";import{u as Ga}from"./KBxUZaAn.js";import{u as Qa}from"./Q1RHIOlA.js";import"./CI_jk0xv.js";import"./Catzw8Q6.js";import"./CUN0TiVg.js";import"./7TDRtzYL.js";import"./CeMpoKeK.js";import"./BDYIKhli.js";import"./BpMDxYDz.js";import"./Bq9DDml1.js";var ge={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"updateMapProfile"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"enable"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"profileName"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"company"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"firstName"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"lastName"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"street"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"zip"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"city"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"manualLatitude"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"manualLongitude"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"website"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"phone"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"description"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"visitInformation"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}
1,{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"arrivalInstructionsPublicTransport"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"arrivalInstructionsCar"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"eventInformation"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"productsDescription"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"manualProducts"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"logoImage"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offeringPdf"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sliderImages"}},type:{kind:"NamedType",name:{kind:"Name",value:"FileMutation"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"profile"},name:{kind:"Name",value:"updateMapProfile"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mapProfile"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"enable"},value:{kind:"Variable",name:{kind:"Name",value:"enable"}}},{kind:"ObjectField",name:{kind:"Name",value:"profile_name"},value:{kind:"Variable",name:{kind:"Name",value:"profileName"}}},{kind:"ObjectField",name:{kind:"Name",value:"company"},value:{kind:"Variable",name:{kind:"Name",value:"company"}}},{kind:"ObjectField",name:{kind:"Name",value:"first_name"},value:{kind:"Variable",name:{kind:"Name",value:"firstName"}}},{kind:"ObjectField",name:{kind:"Name",value:"last_name"},value:{kind:"Variable",name:{kind:"Name",value:"lastName"}}},{kind:"ObjectField",name:{kind:"Name",value:"street"},value:{kind:"Variable",name:{kind:"Name",value:"street"}}},{kind:"ObjectField",name:{kind:"Name",value:"zip"},value:{kind:"Variable",name:{kind:"Name",value:"zip"}}},{kind:"ObjectField",name:{kind:"Name",value:"city"},value:{kind:"Variable",name:{kind:"Name",value:"city"}}},{kind:"ObjectField",name:{kind:"Name",value:"manual_latitude"},value:{kind:"Variable",name:{kind:"Name",value:"manualLatitude"}}},{kind:"ObjectField",name:{kind:"Name",value:"manual_longitude"},value:{kind:"Variable",name:{kind:"Name",value:"manualLongitude"}}},{kind:"ObjectField",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"ObjectField",name:{kind:"Name",value:"website"},value:{kind:"Variable",name:{kind:"Name",value:"website"}}},{kind:"ObjectField",name:{kind:"Name",value:"phone"},value:{kind:"Variable",name:{kind:"Name",value:"phone"}}},{kind:"ObjectField",name:{kind:"Name",value:"description"},value:{kind:"Variable",name:{kind:"Name",value:"description"}}},{kind:"ObjectField",name:{kind:"Name",value:"visit_information"},value:{kind:"Variable",name:{kind:"Name",value:"visitInformation"}}},{kind:"ObjectField",name:{kind:"Name",value:"arrival_instructions_public_transport"},value:{kind:"Variable",name:{kind:"Name",value:"arrivalInstructionsPublicTransport"}}},{kind:"ObjectField",name:{kind:"Name",value:"arrival_instructions_car"},value:{kind:"Variable",name:{kind:"Name",value:"arrivalInstructionsCar"}}},{kind:"ObjectField",name:{kind:"Name",value:"event_information"},value:{kind:"Variable",name:{kind:"Name",value:"eventInformation"}}},{kind:"ObjectField",name:{kind:"Name",value:"products_description"},value:{kind:"Variable",name:{kind:"Name",value:"productsDescription"}}},{kind:"ObjectField",name:{kind:"Name",value:"manual_products"},value:{kind:"Variable",name:{kind:"Name",value:"manualProducts"}}},{kind:"ObjectField",name:{kind:"Name",value:"logo_image"},value:{kind:"Variable",name:{kind:"Name",value:"logoImage"}}},{kind:"ObjectField",name:{kind:"Name",value:"offering_pdf"},value:{kind:"Variable",name:{kind:"Name",value:"offeringPdf"}}},{kind:"ObjectField",name:{kind:"Name",value:"slider_images"},value:{kind:"Variable",name:{kind:"Name",value:"sliderImages"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MapProfile"},directives:[]}]}}]}}],loc:{start:0,end:1679}};ge.loc.source={body:`#import "../fragments/MapProfile.fragment.gql"
2
3mutation updateMapProfile(
4    $enable: Boolean
5    $profileName: String
6    $company: String
7    $firstName: String
8    $lastName: String
9    $street: String
10    $zip: String
11    $city: String
12    $manualLatitude: String
13    $manualLongitude: String
14    $email: String
15    $website: String
16    $phone: String
17    $description: String
18    $visitInformation: String
19    $arrivalInstructionsPublicTransport: String
20    $arrivalInstructionsCar: String
21    $eventInformation: String
22    $productsDescription: String
23    $manualProducts: [Int]
24    $logoImage: Int
25    $offeringPdf: Int
26    $sliderImages: FileMutation
27) {
28    profile: updateMapProfile(
29        mapProfile: {
30            enable: $enable
31            profile_name: $profileName
32            company: $company
33            first_name: $firstName
34            last_name: $lastName
35            street: $street
36            zip: $zip
37            city: $city
38            manual_latitude: $manualLatitude
39            manual_longitude: $manualLongitude
40            email: $email
41            website: $website
42            phone: $phone
43            description: $description
44            visit_information: $visitInformation
45            arrival_instructions_public_transport: $arrivalInstructionsPublicTransport
46            arrival_instructions_car: $arrivalInstructionsCar
47            event_information: $eventInformation
48            products_description: $productsDescription
49            manual_products: $manualProducts
50            logo_image: $logoImage
51            offering_pdf: $offeringPdf
52            slider_images: $sliderImages
53        }
54    ) {
55        ...MapProfile
56    }
57}
58`,name:"GraphQL request",locationOffset:{line:1,column:1}};var hn={};function Ka(t){return t.filter(function(e){if(e.kind!=="FragmentDefinition")return!0;var n=e.name.value;return hn[n]?!1:(hn[n]=!0,!0)})}ge.definitions=ge.definitions.concat(Ka(Mn.definitions));function _t(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(a){_t(a,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(a){_t(a,e)}),t.definitions&&t.definitions.forEach(function(a){_t(a,e)})}var Kt={};(function(){ge.definitions.forEach(function(e){if(e.name){var n=new Set;_t(e,n),Kt[e.name.value]=n}})})();function bn(t,e){for(var n=0;n<t.definitions.length;n++){var a=t.definitions[n];if(a.name&&a.name.value==e)return a}}function Za(t,e){var n={kind:t.kind,definitions:[bn(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var a=Kt[e]||new Set,i=new Set,o=new Set;for(a.forEach(function(l){o.add(l)});o.size>0;){var r=o;o=new Set,r.forEach(function(l){if(!i.has(l)){i.add(l);var s=Kt[l]||new Set;s.forEach(function(u){o.add(u)})}})}return i.forEach(function(l){var s=bn(t,l);s&&n.definitions.push(s)}),n}Za(ge,"updateMapProfile");const Ja=we({__name:"FormEditProfileName",props:{profile:{type:Object,required:!0}},emits:["success"],setup(t,{emit:e}){const n=t,a=e,{t:i}=Te(),{mutate:o,loading:r,onDone:l,onError:s}=Pe(ge),{profile:u}=Me(n),f=Y(!1),m=i("form.labels.profileName"),{handleSubmit:g,defineField:h}=ct({validationSchema:ft(dt({profileName:ue().required().label(m)})),initialValues:{profileName:u.value.profileName||""}}),[S,w]=h("profileName",E=>({validateOnModelUpdate:E.errors.length>0,props:{name:"profileName",placeholder:m,label:m,type:"text",required:!0,error:E.errors}})),V=g(E=>{o({profileName:E.profileName}),s(()=>{f.value=!0}),l(()=>{f.value=!1,a("success")})});return(E,y)=>{const D=An,M=Ae,p=$e,x=Ue;return b(),U("form",{onSubmit:y[1]||(y[1]=je((...$)=>d(V)&&d(V)(...$),["prevent"]))},[k(D,de({modelValue:d(S),"onUpdate:modelValue":y[0]||(y[0]=$=>le(S)?S.value=$:null)},d(w)),null,16,["modelValue"]),f.value?(b(),L(M,{key:0,variant:"error",icon:"warning"},{default:_(()=>[P("p",null,I(E.$t("error.500")),1)]),_:1})):R("",!0),k(p,{type:"submit",disabled:d(r)},{default:_(()=>[X(I(E.$t("form.save")),1)]),_:1},8,["disabled"]),d(r)?(b(),L(x,{key:1,class:"fill"})):R("",!0)],32)}}}),ei=Object.assign(Ja,{__name:"FormEditProfileName"});function ti(t){return{fileSize:De(()=>{const n=t||0;if(!n)return"";const a=Math.floor(Math.log(n)/Math.log(1024));return`${(n/1024**a).toFixed(2)} ${["B","KB","MB","GB","TB"][a]}`})}}const ni={class:"FormInput file"},ai=["for"],ii={class:"FormInput__wrapper"},oi=["id","name","multiple","required","disabled","aria-invalid","aria-describedby","accept"],ri=we({__name:"FormInputFile",props:{name:{type:String,required:!1,default:void 0},required:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,default:!1},label:{type:String,required:!0},hideLabel:{type:Boolean,required:!1,default:!1},modelValue:{type:[Array,String,Object],required:!1,default:""},error:{type:[String,Array,Boolean],required:!1,default:""},maxSize:{type:Number,default:10485760}
58,maxFileCount:{type:Number,default:void 0},multiple:{type:Boolean,default:!1},acceptedFileTypes:{type:String,default:"image/jpeg,image/png,image/webp"}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,a=e,{t:i}=Te(),{maxSize:o}=Me(n),{fileSize:r}=ti(o.value),l=ga(),s=Y(),u=De(()=>typeof n.error=="boolean"?n.error:n.error&&n.error.length>0),f=De(()=>n.acceptedFileTypes.split(",").map(h=>h.trim())),m=De(()=>typeof n.error=="string"?[s.value,n.error]:Array.isArray(n.error)?[s.value,...n.error]:s.value||"");function g(h){const S=h.target;s.value="";const{files:w}=S;if(w&&(Array.from(w).find(y=>{const D=y.type;return!f.value.includes(D)})&&(s.value=i("components.FormInputFile.errors.invalidFileType",{allowedTypes:f.value.map(y=>y.split("/").pop()).join(", ").toUpperCase()})),Array.from(w).find(y=>y.size>n.maxSize)&&(s.value=i("components.FormInputFile.errors.fileTooLarge",{maxSize:r.value})),n.multiple&&n.maxFileCount!==void 0&&w.length>n.maxFileCount&&(s.value=i("components.FormInputFile.errors.tooManyFiles",{maxCount:n.maxFileCount}))),s.value){S.value="";return}a("update:modelValue",[...w||[]]),S.value=""}return(h,S)=>{const w=ja;return b(),U("div",ni,[P("label",{for:d(l),class:Pt(["FormInput__label",{isVisuallyHidden:t.hideLabel}])},I(t.label),11,ai),P("div",ii,[P("input",{id:d(l),class:Pt({hasError:u.value}),name:t.name,type:"file",multiple:t.multiple,required:t.required,disabled:t.disabled,"aria-invalid":u.value?"true":void 0,"aria-describedby":u.value?`${d(l)}__error`:void 0,accept:t.acceptedFileTypes,onChange:g},null,42,oi)]),k(w,{id:`${d(l)}__error`,errors:m.value},null,8,["id","errors"]),ha(h.$slots,"default")])}}}),ln=Object.assign(ri,{__name:"FormInputFile"}),li=["src","alt","title"],si=["placeholder"],ui={key:3},di={class:"isVisuallyHidden"},ci={class:"AtomFilePreview__actions"},fi=we({__name:"AtomFilePreview",props:{file:{type:Object,required:!0},tag:{type:String,default:"li"},sortable:{type:Boolean,default:!1},hasEditableDescription:{type:Boolean,default:!1}},emits:["remove","updateDescription"],setup(t){const e=t,{file:n}=Me(e),a=Y(n.value?.description||""),i=De(()=>{switch(n.value?.status){case"loading":return"loading";case!0:return"active";case!1:return"error";default:return""}});return(o,r)=>{const l=qa,s=Ue,u=ma,f=$e;return b(),L(ba(t.tag),{class:Pt(["AtomFilePreview",{sortable:t.sortable}])},{default:_(()=>[t.sortable?(b(),L(l,{key:0,class:"AtomFilePreview__sortHandle",name:"sortable"})):R("",!0),d(n).file?.type?.startsWith("image")?(b(),U("img",{key:1,class:"AtomFilePreview__image",src:d(n).url,alt:d(n)?.file?.name,title:d(n)?.file?.name},null,8,li)):R("",!0),t.hasEditableDescription?ut((b(),U("input",{key:2,"onUpdate:modelValue":r[0]||(r[0]=m=>a.value=m),class:"AtomFilePreview__input",type:"text",maxlength:"180",placeholder:o.$t("form.labels.caption"),onInput:r[1]||(r[1]=m=>o.$emit("updateDescription",d(n),a.value))},null,40,si)),[[_a,a.value]]):(b(),U("span",ui,I(d(n)?.file?.name),1)),ut(k(u,{status:i.value},{default:_(()=>[P("span",di,I(i.value),1),d(n).status==="loading"?(b(),L(s,{key:0,class:"mini"})):R("",!0)]),_:1},8,["status"]),[[Ct,i.value]]),P("div",ci,[k(f,{type:"button",class:"icon transparent",onClick:r[2]||(r[2]=m=>o.$emit("remove",d(n)))},{default:_(()=>[k(l,{name:"trash"})]),_:1})])]),_:1},8,["class"])}}}),sn=Object.assign(ya(fi,[["__scopeId","data-v-36bd08ed"]]),{__name:"AtomFilePreview"});function _n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,a)}return n}function Fe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_n(Object(n),!0).forEach(function(a){mi(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_n(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function yt(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?yt=function(e){return typeof e}:yt=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yt(t)}function mi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ce(){return Ce=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Ce.apply(this,arguments)}function pi(t,e){if(t==null)return{};var n={},a=Object.keys(t),i,o;for(o=0;o<a.length;o++)i=a[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function vi(t,e){if(t==null)return{};var n=pi(t,e),a,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)a=o[i],!(e.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}var gi="1.15.3";function Ve(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var Le=Ve(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),mt=Ve(/Edge/i),yn=Ve(/firefox/i),it=Ve(/safari/i)&&
vendor: 2,517 bytes, line 58
58!Ve(/chrome/i)&&!Ve(/android/i),Bn=Ve(/iP(ad|od|hone)/i),xn=Ve(/chrome/i)&&Ve(/android/i),Rn={capture:!1,passive:!1};function z(t,e,n){t.addEventListener(e,n,!Le&&Rn)}function j(t,e,n){t.removeEventListener(e,n,!Le&&Rn)}function Ft(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function Un(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function Ee(t,e,n,a){if(t){n=n||document;do{if(e!=null&&(e[0]===">"?t.parentNode===n&&Ft(t,e):Ft(t,e))||a&&t===n)return t;if(t===n)break}while(t=Un(t))}return null}var kn=/\s+/g;function be(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var a=(" "+t.className+" ").replace(kn," ").replace(" "+e+" "," ");t.className=(a+(n?" "+e:"")).replace(kn," ")}}function F(t,e,n){var a=t&&t.style;if(a){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),e===void 0?n:n[e];!(e in a)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),a[e]=n+(typeof n=="string"?"":"px")}}function Qe(t,e){var n="";if(typeof t=="string")n=t;else do{var a=F(t,"transform");a&&a!=="none"&&(n=a+" "+n)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function jn(t,e,n){if(t){var a=t.getElementsByTagName(e),i=0,o=a.length;if(n)for(;i<o;i++)n(a[i],i);return a}return[]}function Ie(){var t=document.scrollingElement;return t||document.documentElement}function ie(t,e,n,a,i){if(!(!t.getBoundingClientRect&&t!==window)){var o,r,l,s,u,f,m;if(t!==window&&t.parentNode&&t!==Ie()?(o=t.getBoundingClientRect(),r=o.top,l=o.left,s=o.bottom,u=o.right,f=o.height,m=o.width):(r=0,l=0,s=window.innerHeight,u=window.innerWidth,f=window.innerHeight,m=window.innerWidth),(e||n)&&t!==window&&(i=i||t.parentNode,!Le))do if(i&&i.getBoundingClientRect&&(F(i,"transform")!=="none"||n&&F(i,"position")!=="static")){var g=i.getBoundingClientRect();r-=g.top+parseInt(F(i,"border-top-width")),l-=g.left+parseInt(F(i,"border-left-width")),s=r+o.height,u=l+o.width;break}while(i=i.parentNode);if(a&&t!==window){var h=Qe(i||t),S=h&&h.a,w=h&&h.d;h&&(r/=w,l/=S,m/=S,f/=w,s=r+f,u=l+m)}return{top:r,left:l,bottom:s,right:u,width:m,height:f}}}function Sn(t,e,n){for(var a=Re(t,!0),i=ie(t)[e];a;){var o=ie(a)[n],r=void 0;if(r=i>=o,!r)return a;
vendor: 4,110 bytes, line 58
58if(a===Ie())break;a=Re(a,!1)}return!1}function Ke(t,e,n,a){for(var i=0,o=0,r=t.children;o<r.length;){if(r[o].style.display!=="none"&&r[o]!==T.ghost&&(a||r[o]!==T.dragged)&&Ee(r[o],n.draggable,t,!1)){if(i===e)return r[o];i++}o++}return null}function un(t,e){for(var n=t.lastElementChild;n&&(n===T.ghost||F(n,"display")==="none"||e&&!Ft(n,e));)n=n.previousElementSibling;return n||null}function ye(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==T.clone&&(!e||Ft(t,e))&&n++;return n}function En(t){var e=0,n=0,a=Ie();if(t)do{var i=Qe(t),o=i.a,r=i.d;e+=t.scrollLeft*o,n+=t.scrollTop*r}while(t!==a&&(t=t.parentNode));return[e,n]}function hi(t,e){for(var n in t)if(t.hasOwnProperty(n)){for(var a in e)if(e.hasOwnProperty(a)&&e[a]===t[n][a])return Number(n)}return-1}function Re(t,e){if(!t||!t.getBoundingClientRect)return Ie();var n=t,a=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=F(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Ie();if(a||e)return n;a=!0}}while(n=n.parentNode);return Ie()}function bi(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function jt(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var ot;function qn(t,e){return function(){if(!ot){var n=arguments,a=this;n.length===1?t.call(a,n[0]):t.apply(a,n),ot=setTimeout(function(){ot=void 0},e)}}}function _i(){clearTimeout(ot),ot=void 0}function zn(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function Hn(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function Xn(t,e,n){var a={};return Array.from(t.children).forEach(function(i){var o,r,l,s;if(!(!Ee(i,e.draggable,t,!1)||i.animated||i===n)){var u=ie(i);a.left=Math.min((o=a.left)!==null&&o!==void 0?o:1/0,u.left),a.top=Math.min((r=a.top)!==null&&r!==void 0?r:1/0,u.top),a.right=Math.max((l=a.right)!==null&&l!==void 0?l:-1/0,u.right),a.bottom=Math.max((s=a.bottom)!==null&&s!==void 0?s:-1/0,u.bottom)}}),a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}var ve="Sortable"+new Date().getTime();function yi(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var a=[].slice.call(this.el.children);a.forEach(function(i){if(!(F(i,"display")==="none"||i===T.ghost)){t.push({target:i,rect:ie(i)});var o=Fe({},t[t.length-1].rect);if(i.thisAnimationDuration){var r=Qe(i,!0);r&&(o.top-=r.f,o.left-=r.e)}i.fromRect=o}})}},addAnimationState:function(a){t.push(a)},removeAnimationState:function(a){t.splice(hi(t,{target:a}),1)},animateAll:function(a){var i=this;if(!this.options.animation){clearTimeout(e),typeof a=="function"&&a();return}var o=!1,r=0;t.forEach(function(l){var s=0,u=l.target,f=u.fromRect,m=ie(u),g=u.prevFromRect,h=u.prevToRect,S=l.rect,w=Qe(u,!0);w&&(m.top-=w.f,m.left-=w.e),u.toRect=m,u.thisAnimationDuration&&jt(g,m)&&!jt(f,m)&&(S.top-m.top)/(S.left-m.left)===(f.top-m.top)/(f.left-m.left)&&(s=Si(S,g,h,i.options)),jt(m,f)||(u.prevFromRect=f,u.prevToRect=m,s||(s=i.options.animation),i.animate(u,S,m,s)),s&&(o=!0,r=Math.max(r,s),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},s),u.thisAnimationDuration=s)}),clearTimeout(e),o?e=setTimeout(function(){typeof a=="function"&&a()},r):typeof a=="function"&&a(),t=[]},animate:function(a,i,o,r){if(r){F(a,"transition",""),F(a,"transform","");var l=Qe(this.el),s=l&&l.a,u=l&&l.d,f=(i.left-o.left)/(s||1),m=(i.top-o.top)/(u||1);a.animatingX=!!f,a.animatingY=!!m,F(a,"transform","translate3d("+f+"px,"+m+"px,0)"),this.forRepaintDummy=ki(a),F(a,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),F(a,"transform","translate3d(0,
580,0)"),typeof a.animated=="number"&&clearTimeout(a.animated),a.animated=setTimeout(function(){F(a,"transition",""),F(a,"transform",""),a.animated=!1,a.animatingX=!1,a.animatingY=!1},r)}}}}function ki(t){return t.offsetWidth}function Si(t,e,n,a){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*a.animation}var Xe=[],qt={initializeByDefault:!0},pt={mount:function(e){for(var n in qt)qt.hasOwnProperty(n)&&!(n in e)&&(e[n]=qt[n]);Xe.forEach(function(a){if(a.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),Xe.push(e)},pluginEvent:function(e,n,a){var i=this;this.eventCanceled=!1,a.cancel=function(){i.eventCanceled=!0};var o=e+"Global";Xe.forEach(function(r){n[r.pluginName]&&(n[r.pluginName][o]&&n[r.pluginName][o](Fe({sortable:n},a)),n.options[r.pluginName]&&n[r.pluginName][e]&&n[r.pluginName][e](Fe({sortable:n},a)))})},initializePlugins:function(e,n,a,i){Xe.forEach(function(l){var s=l.pluginName;if(!(!e.options[s]&&!l.initializeByDefault)){var u=new l(e,n,e.options);u.sortable=e,u.options=e.options,e[s]=u,Ce(a,u.defaults)}});for(var o in e.options)if(e.options.hasOwnProperty(o)){var r=this.modifyOption(e,o,e.options[o]);typeof r<"u"&&(e.options[o]=r)}},getEventProperties:function(e,n){var a={};return Xe.forEach(function(i){typeof i.eventProperties=="function"&&Ce(a,i.eventProperties.call(n[i.pluginName],e))}),a},modifyOption:function(e,n,a){var i;return Xe.forEach(function(o){e[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[n]=="function"&&(i=o.optionListeners[n].call(e[o.pluginName],a))}),i}};function Ei(t){var e=t.sortable,n=t.rootEl,a=t.name,i=t.targetEl,o=t.cloneEl,r=t.toEl,l=t.fromEl,s=t.oldIndex,u=t.newIndex,f=t.oldDraggableIndex,m=t.newDraggableIndex,g=t.originalEvent,h=t.putSortable,S=t.extraEventProperties;if(e=e||n&&n[ve],!!e){var w,V=e.options,E="on"+a.charAt(0).toUpperCase()+a.substr(1);window.CustomEvent&&!Le&&!mt?w=new CustomEvent(a,{bubbles:!0,cancelable:!0}):(w=document.createEvent("Event"),w.initEvent(a,!0,!0)),w.to=r||n,w.from=l||n,w.item=i||n,w.clone=o,w.oldIndex=s,w.newIndex=u,w.oldDraggableIndex=f,w.newDraggableIndex=m,w.originalEvent=g,w.pullMode=h?h.lastPutMode:void 0;var y=Fe(Fe({},S),pt.getEventProperties(a,e));for(var D in y)w[D]=y[D];n&&n.dispatchEvent(w),V[E]&&V[E].call(e,w)}}var wi=["evt"],pe=function(e,n){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=a.evt,o=vi(a,wi);pt.pluginEvent.bind(T)(e,n,Fe({dragEl:v,parentEl:ee,ghostEl:A,rootEl:K,nextEl:He,lastDownEl:kt,cloneEl:J,cloneHidden:xe,dragStarted:tt,putSortable:se,activeSortable:T.active,originalEvent:i,oldIndex:Ge,oldDraggableIndex:rt,newIndex:_e,newDraggableIndex:Be,hideGhostForTarget:Qn,unhideGhostForTarget:Kn,cloneNowHidden:function(){xe=!0},cloneNowShown:function(){xe=!1},dispatchSortableEvent:function(l){fe({sortable:n,name:l,originalEvent:i})}},o))};function fe(t){Ei(Fe({putSortable:se,cloneEl:J,targetEl:v,rootEl:K,oldIndex:Ge,oldDraggableIndex:rt,newIndex:_e,newDraggableIndex:Be},t))}var v,ee,A,K,He,kt,J,xe,Ge,_e,rt,Be,vt,se,We=!1,Tt=!1,$t=[],qe,ke,zt,Ht,wn,Nn,tt,Ye,lt,st=!1,gt=!1,St,ce,Xt=[],Zt=!1,Ot=[],Lt=typeof document<"u",ht=Bn,Dn=mt||Le?"cssFloat":"float",Ni=Lt&&!xn&&!Bn&&"draggable"in document.createElement("div"),Yn=(function(){if(Lt){if(Le)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}})(),Wn=function(e,n){var a=F(e),i=parseInt(a.width)-parseInt(a.paddingLeft)-parseInt(a.paddingRight)-parseInt(a.borderLeftWidth)-parseInt(a.borderRightWidth),o=Ke(e,0,n),r=Ke(e,1,n),l=o&&F(o),s=r&&F(r),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+ie(o).width,f=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+ie(r).width;if(a.display==="flex")return a.flexDirection==="column"||a.flexDirection==="column-reverse"?"vertical":"horizontal";if(a.display==="grid")return a.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&l.float&&l.float!=="none"){var m=l.float==="left"?"left":"right";return r&&(s.clear==="both"||s.clear===m)?"vertical":"horizontal"}return o&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=i&&a[Dn]==="none"||r&&a[Dn]==="none"&&u+f>i)?"vertical":"horizontal"},Di=function(e,n,a){var i=a?e.left:e.top,o=a?e.right:e.bottom,r=a?e.width:e.height,l=a?n.left:n.top,s=a?n.right:n.bottom,u=a?n.width:n.height;return i===l||o===s||i+r/2===l+u/2},Ii=function(e,n){var a;return $t.some(function(i){var o=i[ve].options.emptyInsertThreshold;if(!(!o||un(i))){var r=ie(i),l=e>=r.left-o&&e<=r.right+o,s=n>=r.top-o&&n<=r.bottom+o;if(l&&s)return a=i}}),a},Gn=function(e){function n(o,r){return function(l,s,u,f){var m=l.options.group.name&&s.options.group.name&&l.options.group.name===s.options.group.name;if(o==null&&(r||m))return!0;
vendor: 5,846 bytes, line 58
58if(o==null||o===!1)return!1;if(r&&o==="clone")return o;if(typeof o=="function")return n(o(l,s,u,f),r)(l,s,u,f);var g=(r?l:s).options.group.name;return o===!0||typeof o=="string"&&o===g||o.join&&o.indexOf(g)>-1}}var a={},i=e.group;(!i||yt(i)!="object")&&(i={name:i}),a.name=i.name,a.checkPull=n(i.pull,!0),a.checkPut=n(i.put),a.revertClone=i.revertClone,e.group=a},Qn=function(){!Yn&&A&&F(A,"display","none")},Kn=function(){!Yn&&A&&F(A,"display","")};Lt&&!xn&&document.addEventListener("click",function(t){if(Tt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Tt=!1,!1},!0);var ze=function(e){if(v){e=e.touches?e.touches[0]:e;var n=Ii(e.clientX,e.clientY);if(n){var a={};for(var i in e)e.hasOwnProperty(i)&&(a[i]=e[i]);a.target=a.rootEl=n,a.preventDefault=void 0,a.stopPropagation=void 0,n[ve]._onDragOver(a)}}},Pi=function(e){v&&v.parentNode[ve]._isOutsideThisEl(e.target)};function T(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=Ce({},e),t[ve]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Wn(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(r,l){r.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:T.supportPointer!==!1&&"PointerEvent"in window&&!it,emptyInsertThreshold:5};pt.initializePlugins(this,t,n);for(var a in n)!(a in e)&&(e[a]=n[a]);Gn(e);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=e.forceFallback?!1:Ni,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?z(t,"pointerdown",this._onTapStart):(z(t,"mousedown",this._onTapStart),z(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(z(t,"dragover",this),z(t,"dragenter",this)),$t.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Ce(this,yi())}T.prototype={constructor:T,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Ye=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,v):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,a=this.el,i=this.options,o=i.preventOnFilter,r=e.type,l=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(l||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,f=i.filter;if(Mi(a),!v&&!(/mousedown|pointerdown/.test(r)&&e.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&it&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=Ee(s,i.draggable,a,!1),!(s&&s.animated)&&kt!==s)){if(Ge=ye(s),rt=ye(s,i.draggable),typeof f=="function"){if(f.call(this,e,s,this)){fe({sortable:n,rootEl:u,name:"filter",targetEl:s,toEl:a,fromEl:a}),pe("filter",n,{evt:e}),o&&e.cancelable&&e.preventDefault();return}}else if(f&&(f=f.split(",").some(function(m){if(m=Ee(u,m.trim(),a,!1),m)return fe({sortable:n,rootEl:m,name:"filter",targetEl:s,fromEl:a,toEl:a}),pe("filter",n,{evt:e}),!0}),f)){o&&e.cancelable&&e.preventDefault();return}i.handle&&!Ee(u,i.handle,a,!1)||this._prepareDragStart(e,l,s)}}},_prepareDragStart:function(e,n,a){var i=this,o=i.el,r=i.options,l=o.ownerDocument,s;if(a&&!v&&a.parentNode===o){var u=ie(a);if(K=o,v=a,ee=v.parentNode,He=v.nextSibling,kt=a,vt=r.group,T.dragged=v,qe={target:v,clientX:(n||e).clientX,clientY:(n||e).clientY},wn=qe.clientX-u.left,Nn=qe.clientY-u.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,v.style["will-change"]="all",s=function(){if(pe("delayEnded",i,{evt:e}),T.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!yn&&i.nativeDraggable&&(v.draggable=!0),i._triggerDragStart(e,n),fe({sortable:i,name:"choose",originalEvent:e}),be(v,r.chosenClass,!0)},r.ignore.split(",").forEach(function(f){jn(v,f.trim(),Yt)}),z(l,"dragover",ze),z(l,"mousemove",ze),z(l,"touchmove",ze),z(l,"mouseup",i._onDrop),z(l,"touchend",i._onDrop),z(l,"touchcancel",i._onDrop),yn&&this.nativeDraggable&&(this.options.touchStartThreshold=4,v.draggable=!0),pe("delayStart",this,{evt:e}),r.delay&&(!r.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(mt||Le))){if(T.eventCanceled){this._onDrop();return}z(l,"mouseup",i._disableDelayedDrag),z(l,"touchend",i._disableDelayedDrag),z(l,"touchcancel",i._disableDelayedDrag),z(l,"mousemove",i._delayedDragTouchMoveHandler),z(l,"touchmove",i._delayedDragTouchMoveHandler),r.supportPointer&&z(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(s,r.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){v&&Yt(v),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;j(e,"mouseup",this._disableDelayedDrag),j(e,"touchend",this._disableDelayedDrag),j(e,"touchcancel",this._disableDelayedDrag),j(e,"mousemove",this._delayedDragTouchMoveHandler),j(e,"touchmove",this._delayedDragTouchMoveHandler),j(e,"pointermove",this._delayedDragTouchMoveHandler)}
vendor: 4,748 bytes, line 58
58,_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?z(document,"pointermove",this._onTouchMove):n?z(document,"touchmove",this._onTouchMove):z(document,"mousemove",this._onTouchMove):(z(v,"dragend",this),z(K,"dragstart",this._onDragStart));try{document.selection?Et(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(We=!1,K&&v){pe("dragStarted",this,{evt:n}),this.nativeDraggable&&z(document,"dragover",Pi);var a=this.options;!e&&be(v,a.dragClass,!1),be(v,a.ghostClass,!0),T.active=this,e&&this._appendGhost(),fe({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(ke){this._lastX=ke.clientX,this._lastY=ke.clientY,Qn();for(var e=document.elementFromPoint(ke.clientX,ke.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ke.clientX,ke.clientY),e!==n);)n=e;if(v.parentNode[ve]._isOutsideThisEl(e),n)do{if(n[ve]){var a=void 0;if(a=n[ve]._onDragOver({clientX:ke.clientX,clientY:ke.clientY,target:e,rootEl:n}),a&&!this.options.dragoverBubble)break}e=n}while(n=Un(n));Kn()}},_onTouchMove:function(e){if(qe){var n=this.options,a=n.fallbackTolerance,i=n.fallbackOffset,o=e.touches?e.touches[0]:e,r=A&&Qe(A,!0),l=A&&r&&r.a,s=A&&r&&r.d,u=ht&&ce&&En(ce),f=(o.clientX-qe.clientX+i.x)/(l||1)+(u?u[0]-Xt[0]:0)/(l||1),m=(o.clientY-qe.clientY+i.y)/(s||1)+(u?u[1]-Xt[1]:0)/(s||1);if(!T.active&&!We){if(a&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<a)return;this._onDragStart(e,!0)}if(A){r?(r.e+=f-(zt||0),r.f+=m-(Ht||0)):r={a:1,b:0,c:0,d:1,e:f,f:m};var g="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");F(A,"webkitTransform",g),F(A,"mozTransform",g),F(A,"msTransform",g),F(A,"transform",g),zt=f,Ht=m,ke=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!A){var e=this.options.fallbackOnBody?document.body:K,n=ie(v,!0,ht,!0,e),a=this.options;if(ht){for(ce=e;F(ce,"position")==="static"&&F(ce,"transform")==="none"&&ce!==document;)ce=ce.parentNode;ce!==document.body&&ce!==document.documentElement?(ce===document&&(ce=Ie()),n.top+=ce.scrollTop,n.left+=ce.scrollLeft):ce=Ie(),Xt=En(ce)}A=v.cloneNode(!0),be(A,a.ghostClass,!1),be(A,a.fallbackClass,!0),be(A,a.dragClass,!0),F(A,"transition",""),F(A,"transform",""),F(A,"box-sizing","border-box"),F(A,"margin",0),F(A,"top",n.top),F(A,"left",n.left),F(A,"width",n.width),F(A,"height",n.height),F(A,"opacity","0.8"),F(A,"position",ht?"absolute":"fixed"),F(A,"zIndex","100000"),F(A,"pointerEvents","none"),T.ghost=A,e.appendChild(A),F(A,"transform-origin",wn/parseInt(A.style.width)*100+"% "+Nn/parseInt(A.style.height)*100+"%")}},_onDragStart:function(e,n){var a=this,i=e.dataTransfer,o=a.options;if(pe("dragStart",this,{evt:e}),T.eventCanceled){this._onDrop();return}pe("setupClone",this),T.eventCanceled||(J=Hn(v),J.removeAttribute("id"),J.draggable=!1,J.style["will-change"]="",this._hideClone(),be(J,this.options.chosenClass,!1),T.clone=J),a.cloneId=Et(function(){pe("clone",a),!T.eventCanceled&&(a.options.removeCloneOnHide||K.insertBefore(J,v),a._hideClone(),fe({sortable:a,name:"clone"}))}),!n&&be(v,o.dragClass,!0),n?(Tt=!0,a._loopId=setInterval(a._emulateDragOver,50)):(j(document,"mouseup",a._onDrop),j(document,"touchend",a._onDrop),j(document,"touchcancel",a._onDrop),i&&(i.effectAllowed="move",o.setData&&o.setData.call(a,i,v)),z(document,"drop",a),F(v,"transform","translateZ(0)")),We=!0,a._dragStartId=Et(a._dragStarted.bind(a,n,e)),z(document,"selectstart",a),tt=!0,it&&F(document.body,"user-select","none")},_onDragOver:function(e){var n=this.el,a=e.target,i,o,r,l=this.options,s=l.group,u=T.active,f=vt===s,m=l.sort,g=se||u,h,S=this,w=!1;if(Zt)return;function V(he,ne){pe(he,S,Fe({evt:e,isOwner:f,axis:h?"vertical":"horizontal",revert:r,dragRect:i,targetRect:o,canSort:m,fromSortable:g,target:a,completed:y,onMove:function(B,re){return bt(K,n,v,i,B,ie(B),e,re)},changed:D},ne))}function E(){V("dragOverAnimationCapture"),S.captureAnimationState(),S!==g&&g.captureAnimationState()}function y(he){return V("dragOverCompleted",{insertion:he}),he&&(f?u._hideClone():u._showClone(S),S!==g&&(be(v,se?se.options.ghostClass:u.options.ghostClass,!1),be(v,l.ghostClass,!0)),se!==S&&S!==T.active?se=S:S===T.active&&se&&(se=null),g===S&&(S._ignoreWhileAnimating=a),S.animateAll(function(){V("dragOverAnimationComplete"),S._ignoreWhileAnimating=null}),S!==g&&(g.animateAll(),g._ignoreWhileAnimating=null)),(a===v&&!v.animated||a===n&&!a.animated)&&(Ye=null),!l.dragoverBubble&&!e.rootEl&&a!==document&&(v.parentNode[ve]._isOutsideThisEl(e.target),!he&&ze(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),w=!0}
vendor: 4,505 bytes, line 58
58function D(){_e=ye(v),Be=ye(v,l.draggable),fe({sortable:S,name:"change",toEl:n,newIndex:_e,newDraggableIndex:Be,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),a=Ee(a,l.draggable,n,!0),V("dragOver"),T.eventCanceled)return w;if(v.contains(e.target)||a.animated&&a.animatingX&&a.animatingY||S._ignoreWhileAnimating===a)return y(!1);if(Tt=!1,u&&!l.disabled&&(f?m||(r=ee!==K):se===this||(this.lastPutMode=vt.checkPull(this,u,v,e))&&s.checkPut(this,u,v,e))){if(h=this._getDirection(e,a)==="vertical",i=ie(v),V("dragOverValid"),T.eventCanceled)return w;if(r)return ee=K,E(),this._hideClone(),V("revert"),T.eventCanceled||(He?K.insertBefore(v,He):K.appendChild(v)),y(!0);var M=un(n,l.draggable);if(!M||Oi(e,h,this)&&!M.animated){if(M===v)return y(!1);if(M&&n===e.target&&(a=M),a&&(o=ie(a)),bt(K,n,v,i,a,o,e,!!a)!==!1)return E(),M&&M.nextSibling?n.insertBefore(v,M.nextSibling):n.appendChild(v),ee=n,D(),y(!0)}else if(M&&$i(e,h,this)){var p=Ke(n,0,l,!0);if(p===v)return y(!1);if(a=p,o=ie(a),bt(K,n,v,i,a,o,e,!1)!==!1)return E(),n.insertBefore(v,p),ee=n,D(),y(!0)}else if(a.parentNode===n){o=ie(a);var x=0,$,Z=v.parentNode!==n,H=!Di(v.animated&&v.toRect||i,a.animated&&a.toRect||o,h),q=h?"top":"left",C=Sn(a,"top","top")||Sn(v,"top","top"),te=C?C.scrollTop:void 0;Ye!==a&&($=o[q],st=!1,gt=!H&&l.invertSwap||Z),x=Vi(e,a,o,h,H?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,gt,Ye===a);var c;if(x!==0){var O=ye(v);do O-=x,c=ee.children[O];while(c&&(F(c,"display")==="none"||c===A))}if(x===0||c===a)return y(!1);Ye=a,lt=x;var Q=a.nextElementSibling,W=!1;W=x===1;var me=bt(K,n,v,i,a,o,e,W);if(me!==!1)return(me===1||me===-1)&&(W=me===1),Zt=!0,setTimeout(Ti,30),E(),W&&!Q?n.appendChild(v):a.parentNode.insertBefore(v,W?Q:a),C&&zn(C,0,te-C.scrollTop),ee=v.parentNode,$!==void 0&&!gt&&(St=Math.abs($-ie(a)[q])),D(),y(!0)}if(n.contains(v))return y(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){j(document,"mousemove",this._onTouchMove),j(document,"touchmove",this._onTouchMove),j(document,"pointermove",this._onTouchMove),j(document,"dragover",ze),j(document,"mousemove",ze),j(document,"touchmove",ze)},_offUpEvents:function(){var e=this.el.ownerDocument;j(e,"mouseup",this._onDrop),j(e,"touchend",this._onDrop),j(e,"pointerup",this._onDrop),j(e,"touchcancel",this._onDrop),j(document,"selectstart",this)},_onDrop:function(e){var n=this.el,a=this.options;if(_e=ye(v),Be=ye(v,a.draggable),pe("drop",this,{evt:e}),ee=v&&v.parentNode,_e=ye(v),Be=ye(v,a.draggable),T.eventCanceled){this._nulling();return}We=!1,gt=!1,st=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Jt(this.cloneId),Jt(this._dragStartId),this.nativeDraggable&&(j(document,"drop",this),j(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),it&&F(document.body,"user-select",""),F(v,"transform",""),e&&(tt&&(e.cancelable&&e.preventDefault(),!a.dropBubble&&e.stopPropagation()),A&&A.parentNode&&A.parentNode.removeChild(A),(K===ee||se&&se.lastPutMode!=="clone")&&J&&J.parentNode&&J.parentNode.removeChild(J),v&&(this.nativeDraggable&&j(v,"dragend",this),Yt(v),v.style["will-change"]="",tt&&!We&&be(v,se?se.options.ghostClass:this.options.ghostClass,!1),be(v,this.options.chosenClass,!1),fe({sortable:this,name:"unchoose",toEl:ee,newIndex:null,newDraggableIndex:null,originalEvent:e}),K!==ee?(_e>=0&&(fe({rootEl:ee,name:"add",toEl:ee,fromEl:K,originalEvent:e}),fe({sortable:this,name:"remove",toEl:ee,originalEvent:e}),fe({rootEl:ee,name:"sort",toEl:ee,fromEl:K,originalEvent:e}),fe({sortable:this,name:"sort",toEl:ee,originalEvent:e})),se&&se.save()):_e!==Ge&&_e>=0&&(fe({sortable:this,name:"update",toEl:ee,originalEvent:e}),fe({sortable:this,name:"sort",toEl:ee,originalEvent:e})),T.active&&((_e==null||_e===-1)&&(_e=Ge,Be=rt),fe({sortable:this,name:"end",toEl:ee,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){pe("nulling",this),K=v=ee=A=He=J=kt=xe=qe=ke=tt=_e=Be=Ge=rt=Ye=lt=se=vt=T.dragged=T.ghost=T.clone=T.active=null,Ot.forEach(function(e){e.checked=!0}),Ot.length=zt=Ht=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":v&&(this._onDragOver(e),Fi(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,a=this.el.children,i=0,o=a.length,r=this.options;i<o;i++)n=a[i],Ee(n,r.draggable,this.el,!1)&&e.push(n.getAttribute(r.dataIdAttr)||Ai(n));return e},sort:function(e,n){var a={},i=this.el;
vendor: 5,319 bytes, line 58
58this.toArray().forEach(function(o,r){var l=i.children[r];Ee(l,this.options.draggable,i,!1)&&(a[o]=l)},this),n&&this.captureAnimationState(),e.forEach(function(o){a[o]&&(i.removeChild(a[o]),i.appendChild(a[o]))}),n&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,n){return Ee(e,n||this.options.draggable,this.el,!1)},option:function(e,n){var a=this.options;if(n===void 0)return a[e];var i=pt.modifyOption(this,e,n);typeof i<"u"?a[e]=i:a[e]=n,e==="group"&&Gn(a)},destroy:function(){pe("destroy",this);var e=this.el;e[ve]=null,j(e,"mousedown",this._onTapStart),j(e,"touchstart",this._onTapStart),j(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(j(e,"dragover",this),j(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),$t.splice($t.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!xe){if(pe("hideClone",this),T.eventCanceled)return;F(J,"display","none"),this.options.removeCloneOnHide&&J.parentNode&&J.parentNode.removeChild(J),xe=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(xe){if(pe("showClone",this),T.eventCanceled)return;v.parentNode==K&&!this.options.group.revertClone?K.insertBefore(J,v):He?K.insertBefore(J,He):K.appendChild(J),this.options.group.revertClone&&this.animate(v,J),F(J,"display",""),xe=!1}}};function Fi(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function bt(t,e,n,a,i,o,r,l){var s,u=t[ve],f=u.options.onMove,m;return window.CustomEvent&&!Le&&!mt?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=e,s.from=t,s.dragged=n,s.draggedRect=a,s.related=i||e,s.relatedRect=o||ie(e),s.willInsertAfter=l,s.originalEvent=r,t.dispatchEvent(s),f&&(m=f.call(u,s,r)),m}function Yt(t){t.draggable=!1}function Ti(){Zt=!1}function $i(t,e,n){var a=ie(Ke(n.el,0,n.options,!0)),i=Xn(n.el,n.options,A),o=10;return e?t.clientX<i.left-o||t.clientY<a.top&&t.clientX<a.right:t.clientY<i.top-o||t.clientY<a.bottom&&t.clientX<a.left}function Oi(t,e,n){var a=ie(un(n.el,n.options.draggable)),i=Xn(n.el,n.options,A),o=10;return e?t.clientX>i.right+o||t.clientY>a.bottom&&t.clientX>a.left:t.clientY>i.bottom+o||t.clientX>a.right&&t.clientY>a.top}function Vi(t,e,n,a,i,o,r,l){var s=a?t.clientY:t.clientX,u=a?n.height:n.width,f=a?n.top:n.left,m=a?n.bottom:n.right,g=!1;if(!r){if(l&&St<u*i){if(!st&&(lt===1?s>f+u*o/2:s<m-u*o/2)&&(st=!0),st)g=!0;else if(lt===1?s<f+St:s>m-St)return-lt}else if(s>f+u*(1-i)/2&&s<m-u*(1-i)/2)return Ci(e)}return g=g||r,g&&(s<f+u*o/2||s>m-u*o/2)?s>f+u/2?1:-1:0}function Ci(t){return ye(v)<ye(t)?1:-1}function Ai(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,a=0;n--;)a+=e.charCodeAt(n);return a.toString(36)}function Mi(t){Ot.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var a=e[n];a.checked&&Ot.push(a)}}function Et(t){return setTimeout(t,0)}function Jt(t){return clearTimeout(t)}Lt&&z(document,"touchmove",function(t){(T.active||We)&&t.cancelable&&t.preventDefault()});T.utils={on:z,off:j,css:F,find:jn,is:function(e,n){return!!Ee(e,n,e,!1)},extend:bi,throttle:qn,closest:Ee,toggleClass:be,clone:Hn,index:ye,nextTick:Et,cancelNextTick:Jt,detectDirection:Wn,getChild:Ke,expando:ve};T.get=function(t){return t[ve]};T.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(a){if(!a.prototype||!a.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(a));a.utils&&(T.utils=Fe(Fe({},T.utils),a.utils)),pt.mount(a)})};T.create=function(t,e){return new T(t,e)};T.version=gi;var ae=[],nt,en,tn=!1,Wt,Gt,Vt,at;function Li(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(n){var a=n.originalEvent;this.sortable.nativeDraggable?z(document,"dragover",this._handleAutoScroll):this.options.supportPointer?z(document,"pointermove",this._handleFallbackAutoScroll):a.touches?z(document,"touchmove",this._handleFallbackAutoScroll):z(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var a=n.originalEvent;!this.options.dragOverBubble&&!a.rootEl&&this._handleAutoScroll(a)},drop:function(){this.sortable.nativeDraggable?j(document,"dragover",this._handleAutoScroll):(j(document,"pointermove",this._handleFallbackAutoScroll),j(document,"touchmove",this._handleFallbackAutoScroll),j(document,"mousemove",this._handleFallbackAutoScroll)),In(),wt(),_i()},nulling:function(){Vt=en=nt=tn=at=Wt=Gt=null,ae.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,a){var i=this,o=(n.touches?n.touches[0]:n).clientX,r=(n.touches?n.touches[0]:n).clientY,l=document.elementFromPoint(o,r);if(Vt=n,a||this.options.forceAutoScrollFallback||mt||Le||it){Qt(n,this.options,l,a);var s=Re(l,!0);tn&&(!at||o!==Wt||r!==Gt)&&(at&&In(),at=setInterval(function(){var u=Re(document.elementFromPoint(o,r),
58!0);u!==s&&(s=u,wt()),Qt(n,i.options,u,a)},10),Wt=o,Gt=r)}else{if(!this.options.bubbleScroll||Re(l,!0)===Ie()){wt();return}Qt(n,this.options,Re(l,!1),!1)}}},Ce(t,{pluginName:"scroll",initializeByDefault:!0})}function wt(){ae.forEach(function(t){clearInterval(t.pid)}),ae=[]}function In(){clearInterval(at)}var Qt=qn(function(t,e,n,a){if(e.scroll){var i=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,r=e.scrollSensitivity,l=e.scrollSpeed,s=Ie(),u=!1,f;en!==n&&(en=n,wt(),nt=e.scroll,f=e.scrollFn,nt===!0&&(nt=Re(n,!0)));var m=0,g=nt;do{var h=g,S=ie(h),w=S.top,V=S.bottom,E=S.left,y=S.right,D=S.width,M=S.height,p=void 0,x=void 0,$=h.scrollWidth,Z=h.scrollHeight,H=F(h),q=h.scrollLeft,C=h.scrollTop;h===s?(p=D<$&&(H.overflowX==="auto"||H.overflowX==="scroll"||H.overflowX==="visible"),x=M<Z&&(H.overflowY==="auto"||H.overflowY==="scroll"||H.overflowY==="visible")):(p=D<$&&(H.overflowX==="auto"||H.overflowX==="scroll"),x=M<Z&&(H.overflowY==="auto"||H.overflowY==="scroll"));var te=p&&(Math.abs(y-i)<=r&&q+D<$)-(Math.abs(E-i)<=r&&!!q),c=x&&(Math.abs(V-o)<=r&&C+M<Z)-(Math.abs(w-o)<=r&&!!C);if(!ae[m])for(var O=0;O<=m;O++)ae[O]||(ae[O]={});(ae[m].vx!=te||ae[m].vy!=c||ae[m].el!==h)&&(ae[m].el=h,ae[m].vx=te,ae[m].vy=c,clearInterval(ae[m].pid),(te!=0||c!=0)&&(u=!0,ae[m].pid=setInterval((function(){a&&this.layer===0&&T.active._onTouchMove(Vt);var Q=ae[this.layer].vy?ae[this.layer].vy*l:0,W=ae[this.layer].vx?ae[this.layer].vx*l:0;typeof f=="function"&&f.call(T.dragged.parentNode[ve],W,Q,t,Vt,ae[this.layer].el)!=="continue"||zn(ae[this.layer].el,W,Q)}).bind({layer:m}),24))),m++}while(e.bubbleScroll&&g!==s&&(g=Re(g,!1)));tn=u}},30),Zn=function(e){var n=e.originalEvent,a=e.putSortable,i=e.dragEl,o=e.activeSortable,r=e.dispatchSortableEvent,l=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(n){var u=a||o;l();var f=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,m=document.elementFromPoint(f.clientX,f.clientY);s(),u&&!u.el.contains(m)&&(r("spill"),this.onSpill({dragEl:i,putSortable:a}))}};function dn(){}dn.prototype={startIndex:null,dragStart:function(e){var n=e.oldDraggableIndex;this.startIndex=n},onSpill:function(e){var n=e.dragEl,a=e.putSortable;this.sortable.captureAnimationState(),a&&a.captureAnimationState();var i=Ke(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(n,i):this.sortable.el.appendChild(n),this.sortable.animateAll(),a&&a.animateAll()},drop:Zn};Ce(dn,{pluginName:"revertOnSpill"});function cn(){}cn.prototype={onSpill:function(e){var n=e.dragEl,a=e.putSortable,i=a||this.sortable;i.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),i.animateAll()},drop:Zn};Ce(cn,{pluginName:"removeOnSpill"});T.mount(new Li);T.mount(cn,dn);function Bi(t,e,n={}){let a;const{document:i=ka,...o}=n,r={onUpdate:f=>{xi(e,f.oldIndex,f.newIndex)}},l=()=>{const f=typeof t=="string"?i?.querySelector(t):Ea(t);!f||a!==void 0||(a=new T(f,{...r,...o}))},s=()=>{a?.destroy(),a=void 0},u=(f,m)=>{if(m!==void 0)a?.option(f,m);else return a?.option(f)};return Sa(l),wa(s),{stop:s,start:l,option:u}}function xi(t,e,n){const a=le(t),i=a?[...gn(t)]:gn(t);if(n>=0&&n<i.length){const o=i.splice(e,1)[0];Na(()=>{i.splice(n,0,o),a&&(t.value=i)})}}var Ze={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"updateFile"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"file"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateFile"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"file"},name:{kind:"Name",value:"updateFile"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"file"},value:{kind:"Variable",name:{kind:"Name",value:"file"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"File"},directives:[]}]}}]}}],loc:{start:0,end:164}};Ze.loc.source={body:`#import "../fragments/File.fragment.gql"
59
60mutation updateFile($id: Int!, $file: UpdateFile!) {
61    file: updateFile(id: $id, file: $file) {
62        ...File
63    }
64}
65`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Pn={};function Ri(t){return t.filter(function(e){if(e.kind!=="FragmentDefinition")return!0;var n=e.name.value;return Pn[n]?!1:(Pn[n]=!0,!0)})}Ze.definitions=Ze.definitions.concat(Ri(za.definitions));function Nt(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(a){Nt(a,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(a){Nt(a,e)}),t.definitions&&t.definitions.forEach(function(a){Nt(a,e)})}var nn={};(function(){Ze.definitions.forEach(function(e){if(e.name){var n=new Set;Nt(e,n),nn[e.name.value]=n}})})();function Fn(t,e){for(var n=0;n<t.definitions.length;n++){var a=t.definitions[n];if(a.name&&a.name.value==e)return a}}function Ui(t,e){var n={kind:t.kind,definitions:[Fn(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var a=nn[e]||new Set,i=new Set,o=new Set;
65for(a.forEach(function(l){o.add(l)});o.size>0;){var r=o;o=new Set,r.forEach(function(l){if(!i.has(l)){i.add(l);var s=nn[l]||new Set;s.forEach(function(u){o.add(u)})}})}return i.forEach(function(l){var s=Fn(t,l);s&&n.definitions.push(s)}),n}Ui(Ze,"updateFile");class ji{file;id;description;url;status;constructor(e){this.file=e,this.id=`${e.name}-${e.size}-${e.lastModified}-${e.type}`,this.url=URL.createObjectURL(e),this.status=null,this.description=""}}function fn(t=!1){const e=Y([]),n=Y(t);function a(r){n.value||(e.value=[]);const l=[...r].map(s=>new ji(s)).filter(s=>!i(s.id));e.value=e.value.concat(l)}function i(r){return e.value.some(({id:l})=>l===r)}function o(r){const l=e.value.indexOf(r);l>-1&&e.value.splice(l,1)}return{files:e,addFiles:a,removeFile:o}}function mn(){const t=Da(),{apiEndpoint:e}=t.public,{session:n}=Ia(),a=n?.value?.token||"";async function i(r){const l=new FormData;l.append("file",r.file),l.append("description",r.description||""),r.status="loading";const s=await fetch(`${e}file/upload/new`,{method:"POST",headers:{Authorization:`Bearer ${a}`},body:l});r.status=s.ok;const u=await s.json();return u.uploadedFileId&&(r.id=u.uploadedFileId),u}function o(r){return Promise.all(r.map(l=>i(l)))}return{uploadFiles:o}}const qi=we({__name:"FormEditProfileImages",props:{profile:{type:Object,required:!0}},emits:["success"],setup(t,{emit:e}){const n=t,a=e,{t:i}=Te(),{profile:o}=Me(n),{mutate:r,onDone:l,onError:s}=Pe(ge),{mutate:u,onDone:f,onError:m}=Pe(Ze),{files:g,addFiles:h,removeFile:S}=fn(!0),{uploadFiles:w}=mn(),V=Y(null),E=Y(""),y=Y(!1),D=Y(JSON.parse(JSON.stringify(o?.value?.sliderImages)).map(c=>({id:c.id,url:c.url,status:!0,description:c?.description,file:{name:c.name,type:c.type}}))||[]),M=Y([...D.value,...g.value]),p=Y({}),x=Y([]);Bi(V,M,{animation:150});const $=De(()=>D.value.length+g.value.length),Z=De(()=>8-$.value);rn(()=>p.value,c=>{c&&(h(c),M.value=[...D.value,...g.value])});async function H(c){if(c.status===!0){y.value=!0,await r({sliderImages:{remove:[c.id]}}),y.value=!1,s(()=>{E.value=i("error.500"),y.value=!1}),l(()=>{E.value="",y.value=!1});const O=D.value?.findIndex(Q=>Q.id===c.id);O!==-1&&D.value?.splice(O,1)}else S(c);M.value=[...D.value,...g.value]}function q(c,O){c.description=O,c.status===!0&&x.value?.findIndex(W=>W.id===c.id)===-1&&x.value.push(c)}async function C(){const c=M.value.map(O=>O.id);c.length&&(await r({sliderImages:{set:c}}),s(()=>{E.value=i("error.500"),y.value=!1}),E.value="",y.value=!1,a("success"))}async function te(){if(!M.value.length&&!x.value?.length){a("success");return}if(y.value=!0,x.value?.length&&await Promise.all(x.value.map(async O=>{await u({id:O.id,file:{description:O.description||""}}),m(()=>{E.value=i("error.500"),y.value=!1}),f(()=>{E.value="",y.value=!1})})),!g.value.length){await C();return}const c=await w(g.value);c.length&&(c.find(Q=>Q.code!=="SUCCESS")?(y.value=!1,E.value=c.filter(Q=>Q.code!=="SUCCESS").map(Q=>i(`error.fileUpload.${Q.code}`)).join(", ")):await C())}return(c,O)=>{const Q=ln,W=sn,me=Ae,he=$e;return b(),U("form",{onSubmit:je(te,["prevent"])},[P("p",null,I(c.$t("components.FormEditProfileImages.description")),1),O[1]||(O[1]=P("br",null,null,-1)),k(Q,{modelValue:p.value,"onUpdate:modelValue":O[0]||(O[0]=ne=>p.value=ne),disabled:Z.value<=0,multiple:!0,maxFileCount:Z.value,label:c.$t("general.gallery")},null,8,["modelValue","disabled","maxFileCount","label"]),P("p",null,I(c.$t("components.FormEditProfileImages.imageLimit",{count:$.value})),1),O[2]||(O[2]=P("br",null,null,-1)),ut(P("ul",{ref_key:"fileListEl",ref:V},[(b(!0),U(Se,null,At(M.value,ne=>(b(),L(W,{key:ne.id,file:ne,sortable:!0,tag:"li",hasEditableDescription:!0,onRemove:H,onUpdateDescription:q},null,8,["file"]))),128))],512),[[Ct,d(g).length||M.value.length]]),E.value?(b(),L(me,{key:0,variant:"error",icon:"warning"},{default:_(()=>[X(I(E.value),1)]),_:1})):R("",!0),k(he,{type:"submit",disabled:y.value},{default:_(()=>[X(I(c.$t("form.save")),1)]),_:1},8,["disabled"])],32)}}}),zi=Object.assign(qi,{__name:"FormEditProfileImages"}),Hi=we({__name:"FormEditProfileDescription",props:{profile:{type:Object,required:!0}},emits:["success"],setup(t,{emit:e}){const n=t,a=e,{t:i}=Te(),{mutate:o,loading:r,onDone:l,onError:s}=Pe(ge),{profile:u}=Me(n),f=Y(!1),m=i("components.FormEditProfileDescription.placeholder"),{handleSubmit:g,defineField:h}=ct({validationSchema:ft(dt({description:ue().required().label(m)})),initialValues:{description:u.value.description||""}}),[S,w]=h("description",E=>({validateOnModelUpdate:E.errors.length>0,props:{name:"description",placeholder:m,label:m,required:!0,error:E.errors}})),V=g(E=>{o({description:E.description}),s(()=>{f.value=!0}),l(()=>{f.value=!1,a("success")})});return(E,y)=>{const D=Mt,M=Ae,p=$e,x=Ue;return b(),U("form",{onSubmit:y[1]||(y[1]=je((...$)=>d(V)&&d(V)(...$),["prevent"]))},[k(D,de({modelValue:d(S),"onUpdate:modelValue":y[0]||(y[0]=$=>le(S)?S.value=$:null)},d(w)),null,16,["modelValue"]),f.value?(b(),L(M,{key:0,variant:"error",icon:"warning"},{default:_(()=>[P("p",null,I(E.$t("error.500")),1)]),_:1})):R("",!0),k(p,{type:"submit",disabled:d(r)},{default:_(()=>[X(I(E.$t("form.save")),1)]),_:1},8,["disabled"]),d(r)?(b(),L(x,{key:1,class:"fill"})):R("",!0)],32)}}}),Xi=Object.assign(Hi,{__name:"FormEditProfileDescription"}),Yi=we({__name:"FormEditProfileVisitInfo",props:{profile:{type:Object,required:!0}},emits:["success"],setup(t,{emit:e}){const n=t,a=e,{t:i}=Te(),{mutate:o,loading:r,onDone:l,onError:s}=Pe(ge),{profile:u}=Me(n),f=Y(!1),m=i("form.labels.visitInformation"),g=i("pages.mapOfDiversity.arrivalInstru
65ctionsPublicTransport"),h=i("pages.mapOfDiversity.arrivalInstructionsCar"),{handleSubmit:S,defineField:w}=ct({validationSchema:ft(dt({visitInformation:ue(),arrivalInstructionsPublicTransport:ue(),arrivalInstructionsCar:ue()})),initialValues:{visitInformation:u.value.visitInformation||"",arrivalInstructionsPublicTransport:u.value.arrivalInstructionsPublicTransport||"",arrivalInstructionsCar:u.value.arrivalInstructionsCar||""}}),[V,E]=w("visitInformation",$=>({validateOnModelUpdate:$.errors.length>0,props:{name:"visitInformation",placeholder:m,label:m,error:$.errors}})),[y,D]=w("arrivalInstructionsPublicTransport",$=>({validateOnModelUpdate:$.errors.length>0,props:{name:"arrivalInstructionsPublicTransport",placeholder:g,label:g,error:$.errors}})),[M,p]=w("arrivalInstructionsCar",$=>({validateOnModelUpdate:$.errors.length>0,props:{name:"arrivalInstructionsCar",placeholder:h,label:h,error:$.errors}})),x=S($=>{o({visitInformation:$.visitInformation,arrivalInstructionsPublicTransport:$.arrivalInstructionsPublicTransport,arrivalInstructionsCar:$.arrivalInstructionsCar}),s(()=>{f.value=!0}),l(()=>{f.value=!1,a("success")})});return($,Z)=>{const H=Mt,q=Ae,C=$e,te=Ue;return b(),U("form",{onSubmit:Z[3]||(Z[3]=je((...c)=>d(x)&&d(x)(...c),["prevent"]))},[k(H,de({modelValue:d(V),"onUpdate:modelValue":Z[0]||(Z[0]=c=>le(V)?V.value=c:null)},d(E)),null,16,["modelValue"]),k(H,de({modelValue:d(y),"onUpdate:modelValue":Z[1]||(Z[1]=c=>le(y)?y.value=c:null)},d(D)),null,16,["modelValue"]),k(H,de({modelValue:d(M),"onUpdate:modelValue":Z[2]||(Z[2]=c=>le(M)?M.value=c:null)},d(p)),null,16,["modelValue"]),f.value?(b(),L(q,{key:0,variant:"error",icon:"warning"},{default:_(()=>[P("p",null,I($.$t("error.500")),1)]),_:1})):R("",!0),k(C,{type:"submit",disabled:d(r)},{default:_(()=>[X(I($.$t("form.save")),1)]),_:1},8,["disabled"]),d(r)?(b(),L(te,{key:1,class:"fill"})):R("",!0)],32)}}}),Wi=Object.assign(Yi,{__name:"FormEditProfileVisitInfo"}),Gi=we({__name:"FormEditProfileEvents",props:{profile:{type:Object,required:!0}},emits:["success"],setup(t,{emit:e}){const n=t,a=e,{t:i}=Te(),{mutate:o,loading:r,onDone:l,onError:s}=Pe(ge),{profile:u}=Me(n),f=Y(!1),m=i("pages.mapOfDiversity.eventInformation"),{handleSubmit:g,defineField:h}=ct({validationSchema:ft(dt({eventInformation:ue()})),initialValues:{eventInformation:u.value.eventInformation||""}}),[S,w]=h("eventInformation",E=>({validateOnModelUpdate:E.errors.length>0,props:{name:"eventInformation",placeholder:m,label:m,error:E.errors}})),V=g(E=>{o({eventInformation:E.eventInformation}),s(()=>{f.value=!0}),l(()=>{f.value=!1,a("success")})});return(E,y)=>{const D=Mt,M=Ae,p=$e,x=Ue;return b(),U("form",{onSubmit:y[1]||(y[1]=je((...$)=>d(V)&&d(V)(...$),["prevent"]))},[k(D,de({modelValue:d(S),"onUpdate:modelValue":y[0]||(y[0]=$=>le(S)?S.value=$:null)},d(w)),null,16,["modelValue"]),f.value?(b(),L(M,{key:0,variant:"error",icon:"warning"},{default:_(()=>[P("p",null,I(E.$t("error.500")),1)]),_:1})):R("",!0),k(p,{type:"submit",disabled:d(r)},{default:_(()=>[X(I(E.$t("form.save")),1)]),_:1},8,["disabled"]),d(r)?(b(),L(x,{key:1,class:"fill"})):R("",!0)],32)}}}),Qi=Object.assign(Gi,{__name:"FormEditProfileEvents"}),Ki=we({__name:"FormEditProfileLogo",props:{profile:{type:Object,required:!0}},emits:["success","update"],setup(t,{emit:e}){const n=e,{t:a}=Te(),{files:i,addFiles:o,removeFile:r}=fn(),{uploadFiles:l}=mn(),{mutate:s,onDone:u,onError:f}=Pe(ge),m=Y({}),g=Y(""),h=Y(!1);rn(()=>m.value,V=>{V&&o(V)});async function S(){h.value=!0,s({logoImage:null}),f(()=>{g.value=a("error.500"),h.value=!1}),u(()=>{g.value="",h.value=!1,n("update")})}async function w(){if(!i.value.length){n("success");return}h.value=!0;const V=await l(i.value);if(V.length){const E=V.find(D=>D.code!=="SUCCESS"),y=V.filter(D=>D.uploadedFileId).map(D=>D.uploadedFileId);!E&&y.length?(s({logoImage:y[0]}),f(()=>{g.value=a("error.500"),h.value=!1}),u(()=>{g.value="",h.value=!1,n("success")})):(h.value=!1,g.value=V.filter(D=>D.code!=="SUCCESS").map(D=>a(`error.fileUpload.${D.code}`)).join(", "))}else g.value=a("error.500"),h.value=!1}return(V,E)=>{const y=sn,D=ln,M=Ae,p=$e;return b(),U("form",{class:"FormEditProfileLogo",onSubmit:je(w,["prevent"])},[P("p",null,I(V.$t("components.FormEditProfileLogo.description")),1),E[1]||(E[1]=P("br",null,null,-1)),k(D,{modelValue:m.value,"onUpdate:modelValue":E[0]||(E[0]=x=>m.value=x),label:V.$t("general.logo")},{default:_(()=>[ut(P("ul",null,[t.profile?.logo&&!d(i).length?(b(),L(y,{key:0,file:{id:t.profile.logo.id,url:t.profile.logo.url,status:!0,description:t.profile.logo.description,file:{name:t.profile.logo.name,type:t.profile.logo.type}},tag:"li",onRemove:S},null,8,["file"])):R("",!0),(b(!0),U(Se,null,At(d(i),x=>(b(),L(y,{key:x.id,file:x,tag:"li",onRemove:d(r)},null,8,["file","onRemove"]))),128))],512),[[Ct,d(i).length||t.profile?.logo]])]),_:1},8,["modelValue","label"]),g.value?(b(),L(M,{key:0,variant:"error",icon:"warning"},{default:_(()=>[X(I(g.value),1)]),_:1})):R("",!0),k(p,{type:"submit",disabled:h.value},{default:_(()=>[X(I(V.$t("form.save")),1)]),_:1},8,["disabled"])],32)}}}),Zi=Object.assign(Ki,{__name:"FormEditProfileLogo"}),Ji=we({__name:"FormEditProfilePersonalInfo",props:{profile:{type:Object,required:!0}},emits:["success"],setup(t,{emit:e}){const n=t,a=e,{t:i}=Te(),{mutate:o,loading:r,onDone:l,onError:s}=Pe(ge),{profile:u}=Me(n),f=Y(!1),{handleSubmit:m,defineField:g}=ct({validationSchema:ft(dt().shape({company:ue(),firstName:ue(),lastName:ue(),street:ue(),zip:ue().max(4),city:ue().required().label(i("form.labels.city")),manualLatitude:ue().when("manualLongitude",([N],B)=>N?B.required():B.notRequired()),manualLongitude:ue().when("manualLatitude",([N],B)=>N?B.required():B.notRequired()),phone:ue(),email:ue().email(),website:ue().url()},[["manualLatitude","manualLongitude"]])),initialValues:{company:u.value.company||"",firstName:u.value.firstName||"",lastName:u.value.lastName||"",street:u.value.street||"",zip:u.value.zip||"",city:u.value.city||"",manualLatitude:u.value.manualLatitude||"",manualLongitude:u.value.manualLongitude||"",email:u.value.email||"",website:u.value.website||"",phone:u.value.phone||""}}),[h,S]=g("company",N=>({validateOnModelUpdate:N.errors.length>0,props:{name:"company",label:i("form.labels.company"),type:"text",error:N.errors}})),[w,V]=g("firstName",N=>({validateOnModelUpdate:N.errors.length>0,props:{name:"firstName",label:i("form.labels.firstName"),type:"text",error:N.errors}})),[E,y]=g("lastName",N=>({validateOnModelUpdate:N.errors.length>0,props:{name:"lastName",label:i("form.labels.lastName"),type:"text",error:N.errors}})),[D,M]=g("street",N=>({validateOnModelUpdate:N.errors.length>0,props:{name:"street",label:i("form.labels.street"),type:"text",error:N.errors}})),[p,x]=g("zip",N=>({validateOnModelUpdate:N.errors.length>0,props:{name:"zip",label:i("form.labels.zip"),type:"text",error:N.errors}})),[$,Z]=g("city",N=>({validateOnModelUpdate:N.errors.length>0,props:{name:"city",label:i("form.labels.city"),type:"text",required:!0,error:N.errors}})),[H,q]=g("manualLatitude",N=>({validateOnModelUpdate:N.errors.length>0,props:{name:"manualLatitude",label:i("form.labels.latitude"),type:"text",error:N.errors}})),[C,te]=g("manualLongitude",N=>({validateOnModelUpdate:N.errors.length>0,props:{name:"manualLongitude",label:i("form.labels.longitude"),type:"text",error:N.errors}})),[c,O]=g("phone",N=>({validateOnModelUpdate:N.errors.length>0,props:{name:"phone",label:i("form.labels.phone"),type:"text",error:N.errors}})),[Q,W]=g("email",N=>({validateOnModelUpdate:N.errors.length>0,props:{label:i("form.labels.email"),type:"email",error:N.errors}})),[me,he]=g("website",N=>({validateOnModelUpdate:N.errors.length>0,props:{name:"website",label:i("form.labels.website"),type:"url",error:N.errors}})),ne=m(N=>{o({firstName:N.firstName,lastName:N.lastName,company:N.company,street:N.street,zip:N.zip,city:N.city,manualLongitude:N.manualLongitude,manualLatitude:N.manualLatitude,email:N.email,website:N.website,phone:N.phone}),s(()=>{f.value=!0}),l(()=>{f.value=!1,a("success")})});return(N,B)=>{const re=An,Bt=Ln,xt=Ae,Rt=$e,Ne=Ue;return b(),U("form",{onSubmit:B[11]||(B[11]=je((...G)=>d(ne)&&d(ne)(...G),["prevent"]))},[P("p",null,I(N.$t("components.FormEditProfilePersonalInfo.description")),1),B[13]||(B[13]=P("br",null,null,-1)),P("fieldset",null,[P("legend",null,I(N.$t("general.personalInformation")),1),k(re,de({modelValue:d(h),"onUpdate:modelValue":B[0]||(B[0]=G=>le(h)?h.value=G:null)},d(S)),null,16,["modelValue"]),k(re,de({modelValue:d(w),"onUpdate:modelValue":B[1]||(B[
651]=G=>le(w)?w.value=G:null)},d(V)),null,16,["modelValue"]),k(re,de({modelValue:d(E),"onUpdate:modelValue":B[2]||(B[2]=G=>le(E)?E.value=G:null)},d(y)),null,16,["modelValue"]),k(re,de({modelValue:d(D),"onUpdate:modelValue":B[3]||(B[3]=G=>le(D)?D.value=G:null)},d(M)),null,16,["modelValue"]),k(re,de({modelValue:d(p),"onUpdate:modelValue":B[4]||(B[4]=G=>le(p)?p.value=G:null)},d(x)),null,16,["modelValue"]),k(re,de({modelValue:d($),"onUpdate:modelValue":B[5]||(B[5]=G=>le($)?$.value=G:null)},d(Z)),null,16,["modelValue"]),k(Bt,{class:"small",isInitiallyOpen:!!(d(H)||d(C))},{header:_(()=>[X(I(N.$t("components.FormEditProfilePersonalInfo.coordinatesTitle")),1)]),default:_(()=>[P("p",null,I(N.$t("components.FormEditProfilePersonalInfo.coordinatesText")),1),B[12]||(B[12]=P("br",null,null,-1)),k(re,de({modelValue:d(H),"onUpdate:modelValue":B[6]||(B[6]=G=>le(H)?H.value=G:null)},d(q)),null,16,["modelValue"]),k(re,de({modelValue:d(C),"onUpdate:modelValue":B[7]||(B[7]=G=>le(C)?C.value=G:null)},d(te)),null,16,["modelValue"])]),_:1},8,["isInitiallyOpen"]),k(re,de({modelValue:d(c),"onUpdate:modelValue":B[8]||(B[8]=G=>le(c)?c.value=G:null)},d(O)),null,16,["modelValue"]),k(re,de({modelValue:d(Q),"onUpdate:modelValue":B[9]||(B[9]=G=>le(Q)?Q.value=G:null)},d(W)),null,16,["modelValue"]),k(re,de({modelValue:d(me),"onUpdate:modelValue":B[10]||(B[10]=G=>le(me)?me.value=G:null)},d(he)),null,16,["modelValue"])]),f.value?(b(),L(xt,{key:0,variant:"error",icon:"warning"},{default:_(()=>[P("p",null,I(N.$t("error.500")),1)]),_:1})):R("",!0),k(Rt,{type:"submit",disabled:d(r)},{default:_(()=>[X(I(N.$t("form.save")),1)]),_:1},8,["disabled"]),d(r)?(b(),L(Ne,{key:1,class:"fill"})):R("",!0)],32)}}}),eo=Object.assign(Ji,{__name:"FormEditProfilePersonalInfo"});var Je={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getAvailableMapProfileProducts"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"mapProfile"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},defaultValue:{kind:"StringValue",value:"de",block:!1},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"products"},name:{kind:"Name",value:"availableProductsForMapProfile"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mapProfile"},value:{kind:"Variable",name:{kind:"Name",value:"mapProfile"}}},{kind:"Argument",name:{kind:"Name",value:"languageKey"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Product"},directives:[]}]}}]}}],loc:{start:0,end:278}};Je.loc.source={body:`#import "../fragments/Product.fragment.gql"
66
67query getAvailableMapProfileProducts(
68    $mapProfile: Int!
69    $locale: String = "de"
70) {
71    products: availableProductsForMapProfile(
72        mapProfile: $mapProfile
73        languageKey: $locale
74    ) {
75        ...Product
76    }
77}
78`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Tn={};function to(t){return t.filter(function(e){if(e.kind!=="FragmentDefinition")return!0;var n=e.name.value;return Tn[n]?!1:(Tn[n]=!0,!0)})}Je.definitions=Je.definitions.concat(to(Wa.definitions));function Dt(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(a){Dt(a,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(a){Dt(a,e)}),t.definitions&&t.definitions.forEach(function(a){Dt(a,e)})}var an={};(function(){Je.definitions.forEach(function(e){if(e.name){var n=new Set;Dt(e,n),an[e.name.value]=n}})})();function $n(t,e){for(var n=0;n<t.definitions.length;n++){var a=t.definitions[n];if(a.name&&a.name.value==e)return a}}function no(t,e){var n={kind:t.kind,definitions:[$n(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var a=an[e]||new Set,i=new Set,o=new Set;
78for(a.forEach(function(l){o.add(l)});o.size>0;){var r=o;o=new Set,r.forEach(function(l){if(!i.has(l)){i.add(l);var s=an[l]||new Set;s.forEach(function(u){o.add(u)})}})}return i.forEach(function(l){var s=$n(t,l);s&&n.definitions.push(s)}),n}no(Je,"getAvailableMapProfileProducts");const ao=we({__name:"FormEditProfileOffers",props:{profile:{}},emits:["success","update"],setup(t,{emit:e}){const n=t,a=e,{t:i,locale:o}=Te(),{files:r,addFiles:l,removeFile:s}=fn(),{uploadFiles:u}=mn(),{mutate:f,onDone:m,onError:g}=Pe(ge),{profile:h}=Me(n),{data:S,status:w,error:V}=Cn({query:Je,variables:{mapProfile:h.value.id,locale:o},cache:!1}),E=Y({}),y=Y(""),D=Y(!1),M=Y(h.value?.manualProducts?.flatMap(q=>q.id)),p=Y(h.value.productsDescription),x=De(()=>w.value==="pending"||w.value==="idle"),$=De(()=>x.value?[]:S.value?.products||[]);rn(()=>E.value,q=>{q&&l(q)});async function Z(){D.value=!0,f({offeringPdf:null}),g(()=>{y.value=i("error.500"),D.value=!1}),m(()=>{y.value="",D.value=!1,a("update")})}async function H(){D.value=!0;let q=[],C=!1;if(h.value.offeringPdf&&q.push(h.value.offeringPdf.id),r.value.length){const te=await u(r.value);te.length?(C=te.find(c=>c.code!=="SUCCESS"),q=te.filter(c=>c.uploadedFileId).map(c=>c.uploadedFileId),C&&q.length&&(D.value=!1,y.value=te.filter(c=>
78c.code!=="SUCCESS").map(c=>i(`error.fileUpload.${c.code}`)).join(", "))):(y.value=i("error.500"),D.value=!1)}C||(f({productsDescription:p.value,manualProducts:M.value,offeringPdf:q?.[0]||null}),g(()=>{y.value=i("error.500"),D.value=!1}),m(()=>{y.value="",D.value=!1,a("success")}))}return(q,C)=>{const te=Ue,c=Ya,O=Ae,Q=Mt,W=sn,me=ln,he=$e;return b(),U("form",{onSubmit:je(H,["prevent"])},[d(V)?(b(),L(O,{key:1,variant:"error",icon:"warning",class:"large"},{default:_(()=>[X(I(q.$t("error.500")),1)]),_:1})):(b(),L(c,{key:0,modelValue:M.value,"onUpdate:modelValue":C[0]||(C[0]=ne=>M.value=ne),name:"manualProducts[]",legend:q.$t("components.FormEditProfileOffers.productsLabel"),options:$.value,inputVariant:"background",class:"grid"},{default:_(()=>[x.value?(b(),L(te,{key:0})):R("",!0)]),_:1},8,["modelValue","legend","options"])),C[3]||(C[3]=P("br",null,null,-1)),k(Q,{modelValue:p.value,"onUpdate:modelValue":C[1]||(C[1]=ne=>p.value=ne),name:"productsDescription",label:q.$t("form.labels.description"),placeholder:q.$t("components.FormEditProfileOffers.descriptionPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),P("fieldset",null,[P("legend",null,I(q.$t("components.FormEditProfileOffers.pdfLegend")),1),k(me,{modelValue:E.value,"onUpdate:modelValue":C[2]||(C[2]=ne=>E.value=ne),label:q.$t("general.offerPdf"),acceptedFileTypes:"application/pdf"},{default:_(()=>[ut(P("ul",null,[d(h)?.offeringPdf&&!d(r).length?(b(),L(W,{key:0,file:{id:d(h).offeringPdf.id,url:d(h).offeringPdf.url,status:!0,description:d(h).offeringPdf.description,file:{name:d(h).offeringPdf.name,type:d(h).offeringPdf.type}},tag:"li",onRemove:Z},null,8,["file"])):R("",!0),(b(!0),U(Se,null,At(d(r),ne=>(b(),L(W,{key:ne.id,file:ne,tag:"li",onRemove:d(s)},null,8,["file","onRemove"]))),128))],512),[[Ct,d(r).length||d(h)?.offeringPdf]])]),_:1},8,["modelValue","label"])]),y.value?(b(),L(O,{key:2,variant:"error",icon:"warning"},{default:_(()=>[X(I(y.value),1)]),_:1})):R("",!0),k(he,{type:"submit",disabled:D.value},{default:_(()=>[X(I(q.$t("form.save")),1)]),_:1},8,["disabled"])],32)}}}),io=Object.assign(ao,{__name:"FormEditProfileOffers"});var et={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getUserMapProfile"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},defaultValue:{kind:"StringValue",value:"de",block:!1},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"profile"},name:{kind:"Name",value:"mapProfile"},arguments:[{kind:"Argument",name:{kind:"Name",value:"languageKey"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MapProfile"},directives:[]},{kind:"Field",alias:{kind:"Name",value:"manualLatitude"},name:{kind:"Name",value:"manual_latitude"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"manualLongitude"},name:{kind:"Name",value:"manual_longitude"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:258}};et.loc.source={body:`#import "../fragments/MapProfile.fragment.gql"
79
80query getUserMapProfile($locale: String = "de") {
81    profile: mapProfile(languageKey: $locale) {
82        ...MapProfile
83        manualLatitude: manual_latitude
84        manualLongitude: manual_longitude
85    }
86}
87`,name:"GraphQL request",locationOffset:{line:1,column:1}};var On={};function oo(t){return t.filter(function(e){if(e.kind!=="FragmentDefinition")return!0;var n=e.name.value;return On[n]?!1:(On[n]=!0,!0)})}et.definitions=et.definitions.concat(oo(Mn.definitions));function It(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(a){It(a,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(a){It(a,e)}),t.definitions&&t.definitions.forEach(function(a){It(a,e)})}var on={};(function(){et.definitions.forEach(function(e){if(e.name){var n=new Set;It(e,n),on[e.name.value]=n}})})();function Vn(t,e){for(var n=0;n<t.definitions.length;n++){var a=t.definitions[n];if(a.name&&a.name.value==e)return a}}function ro(t,e){var n={kind:t.kind,definitions:[Vn(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var a=on[e]||new Set,i=new Set,o=new Set;
87for(a.forEach(function(l){o.add(l)});o.size>0;){var r=o;o=new Set,r.forEach(function(l){if(!i.has(l)){i.add(l);var s=on[l]||new Set;s.forEach(function(u){o.add(u)})}})}return i.forEach(function(l){var s=Vn(t,l);s&&n.definitions.push(s)}),n}ro(et,"getUserMapProfile");const lo=["innerHTML"],so={class:"LayoutMapProfile__actions"},uo={class:"LayoutMapProfile__lead"},co=["innerHTML"],fo={key:1},mo=["innerHTML"],po={key:1},vo=["innerHTML"],go={key:2},ho=["innerHTML"],bo={key:1,class:"LayoutMapProfile__placeholder"},_o=["innerHTML"],yo={key:1,class:"LayoutMapProfile__placeholder"},ko={key:1},So={key:6},Eo=["innerHTML"],wo={key:1},or=we({__name:"profile",async setup(t){let e,n;const{locale:a,t:i}=Te(),o=Pa(),{throwNuxtError:r}=Fa(),{nl2br:l}=Qa(),s=Ta(i("pages.account.profile.title"),"","","noindex, nofollow");$a(s);const u=Oa("globalsUserPortal"),f=Y(""),m=ua,g=Y(!1),h=Y(!1),{data:S,error:w,refresh:V}=([e,n]=Va(()=>Cn({query:et,variables:{locale:a},cache:!1})),e=await e,n(),e);w.value&&r(500),S.value?.profile||(f.value=i("pages.account.profile.noProfile"));const{mutate:E,loading:y,onDone:D,onError:M}=Pe(ge),p=De(()=>S?.value?.profile),{fullName:x,city:$,website:Z,websiteUrl:H,seals:q}=Ga(p);g.value=S?.value?.profile?.enable||!1,h.value=S?.value?.profile?.enable||!1;async function C(c){c&&c(),await V(),g.value=S?.value?.profile?.enable||!1,h.value=S?.value?.profile?.enable||!1}async function te(){f.value="",E({enable:h.value}),M(()=>{f.value=i("error.500"),C()}),D(async()=>{f.value="",C()})}return(c,O)=>{const Q=da,W=ca,me=Ue,he=fa,ne=pa,N=Ae,B=va,re=La,Bt=Ca("i18n-t"),xt=$e,Rt=ei,Ne=xa,G=Ma,Jn=Ra,pn=Ua,ea=zi,ta=Xi,na=Ha,aa=Wi,vn=Ln,ia=Qi,oa=Zi,Ut=Xa,ra=eo,la=io,sa=Ba;return b(),L(sa,null,Aa({aboveHeader:_(()=>[k(Q,{ancestors:[{url:d(o)("/account"),title:c.$t("pages.account.title")}],currentPage:c.$t("pages.account.profile.title")},null,8,["ancestors","currentPage"]),p.value?(b(),L(re,{key:0,class:"siteWidth paddingBlockSmall"},{default:_(()=>[k(B,{class:"static grey",icon:"",alignment:"center"},{default:_(()=>[P("h1",null,I(c.$t("pages.account.profile.title")),1),d(u)?.mapProfileLead?(b(),L(W,{key:0,class:"medium"},{default:_(()=>[P("div",{innerHTML:d(u).mapProfileLead},null,8,lo)]),_:1})):R("",!0),P("div",so,[k(ne,{modelValue:h.value,"onUpdate:modelValue":[O[0]||(O[0]=oe=>h.value=oe),te],activeLabel:c.$t("form.labels.active"),inactiveLabel:c.$t("form.labels.inactive"),label:c.$t("pages.account.profile.enableProfile")},{label:_(()=>[d(y)?(b(),L(me,{key:0,class:"inline mini"})):R("",!0),P("span",null,[X(I(h.value?c.$t("pages.account.profile.profileEnabled"):c.$t("pages.account.profile.profileDisabled"))+" ",1),h.value&&p.value?.slug?(b(),L(he,{key:0,to:d(o)({name:"map-slug",params:{slug:p.value.slug}}),target:"_blank",rel:"noopener noreferrer"},{default:_(()=>[X(I(c.$t("pages.account.profile.viewProfile")),1)]),_:1},8,["to"])):R("",!0)])]),_:1},8,["modelValue","activeLabel","inactiveLabel","label"]),f.value?(b(),L(N,{key:0,variant:"error",icon:"warning"},{default:_(()=>[X(I(f.value),1)]),_:1})):R("",!0)])]),_:1})]),_:1})):(b(),L(re,{key:1,class:"siteWidth paddingBlockSmall"},{default:_(()=>[k(N,{variant:"error",class:"large"},{default:_(()=>[k(W,null,{default:_(()=>[P("h2",null,I(c.$t("error.title")),1),k(Bt,{keypath:"pages.account.profile.noProfile",tag:"p",scope:"global"},{default:_(()=>[...O[1]||(O[1]=[P("a",{href:"mailto:[email protected]",target:"_blank"}," [email protected] ",-1)])]),_:1}),k(xt,{tag:d(m),to:d(o)("/account"),class:"white"},{default:_(()=>[X(I(c.$t("components.FormExtensionprocess.backToAccount")),1)]),_:1},8,["tag","to"])]),_:1})]),_:1})]),_:1}))]),default:_(()=>[p.value?(b(),U(Se,{key:0},[k(G,{class:"small"},{default:_(()=>[P("p",null,[X(I(c.$t("components.LayoutMapProfile.lead")),1),O[2]||(O[2]=P("br",null,null,-1)),P("span",uo,I(d(q)),1)])]),_:1}),k(Ne,{title:c.$t("general.gallery"),hideTitleInButton:!0},{modal:_(({close:oe})=>[k(ea,{profile:p.value,onSuccess:Oe=>C(oe)},null,8,["profile","onSuccess"])]),default:_(()=>[p.value?.sliderImages?.length>0?(b(),L(Jn,{key:0,images:p.value?.sliderImages},null,8,["images"])):(b(),L(re,{key:1,tag:"div",class:"siteWidth paddingBlockSmall"},{default:_(()=>[k(pn,{alt:c.$t("pages.account.profile.editData",{label:c.$t("general.gallery")}),lazySrc:"/images/species-placeholder.png"},{default:_(()=>[P("strong",null,I(c.$t("pages.account.profile.editData",{label:c.$t("general.gallery")})),1)]),_:1},8,["alt"])]),_:1}))]),_:1},8,["title"]),k(na,null,{default:_(()=>[k(Ne,{title:c.$t("form.labels.description"),hideTitleInButton:!0},{modal:_(({close:oe})=>[k(ta,{profile:p.value,onSuccess:Oe=>C(oe)},null,8,["profile","onSuccess"])]),default:_(()=>[k(W,{class:Pt(["medium",{LayoutMapProfile__placeholder:!p.value?.description}])},{default:_(()=>[p.value?.description?(b(),U("div",{key:0,innerHTML:d(l)(p.value.description)},null,8,co)):(b(),U("strong",fo,I(c.$t("pages.account.profile.editData",{label:c.$t("form.labels.description")})),1))]),_:1},8,["class"])]),_:1},8,["title"])]),_:1}),k(re,{class:"siteWidth paddingBlockSmall"},{default:_(()=>[k(vn,{title:c.$t("pages.mapOfDiversity.visitInformation"),class:"content",headingTag:"h2"},{default:_(()=>[k(Ne,{title:c.$t("pages.mapOfDiversity.visitInformation"),hideTitleInButton:!0},{modal:_(({close:oe})=>[k(aa,{profile:p.value,onSuccess:Oe=>C(oe)},null,8,["profile","onSuccess"])]),default:_(()=>
87[p.value?.visitInformation||p.value?.arrivalInstructionsPublicTransport||p.value?.arrivalInstructionsCar?(b(),L(W,{key:0,class:"medium"},{default:_(()=>[p.value?.visitInformation?(b(),U("p",{key:0,innerHTML:d(l)(p.value.visitInformation)},null,8,mo)):R("",!0),p.value?.arrivalInstructionsPublicTransport?(b(),U("section",po,[P("h3",null,I(c.$t("pages.mapOfDiversity.arrivalInstructionsPublicTransport")),1),P("p",{innerHTML:d(l)(p.value.arrivalInstructionsPublicTransport)},null,8,vo)])):R("",!0),p.value?.arrivalInstructionsCar?(b(),U("section",go,[P("h3",null,I(c.$t("pages.mapOfDiversity.arrivalInstructionsCar")),1),P("p",{innerHTML:d(l)(p.value.arrivalInstructionsCar)},null,8,ho)])):R("",!0)]),_:1})):(b(),U("strong",bo,I(c.$t("pages.account.profile.editData",{label:c.$t("pages.mapOfDiversity.visitInformation")})),1))]),_:1},8,["title"])]),_:1},8,["title"]),k(vn,{title:c.$t("pages.mapOfDiversity.eventInformation"),class:"content",headingTag:"h2"},{default:_(()=>[k(Ne,{title:c.$t("pages.mapOfDiversity.eventInformation"),hideTitleInButton:!0},{modal:_(({close:oe})=>[k(ia,{profile:p.value,onSuccess:Oe=>C(oe)},null,8,["profile","onSuccess"])]),default:_(()=>[p.value?.eventInformation?(b(),L(W,{key:0,class:"medium"},{default:_(()=>[P("p",{innerHTML:d(l)(p.value.eventInformation)},null,8,_o)]),_:1})):(b(),U("strong",yo,I(c.$t("pages.account.profile.editData",{label:c.$t("pages.mapOfDiversity.eventInformation")})),1))]),_:1},8,["title"])]),_:1},8,["title"])]),_:1})],64)):R("",!0)]),_:2},[p.value?{name:"title",fn:_(()=>[k(Ne,{title:c.$t("form.labels.profileName"),hideTitleInButton:!0,class:"inline"},{modal:_(({close:oe})=>[k(Rt,{profile:p.value,onSuccess:Oe=>C(oe)},null,8,["profile","onSuccess"])]),default:_(()=>[X(I(p.value?.profileName)+" ",1)]),_:1},8,["title"])]),key:"0"}:void 0,p.value?{name:"aside",fn:_(()=>[k(Ut,null,{default:_(()=>[k(Ne,{title:c.$t("general.logo"),hideTitleInButton:!0},{modal:_(({close:oe})=>[k(oa,{profile:p.value,onUpdate:C,onSuccess:Oe=>C(oe)},null,8,["profile","onSuccess"])]),default:_(()=>[p.value?.logo?.url?(b(),L(pn,{key:p.value?.logo?.id,lazySrc:p.value?.logo?.url},null,8,["lazySrc"])):(b(),U("strong",ko,I(c.$t("general.logo")),1))]),_:1},8,["title"])]),_:1}),k(Ut,{title:c.$t("general.address")},{default:_(()=>[k(Ne,{title:c.$t("general.personalInformation"),hideTitleInButton:!0},{modal:_(({close:oe})=>[k(ra,{profile:p.value,onSuccess:Oe=>C(oe)},null,8,["profile","onSuccess"])]),default:_(()=>[k(W,null,{default:_(()=>[P("p",null,[p.value?.company?(b(),U(Se,{key:0},[X(I(p.value.company),1),O[3]||(O[3]=P("br",null,null,-1))],64)):d(x)?(b(),U(Se,{key:1},[X(I(d(x)),1),O[4]||(O[4]=P("br",null,null,-1))],64)):R("",!0),p.value?.street?(b(),U(Se,{key:2},[X(I(p.value.street),1),O[5]||(O[5]=P("br",null,null,-1))],64)):R("",!0),d($)?(b(),U(Se,{key:3},[X(I(d($)),1),O[6]||(O[6]=P("br",null,null,-1))],64)):R("",!0),p.value?.phone?(b(),U(Se,{key:4},[X(I(p.value.phone),1),O[7]||(O[7]=P("br",null,null,-1))],64)):R("",!0),p.value?.email?(b(),L(d(m),{key:5,to:`mailto:${p.value.email}`},{default:_(()=>[X(I(p.value.email),1)]),_:1},8,["to"])):R("",!0),p.value?.website?(b(),U("br",So)):R("",!0),d(H)?(b(),L(d(m),{key:7,to:d(H),target:"_blank"},{default:_(()=>[X(I(d(Z)),1)]),_:1},8,["to"])):R("",!0)])]),_:1})]),_:1},8,["title"])]),_:1},8,["title"]),k(Ut,{title:c.$t("pages.mapOfDiversity.offerInformation")},{default:_(()=>[k(Ne,{title:c.$t("pages.mapOfDiversity.offerInformation"),hideTitleInButton:!0},{modal:_(({close:oe})=>[k(la,{profile:p.value,onUpdate:C,onSuccess:Oe=>C(oe)},null,8,["profile","onSuccess"])]),default:_(()=>[p.value?.productsDescription||p.value?.combinedProducts?.length>0?(b(),L(W,{key:0},{default:_(()=>[p.value?.productsDescription?(b(),U("p",{key:0,innerHTML:d(l)(p.value?.productsDescription)},null,8,Eo)):R("",!0),p.value?.offeringPdf&&p.value?.offeringPdf.url?(b(),U("p",wo,[(b(),L(d(m),{key:p.value?.offeringPdf?.id,to:p.value.offeringPdf.url,target:"_blank"},{default:_(()=>[X(I(c.$t("general.offerPdf")),1)]),_:1},8,["to"]))])):R("",!0),p.value?.combinedProducts?.length>0?(b(),U(Se,{key:2},[P("h3",null,I(c.$t("pages.mapOfDiversity.offersWithSeal")),1),P("ul",null,[(b(!0),U(Se,null,At(p.value?.combinedProducts,(oe,Oe)=>(b(),U("li",{key:Oe},I(oe.name),1))),128))])],64)):R("",!0)]),_:1})):R("",!0)]),_:1},8,["title"])]),_:1},8,["title"])]),key:"1"}:void 0]),1024)}}});
87export{or 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.